BLACKSITE
:
3.131.13.149
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
scripts
/
Upload File:
files >> //scripts/DeleteSoftaculousDomain.php
#!/usr/bin/php <?php if( $argc<=4) { echo "Please pass the proper arguments";exit; } else { $api_key = $argv[1]; $api_pass = $argv[2]; $domain = $argv[3]; $username = $argv[4]; } $url = 'http://103.129.99.74/index.php?'. 'api_key='.$api_key. '&api_pass='.$api_pass. '&api=serialize'. '&act=domains'. '&loginAs='.$username; $time = time(); // Set the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $time); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Turn off the server and peer verification (TrustManager Concept). curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); if(!empty($post)){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); } // Get response from the server. $resp = curl_exec($ch); // The response will hold a string as per the API response method. In this case its PHP Serialize $res = unserialize($resp); foreach ($res['domain_list'] as $domain_key=> $domain_value) { if($domain_key == $domain) { $domain_id = $domain_value['did']; } } if($domain_id) { $url = 'http://103.129.99.74/index.php?'. 'api_key='.$api_key. '&api_pass='.$api_pass. '&api=serialize'. '&act=domains'. '&delid='.$domain_id. '&cleanins=1'. '&loginAs='.$username; $time = time(); // Set the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $time); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Turn off the server and peer verification (TrustManager Concept). curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); if(!empty($post)){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); } // Get response from the server. $resp = curl_exec($ch); // The response will hold a string as per the API response method. In this case its PHP Serialize $res = unserialize($resp); print_r($res);exit; // Done ? /*if(!empty($res['done'])){ print_r($res); // Error }else{ echo 'Some error occured'; print_r($res['error']); }*/ } else { return "Domain Not found in Softaculous"; } ?>