mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-23 13:03:10 +00:00
fix import issue when using powershell
This commit is contained in:
parent
fe7a258c39
commit
0718f45500
2 changed files with 5 additions and 4 deletions
|
@ -1172,9 +1172,9 @@ and send the QRCode via a mailer.
|
|||
# Main Menu choice 10: PowerShell Attacks
|
||||
if main_menu_choice == '9':
|
||||
try:
|
||||
import src.powershell.powershell
|
||||
except:
|
||||
module_reload(src.powershell.powershell)
|
||||
except:
|
||||
import src.powershell.powershell
|
||||
|
||||
# Main Menu choice 11: Third Party Modules
|
||||
if main_menu_choice == '10':
|
||||
|
@ -1183,7 +1183,7 @@ and send the QRCode via a mailer.
|
|||
try:
|
||||
module_reload(module_handler)
|
||||
except:
|
||||
from . import module_handler
|
||||
import module_handler
|
||||
|
||||
# Main Menu choice 99: Exit the Social-Engineer Toolkit
|
||||
if main_menu_choice == '99':
|
||||
|
|
|
@ -35,9 +35,10 @@ if powershell_menu_choice != "99":
|
|||
filewrite.close()
|
||||
|
||||
try:
|
||||
reload(src.payloads.powershell.prep)
|
||||
module_reload(src.payloads.powershell.prep)
|
||||
except:
|
||||
import src.payloads.powershell.prep
|
||||
|
||||
# create the directory if it does not exist
|
||||
if not os.path.isdir(setdir + "/reports/powershell"):
|
||||
os.makedirs(setdir + "/reports/powershell")
|
||||
|
|
Loading…
Reference in a new issue