403Webshell
Server IP : 152.69.216.235  /  Your IP : 80.80.80.28
Web Server : Apache/2.4.37 (Oracle Linux Server)
System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64
User : apache ( 48)
PHP Version : 8.4.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/oci-linux-config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/oci-linux-config/chrony_update.sh
#!/bin/bash
#
# Copyright (C) 2023 Oracle. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, version 2.  This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
# Public License for more details.  You should have received a copy of the GNU
# General Public License along with this program; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 021110-1307, USA.

IMDS_endpointv4=http://169.254.169.254 
curl -H "Authorization:Bearer Oracle" -sfm 3 $IMDS_endpoint4/opc/v2/instance/ 2>&1 > /dev/null
if [ "$?" -ne 0 ]; then
        IMDS_endpointv6=http://[fd00:c1::a9fe:a9fe]

        curl -6 -H "Authorization:Bearer Oracle" -sfm 3 $IMDS_endpointv6/opc/v2/instance/ 2>&1 > /dev/null
        if [ "$?" -eq 0 ]; then 
	        # Update chrony.conf with IPv6 iburst server endpoint.
        	if ! grep -q "^server fd00:c1" /etc/chrony.conf; then
                	sed -i '/^server 169.254.169.254 iburst/a server fd00:c1::a9fe:a9fe iburst' /etc/chrony.conf
        	fi
	fi
else
	exit 0
fi

Youez - 2016 - github.com/yon3zu
LinuXploit