Advertisement
Guest User

Zone-H | Mr.HaurgeulisX196

a guest
Nov 14th, 2014
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. #!/usr/bin/perl -U
  2.  
  3. #usage : perl deface.pl hasil.txt
  4.  
  5. use HTTP::Request;
  6. use LWP::UserAgent;
  7. use IO::Select;
  8. use HTTP::Response;
  9. sub do_visit()
  10. {
  11. $useragen=LWP::UserAgent->new;
  12. $useragent="Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)";
  13. $useragen->agent($useragent);
  14. $useragen->timeout(7);
  15. our $response=$useragen->get($url);
  16. our $content=$response->content;
  17. }
  18. $file=$ARGV[0];
  19. open(SHELL, "<$file");
  20. my(@line) = <SHELL>;
  21. @line = sort(@line);
  22. my($http);
  23. lc($http);
  24. foreach $http (@line)
  25. {
  26. chomp($http);
  27. $http =~ s/^\s+//;
  28. $http =~ s/\s+$//;
  29.  
  30. if($http=~/http/)
  31. {
  32. our $url=$http;
  33. do_visit();
  34. if($content=~/Hacked/ || $content=~/hacked/)
  35. {
  36. $hasil=lc($url);
  37. # print "$hasil \n";
  38. system "echo $hasil >> empes.txt";
  39. ## submit to ZONE-H ##
  40.  
  41. $Dom=$hasil;
  42. $Def="Mr.HaurgeulisX196";
  43. if ($Dom =~ /http:\/\//)
  44. {
  45. $U="http://zone-h.org/notify/single";
  46. $lwp=LWP::UserAgent->new;
  47. $res=$lwp -> post($U,[
  48. 'defacer' => $Def,
  49. 'domain1' => $Dom,
  50. 'hackmode' => '15',
  51. 'reason' => '1',
  52. 'submit' => 'Send',
  53. ]);
  54. if ($res->content =~ /color="red">(.*)<\/font><\/li>/) {
  55. print "$hasil submit $1\n";
  56. }
  57. else
  58. {
  59. print "$hasil Error\n";
  60. }
  61. }
  62. else
  63. {
  64. $new="http://" . "$Dom";
  65. $U="http://zone-h.org/notify/single";
  66. $lwp=LWP::UserAgent->new;
  67. $res=$lwp -> post($U,[
  68. 'defacer' => $Def,
  69. 'domain1' => $new,
  70. 'hackmode' => '15',
  71. 'reason' => '1',
  72. 'submit' => 'Send',
  73. ]);
  74. if ($res->content =~ /color="red">(.*)<\/font><\/li>/) {
  75. print "$hasil submit $1\n";
  76. }
  77. else
  78. {
  79. print "$hasil Error\n";
  80. }
  81. }
  82.  
  83. ## submit selesai ###
  84. }
  85. # else{
  86. # $hasil=lc($url);
  87. # print "$hasil tdk ditemukan \n";
  88. # }
  89. }
  90. }
  91. close(SHELL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement