Guest User

Untitled

a guest
Oct 23rd, 2019
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const seco = require ('seco-file');
  2. const fs = require ('fs');
  3.  
  4. function decrypt (data, phrase) {
  5. try {
  6. seco.decryptData (data, phrase);
  7. return (phrase);
  8. } catch (ex) {
  9. return ("");
  10. }
  11. }
  12.  
  13. function decryptFile (filename, wordlist) {
  14. var data = fs.readFileSync (filename);
  15. var phrase;
  16. console.log ("start");
  17. fs.readFileSync (wordlist) .toString (). split ("\ n"). forEach (function (line, index, arr) {
  18. if (index === arr.length - 1 && line === "") {return; }
  19. phrase = decrypt (data, line);
  20. if (phrase! = "") {
  21. console.log ("PASSWORD IS:" + phrase);
  22. }
  23. console.log (index + "" + line);
  24. });
  25. console.log ("end");
  26. }
  27.  
  28. decryptFile (process.argv [2], process.argv [3]);
RAW Paste Data