RintoMuhamad

Mass Notify DefacerID [CLI]

Jun 17th, 2017
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.13 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 0);
  3. error_reporting(0);
  4. print "_________             _________                 __  
  5. \_   ___ \  ____   ___\______  \ ____ ___  ____/  |_
  6. /    \  \/ /  _ \ /    \  /    // __ \\  \/  /\   __\
  7. \     \___(  <_> )   |  \/    /\  ___/ >    <  |  |  
  8. \______  /\____/|___|  /____/  \___  >__/\_ \ |__|  
  9.        \/            \/            \/      \/      
  10. ";
  11. echo "\nNick: ";$nick=trim(fgets(STDIN,1024));
  12. echo "\nTeam: ";$team=trim(fgets(STDIN,1024));
  13. echo "\nSites List (FILE): ";$setlis=trim(fgets(STDIN,1024));
  14. $domain = explode("\n", file_get_contents($setlis));
  15.     echo "Notify with nick [ ".$nick." ] \n";
  16. function defid($url,$nick,$team) {
  17. $ch = curl_init("https://defacer.id/archives/notify");
  18. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  19. curl_setopt($ch, CURLOPT_POST, true);
  20. curl_setopt($ch, CURLOPT_POSTFIELDS, "attacker=$nick&team=$team&poc=SQL Injection&url=$url");
  21. return curl_exec($ch);
  22. curl_close($ch);
  23. }
  24. foreach($domain as $url) {
  25. $defid = defid($url,$nick,$team);
  26. if(preg_match('#<div class="success-box">#', $defid)) {
  27. echo "\nOK -> ".$url;
  28. } else {
  29. echo "\nError -> ".$url;
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment