Created
February 25, 2020 16:23
-
-
Save yifeiyin/844873189db52495c3ee378cfe5c13f6 to your computer and use it in GitHub Desktop.
Hack The Valley Hash Cracker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('body').append('<div id="a"></div>'); | |
| START = 40; | |
| INTERVAL = 5; | |
| for (let i = START * 10000; i < (START + INTERVAL) * 10000; i++) { | |
| let hash = (i).toString(36); | |
| $('#inputHash').val(hash); | |
| if (i % 1000 == 0) { | |
| console.clear(); | |
| console.count('x1000'); | |
| console.log(i % 1000); | |
| } | |
| $.ajax({ | |
| url: '/', | |
| type: "POST", | |
| dataType: 'json', | |
| contentType: "application/json", | |
| data: getFormData($("#hash_form")), | |
| success: function (result) { | |
| if (result["msg"] === "ok") { | |
| $('#a').append('<p>' + result["letter"] + ' - ' + hash + ' - ' + parseInt(hash, 36) + '</p>'); | |
| } | |
| if (i == (START + INTERVAL) * 10000) { console.log("DONE"); } | |
| }, | |
| error: function (result) { | |
| console.clear(); | |
| if (i == (START + INTERVAL) * 10000) { console.log("DONE"); } | |
| } | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment