Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import itertools
- """
- function checkPass( password )
- {
- var count1 = 3, count2 = 5;
- var sumof1 = 0, sumof2 = 0;
- var charlist = "BHFE8";
- for( i = 0; i < password.length; ++i ) { sumof1 += ( password.charCodeAt( i ) * count1 ); count1++; }
- for( i = 0; i < charlist.length; ++i ) { sumof2 += ( charlist.charCodeAt( i ) * count2 ); count2++; }
- (sumof1 == sumof2) ? setTimeout( "location.replace( 'http://www.enigmagroup.org/missions/basics/js/10/index.php?password=" + encodeURI(password) + "' );", 0 ) : alert( "Sorry, but the password was incorrect." );
- }
- """
- CHARSET = string.uppercase + string.digits
- tabPassword = itertools.product(CHARSET, repeat=5)
- charlist = "BHFE8"
- sumof2 = 0
- sumof1 = 0
- count1 = 3
- count2 = 5
- for each_password in tabPassword:
- for i in range(len(each_password)):
- sumof1 += ord(each_password[i]) * count1
- count1 += 1
- if sumof1 == 2308:
- print each_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement