Small bug fixes.
parent
734831b5fb
commit
75ea648c49
|
@ -576,13 +576,13 @@ def color(string, color=None):
|
|||
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
|
||||
|
||||
else:
|
||||
if string.startswith("[!]"):
|
||||
if string.strip().startswith("[!]"):
|
||||
attr.append('31')
|
||||
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
|
||||
elif string.startswith("[+]"):
|
||||
elif string.strip().startswith("[+]"):
|
||||
attr.append('32')
|
||||
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
|
||||
elif string.startswith("[*]"):
|
||||
elif string.strip().startswith("[*]"):
|
||||
attr.append('34')
|
||||
return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string)
|
||||
else:
|
||||
|
|
|
@ -24,7 +24,7 @@ def title(version):
|
|||
"""
|
||||
os.system('clear')
|
||||
print "===================================================================================="
|
||||
print " Empire: PowerShell post-exploitation agent | [Version]: " + version
|
||||
print " Empire: PowerShell post-exploitation agent | [Version]: %s" % (version)
|
||||
print '===================================================================================='
|
||||
print ' [Web]: https://www.PowerShellEmpire.com/ | [Twitter]: @harmj0y, @sixdub, @enigma0x3'
|
||||
print '===================================================================================='
|
||||
|
|
|
@ -395,7 +395,6 @@ class Stagers:
|
|||
# patch the dll with the new PowerShell code
|
||||
searchString = (("Invoke-Replace").encode("UTF-16"))[2:]
|
||||
index = dllRaw.find(searchString)
|
||||
print "index:",index
|
||||
dllPatched = dllRaw[:index]+replacementCode+dllRaw[(index+len(replacementCode)):]
|
||||
|
||||
return dllPatched
|
||||
|
|
Loading…
Reference in New Issue