n0va_sa

Hash Breaker

Sep 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://www.thishash.com/sha1/f9e2ba54fe91d947a030dd90a92998527da7f59e/
  2. //------------------------------------ Author - N0va-----------------------
  3. // You need this extention to turn off the allow-control-allow-origin
  4. //https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi/related?hl=en-US
  5. //--------------------------------------------------------------------------
  6. function getMeTheHash(){
  7.     // this function will get you the hash
  8.     let selectorBox = $(".message").text();
  9.     selectorBox = selectorBox.split("\n")[2].substring(2,selectorBox.lenght);
  10.     return selectorBox;
  11. }
  12.  
  13. var request = new XMLHttpRequest();
  14. request.onreadystatechange = function() {
  15.     // extracting the value of SHA1 hash from thishash.com
  16.     reqData = request.responseText;
  17.     var index = reqData.match('is a SHA1 hash of the value "').index;
  18.     var index = index + 29;
  19.     var hashValue = reqData.substring(index, index+4); //this might change if the value of hash changes => you can use
  20.                                                         //regx to solve this but this worked for me.
  21.     //console.log(hashValue); //=> DEBUGGING
  22.      window.location.href += '/' + hashValue;
  23. }
  24. var url = 'https://www.thishash.com/sha1/'+ getMeTheHash();
  25. request.open("GET", url, true);
  26. request.send();
Add Comment
Please, Sign In to add comment