Advertisement
Tu5b0l3d

Cara Mengetahui Username Pada Wordpress.

Mar 13th, 2016
2,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. //Tu5b0l3d -indoXploit-
  3. //thx for WPScan
  4.  
  5. error_reporting(0);
  6. $site = "http://www.blah.com/";
  7. for($id=1;$id<=10;$id++){
  8. $get = file_get_contents("$site?author=$id");
  9.  
  10. preg_match("/<title>(.*?)(\||\,)(.*?)<\/title>/i", $get, $name);
  11. preg_match("/<body class=\"archive author author-(.*?) author-$id/", $get, $login);
  12. $login = $login[1];
  13. if($login!=""){
  14. $name = trim($name[1]);
  15. echo "id $id => $login => $name\n";
  16. }
  17. }
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement