Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Perl Fuzzer that creates a file of your choosing to test for overflow vulns
  3. # by nullbyt3
  4.  
  5. use strict;
  6. use warnings;
  7.  
  8. my $file = $ARGV[0];
  9. if (! $ARGV[0] or ! $ARGV[1]){
  10. usage()
  11. }
  12. my $shit = \"\\x41\" x $ARGV[1];
  13. open(FH, \">$file\");
  14. print FH $shit;
  15. close FH;
  16. print \"overflow File made!\\n\";
  17.  
  18. sub usage{
  19. print \"perl overflow.pl <file> <bytes>\\n\";
  20. print \"Example : perl overflow.pl crash.torrent 40000\\n\";
  21. exit 1;
  22. }
Add Comment
Please, Sign In to add comment