liskl

Summit 400-48t Enable Advanced Edge License Bruteforcer

Mar 11th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.98 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # Summit 400-48t Enable Advanced Edge License
  3. # I noticed the license is a length 7 numeric value,
  4. # so I modified an existing script floating around for the Summit 400-48t.
  5. # Should work with any Summit 200/300/400 however.
  6. #You may need to modify the “Summit400? near the end of the file to match your prompt.
  7. #This runs much quicker than I’d think;
  8. #got my license after 4 hours or so.
  9.  
  10. Uncomment the dump.log line if you have trouble to debug
  11. use Net::Telnet;
  12. use warnings;
  13.  
  14. $t = new Net::Telnet(
  15.     Timeout => 10,
  16.     # Dump_Log => "dump.log",
  17.     Prompt => '/\* Summit*$/',
  18.     Errmode=>'die'
  19. );
  20. $t->open('SWITCHIPADDRESS');
  21. $t->waitfor('/login: $/i');
  22. $t->print('admin');
  23. $t->waitfor('/password: $/i');
  24. $t->print('YOURPASSWORD');
  25. $t->waitfor('/Summit400/i');
  26.  
  27. for($x = 1; $x < 9999999; ++$x)
  28. {
  29.     print "Trying: $x\n";
  30.     #@lines = $t->cmd("enable license advanced-edge $x");
  31.     $t->print("enable license advanced-edge $x");
  32.     $t->waitfor('/Summit400/i');
  33. }
Advertisement
Add Comment
Please, Sign In to add comment