Code Monkey home page Code Monkey logo

winpayloads's People

Contributors

charliedean avatar druly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

winpayloads's Issues

Creating Payload

[] Creating Payload using Pyinstaller...
[
] Error In Creating Payload... Exiting..

2928 INFO: PyInstaller: 3.3.dev0
2928 INFO: Python: 2.7.12
2930 INFO: Platform: Windows-7-6.1.7601-SP1
2970 ERROR: We need PyCrypto >= 2.4 to use byte-code obufscation but we could not
2970 ERROR: find it. You can install it with pip by running:
2970 ERROR: pip install PyCrypto

[*] Cleaning Up

I did a pip install PyCrypto no use

Error during listener initialization

Here's the error output and the question that I've answered before the error comes :

[*] Upload To Local Websever or (p)sexec? [y]/p/n: n
Traceback (most recent call last):
  File "WinPayloads.py", line 486, in <module>
    os.system('msfconsole -x \'use exploit/multi/handler;set payload windows/meterpreter/reverse_tcp;set LPORT %s;set LHOST 0.0.0.0;set autorunscript multi_console_command -rc uacbypass.rc;set ExitOnSession false;exploit -j;set LPORT %s;set autorunscript multi_console_command -rc uacbypass2.rc;exploit -j\'' % (portnum, portnum + 1))
TypeError: cannot concatenate 'str' and 'int' objects

Any idea?

RUN problem

excuse me!
when i run https payload, msf have some problem...

msf exploit(handler) > [] https://0.0.0.0:443 handling request from 192.168.68.107; (UUID: qm4sjpn0) Staging x86 payload (172627 bytes) ...
[
] Meterpreter session 1 opened (192.168.68.101:443 -> 192.168.68.107:3472) at 2017-09-04 14:45:30 +0800
[+] negotiating tlv encryption
[+] negotiated tlv encryption
[+] negotiated tlv encryption
[] Session ID 1 (192.168.68.101:443 -> 192.168.68.107:3472) processing AutoRunScript 'multi_console_command -rc uacbypass.rc'
([
] Running Command List ...
[*] Running command uacbypass.rc
[-] Unknown command: uacbypass.rc.)
.................
it can run ,but i dont know what.

Error after last update

Hi there,
I updated today, and now I can't start the tool:

user@evilginx:~/tools/Winpayloads$ sudo ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 5, in
from lib.menu import *
File "/home/user/tools/Winpayloads/lib/menu.py", line 4, in
from generatepayload import *
File "/home/user/tools/Winpayloads/lib/generatepayload.py", line 8, in
from sockets import *
ImportError: No module named sockets

I tried in Kali and Ubuntu 16.04, both same error.

Error when creating payloads

I'm using latest version of winpayloads and it show me this error when I'm trying to execute Windows Reverse Shell

Windows_Reverse_Shell
[] Creating Payload using Pyinstaller...
[
] Error In Creating Payload... Exiting..

err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
99 INFO: wrote /etc/winpayloads\payload.spec
154 INFO: Testing for ability to set icons, version resources...
161 INFO: ... resource update available
168 INFO: UPX is not available.
Traceback (most recent call last):
File "/opt/pyinstaller-2.0/pyinstaller.py", line 91, in
main()
File "/opt/pyinstaller-2.0/pyinstaller.py", line 86, in main
run_build(opts, spec_file)
File "/opt/pyinstaller-2.0/pyinstaller.py", line 50, in run_build
PyInstaller.build.main(spec_file, **opts.dict)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1625, in main
build(specfile, buildpath)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1582, in build
execfile(spec)
File "/etc/winpayloads\payload.spec", line 5, in
hookspath=None)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 371, in init
raise ValueError("script '%s' not found" % script)
ValueError: script '/etc/winpayloads/payload.py' not found
fixme:msvcrt:__clean_type_info_names_internal (0x13feff0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e3b304c) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e8d8088) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e7ba8c4) stub
fixme:msvcrt:__clean_type_info_names_internal (0xb49568) stub
fixme:msvcrt:__clean_type_info_names_internal (0x44ca30) stub
fixme:msvcrt:__clean_type_info_names_internal (0x100da498) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1d1b5210) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e24e5b8) stub

There are also some error too on second menu "Windows meterpreter reverse shell"

Windows_Meterpreter_Reverse_Shell
[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:y
[
] Creating Payload using Pyinstaller...
[*] Error In Creating Payload... Exiting..

fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
290 INFO: wrote /etc/winpayloads\payload.spec
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
375 INFO: Testing for ability to set icons, version resources...
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
402 INFO: ... resource update available
411 INFO: UPX is not available.
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
Traceback (most recent call last):
File "/opt/pyinstaller-2.0/pyinstaller.py", line 91, in
main()
File "/opt/pyinstaller-2.0/pyinstaller.py", line 86, in main
run_build(opts, spec_file)
File "/opt/pyinstaller-2.0/pyinstaller.py", line 50, in run_build
PyInstaller.build.main(spec_file, **opts.dict)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1625, in main
build(specfile, buildpath)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1582, in build
execfile(spec)
File "/etc/winpayloads\payload.spec", line 5, in
hookspath=None)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 371, in init
raise ValueError("script '%s' not found" % script)
ValueError: script '/etc/winpayloads/payload.py' not found
fixme:msvcrt:__clean_type_info_names_internal (0x161eff0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e3b304c) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e8d8088) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e7ba8c4) stub
fixme:msvcrt:__clean_type_info_names_internal (0x929568) stub
fixme:msvcrt:__clean_type_info_names_internal (0x44ca30) stub
fixme:msvcrt:__clean_type_info_names_internal (0x100da498) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1d1b5210) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e24e5b8) stub

problem while excute winpayloads

Hi,
When i finished install winpayloads this error come out and i search many times but i couldn't fix it the error is :
root@kali:~/Desktop/Winpayloads# ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 5, in
from lib.menu import *
File "/root/Desktop/Winpayloads/lib/menu.py", line 4, in
from generatepayload import *
File "/root/Desktop/Winpayloads/lib/generatepayload.py", line 3, in
from psexecspray import *
File "/root/Desktop/Winpayloads/lib/psexecspray.py", line 4, in
import blessings
ImportError: No module named blessings
Please Help Me Soon As possible With my regards .

multiple errors found during install

byte-compiling /usr/lib/python3.5/site-packages/impacket/hresult_errors.py to hresult_errors.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/smb3.py to smb3.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/smb3.py", line 234
print "CONNECTION"
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/IP6_Extension_Headers.py to IP6_Extension_Headers.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/IP6_Extension_Headers.py", line 56
raise ImpactPacketException, "Cannot load options from truncated packet"
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/NDP.py to NDP.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/spnego.py to spnego.cpython-35.pyc
Sorry: TabError: inconsistent use of tabs and spaces in indentation (spnego.py, line 77)
byte-compiling /usr/lib/python3.5/site-packages/impacket/cdp.py to cdp.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/examples/remcomsvc.py to remcomsvc.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/examples/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/examples/serviceinstall.py to serviceinstall.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/examples/serviceinstall.py", line 65
except Exception, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/examples/logger.py to logger.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/smb3structs.py to smb3structs.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/IP6_Address.py to IP6_Address.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/IP6_Address.py", line 246
except Exception, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/uuid.py to uuid.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/uuid.py", line 22
top = (1L<<31)-1
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/version.py to version.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/ImpactPacket.py to ImpactPacket.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/ImpactPacket.py", line 37
return self.value
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dns.py to dns.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dns.py", line 616
print d
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/tds.py to tds.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/tds.py", line 48
print message
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/pcapfile.py to pcapfile.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dhcp.py to dhcp.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dhcp.py", line 227
print pp
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/structure.py to structure.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/structure.py", line 100
print "packField( %s | %s )" % (fieldName, format)
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/Dot11KeyManager.py to Dot11KeyManager.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/gssapi.py to gssapi.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/asn1.py to asn1.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/constants.py to constants.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/types.py to types.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/krb5/types.py", line 255
print Principal("marc")
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/crypto.py to crypto.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/ccache.py to ccache.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/krb5/ccache.py", line 73
print "%sAuth : %s" % (indent, datetime.fromtimestamp(self['authtime']).isoformat())
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/krb5/kerberosv5.py to kerberosv5.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/krb5/kerberosv5.py", line 134
except KerberosError, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/ese.py to ese.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/ese.py", line 440
print "%04x " % i,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/ImpactDecoder.py to ImpactDecoder.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/nmb.py to nmb.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/nmb.py", line 457
raise NetBIOSError, ( 'Cannot bind to a good UDP port', ERRCLASS_OS, errno.EAGAIN )
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/winregistry.py to winregistry.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/winregistry.py", line 321
print "%s%s" % (self.indent, nk['KeyName'])
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/wps.py to wps.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/Dot11Crypto.py to Dot11Crypto.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/scmr.py to scmr.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/scmr.py", line 1285
except DCERPCSessionError, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/epm.py to epm.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/epm.py", line 1295
if tmp_address <> '':
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/sasec.py to sasec.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/mgmt.py to mgmt.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dtypes.py to dtypes.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dtypes.py", line 98
print "%s" % msg,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/drsuapi.py to drsuapi.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/drsuapi.py", line 91
print msg,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/atsvc.py to atsvc.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/samr.py to samr.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/samr.py", line 303
print "%s" % msg,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/tsch.py to tsch.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/rrp.py to rrp.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/nrpc.py to nrpc.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/srvs.py to srvs.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/srvs.py", line 1756
print "%s" % msg,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/wkst.py to wkst.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/transport.py to transport.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/transport.py", line 139
raise RuntimeError, 'virtual function'
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/enum.py to enum.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/rpcrt.py to rpcrt.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/rpcrt.py", line 122
0x00000005L : 'rpc_s_access_denied',
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/lsat.py to lsat.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/ndr.py to ndr.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/ndr.py", line 159
print "\n%s" % msg
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/lsad.py to lsad.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/lsad.py", line 153
print "%s" % (msg),
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcomrt.py to dcomrt.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcomrt.py", line 1013
except Exception, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/oaut.py to oaut.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/oaut.py", line 287
print "%s" % (msg)
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/wmi.py to wmi.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/wmi.py", line 843
print "[%s]" % qualifier
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/scmp.py to scmp.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/scmp.py", line 304
except DCERPCException, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/vds.py to vds.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/vds.py", line 201
except Exception, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/v5/dcom/comev.py to comev.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dcerpc/init.py to init.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/smbconnection.py to smbconnection.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/smbconnection.py", line 214
except (smb.SessionError, smb3.SessionError), e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/nt_errors.py to nt_errors.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/crypto.py to crypto.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/crypto.py", line 384
print s[:8] ,
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/impacket/ICMP6.py to ICMP6.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/eap.py to eap.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/smbserver.py to smbserver.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/smbserver.py", line 178
except Exception, e:
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/ntlm.py to ntlm.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/ntlm.py", line 238
print "%s: {%r}" % (i,self[i])
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/IP6.py to IP6.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/smb.py to smb.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/smb.py", line 632
y = t & 0xffffffffL
^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python3.5/site-packages/impacket/pcap_linktypes.py to pcap_linktypes.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/helper.py to helper.cpython-35.pyc
byte-compiling /usr/lib/python3.5/site-packages/impacket/dot11.py to dot11.cpython-35.pyc
File "/usr/lib/python3.5/site-packages/impacket/dot11.py", line 470
crcle=crc32(bytes)&0xffffffffL
^
SyntaxError: invalid syntax

TypeError: 'function' object is not iterable

Traceback (most recent call last):
File "./WinPayloads.py", line 41, in
getAndRunMainMenu()
File "/root/Winpayloads/lib/menu.py", line 61, in getAndRunMainMenu
mainMenu.runmenu()
File "/root/Winpayloads/lib/menu.py", line 115, in runmenu
result = extrawork(payloadchoice,payload)
File "/root/Winpayloads/lib/preparepayload.py", line 89, in httpsPayloadGeneration
GeneratePayload(ez2read_shellcode,payloadname,shellcode)
File "/root/Winpayloads/lib/generatepayload.py", line 59, in GeneratePayload
Filesave.write(do_Encryption(SHELLCODE.injectwindows % (ez2read_shellcode)))
File "/root/Winpayloads/lib/encrypt.py", line 29, in do_Encryption
encrypto = AES.new(key, AES.MODE_CTR, counter=lambda: counter)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 264, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/init.py", line 130, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/_mode_ctr.py", line 319, in _create_ctr_cipher
_counter = dict(counter)
TypeError: 'function' object is not iterable

Errors when running python WinPayloads.py

Hi I have run setup.sh on a Kali Rolling box and then attempted to run WinPayloads.py and get the following errors.....
any advice appreciated.

e is 65537 (0x010001)
writing RSA key
Signature ok
subject=C = US, ST = Denial, L = Springfield, O = Dis, CN = www.example.com
Getting Private key
[] Done
[
] Cleaning Up
[*] Done
root@minty:/Desktop/Winpayloads#
root@minty:
/Desktop/Winpayloads# python WinPayloads.py
Traceback (most recent call last):
File "WinPayloads.py", line 2, in
from lib.main import *
File "/root/Desktop/Winpayloads/lib/main.py", line 19, in
import psexec
File "/root/Desktop/Winpayloads/lib/psexec.py", line 27, in
from impacket import version, smb
File "/usr/local/lib/python2.7/dist-packages/impacket/smb.py", line 49, in
from pyasn1.type.univ import noValue
ImportError: cannot import name noValue

hi Winpayloads Installation failure

1111
Main Menu > 1

[] Press Enter For Default Port(4444)
[
] Port>

[] Press Enter To Get Local Ip Automatically(192.168.146.129)
[
] IP>
[] IP SET AS 192.168.146.129
[
] PORT SET AS 4444

[*] Creating Payload using Pyinstaller...
mv: 无法获取'dist/payload.exe' 的文件状态(stat): 没有那个文件或目录

[] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Reverse_Shell.exe
rm: 无法删除'dist': 没有那个文件或目录
rm: 无法删除'build': 没有那个文件或目录
rm: 无法删除'
.spec': 没有那个文件或目录

[*] Upload To Local Websever or (p)sexec? [y]/p/n: y

[*] Serving Payload On http://192.168.146.129:8000/Windows_Reverse_Shell.exe
listening on [any] 4444 ...

Permission denied.

[*] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:y
Traceback (most recent call last):
  File "./WinPayloads.py", line 41, in <module>
    getAndRunMainMenu()
  File "/home/groot/Winpayloads/lib/menu.py", line 61, in getAndRunMainMenu
    mainMenu.runmenu()
  File "/home/groot/Winpayloads/lib/menu.py", line 115, in runmenu
    result = extrawork(payloadchoice,payload)
  File "/home/groot/Winpayloads/lib/preparepayload.py", line 50, in reversePayloadGeneration
    GeneratePayload(ez2read_shellcode,payloadname,shellcode)
  File "/home/groot/Winpayloads/lib/generatepayload.py", line 59, in GeneratePayload
    with open('%s/payload.py' % payloaddir(), 'w+') as Filesave:
IOError: [Errno 13] Permission denied: '/home/groot/winpayloads/payload.py'
groot@groot-desktop:~/Winpayloads$ 

problem when generating payloads "Internal error: early pywin32 import was introduced"

Hello

everyhting used to work previously, I just updated to latest version and now when generating a payload

I get the following error

[] Creating Payload using Pyinstaller...
[
] Error In Creating Payload... Exiting..

Internal error: early pywin32 import was introduced

I already tried to reinstall with ./setup.sh -r

Do you have a clue ? Thanks in advance

error while execute

tq for your great tools ..
i already follow your guide to sees winpayloads ..but when i executed this
./WinPayloads ..
after proses try UAC bypass -y/n

this is last error i got ..
[*] Error In Creating Payload... Exiting..

Traceback (most recent call last):
File "/opt/pyinstaller/pyinstaller.py", line 14, in
from PyInstaller.main import run
File "Z:\opt\pyinstaller\PyInstaller__main__.py", line 21, in
import PyInstaller.building.build_main
File "Z:\opt\pyinstaller\PyInstaller\building\build_main.py", line 32, in
from ..depend import bindepend
File "Z:\opt\pyinstaller\PyInstaller\depend\bindepend.py", line 38, in
from ..utils.win32.winmanifest import RT_MANIFEST
File "Z:\opt\pyinstaller\PyInstaller\utils\win32\winmanifest.py", line 97, in
from PyInstaller.utils.win32 import winresource
File "Z:\opt\pyinstaller\PyInstaller\utils\win32\winresource.py", line 20, in
import pywintypes
ImportError: No module named pywintypes

[*] Cleaning Up

persistence

please add instructions for using persistence in wiki
thanks

unable to generate any exploit

hey, im trying to generate Windows Meterpreter Reverse Shell but im getting the following error:
the other options dont seem to be working either...

Main Menu > 2

[] Press Enter For Default Port(4444)
[
] Port>

[] Press Enter To Get Local Ip Automatically(192.168.2.163)
[
] IP>
[] IP SET AS 192.168.2.163
[
] PORT SET AS 4444

[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:y
[
] Windows 7 or 10? 7/[10]:7
[*] Creating Payload using Pyinstaller...
Traceback (most recent call last):
File "./WinPayloads.py", line 41, in
getAndRunMainMenu()
File "/home/pascal/Winpayloads/lib/menu.py", line 43, in getAndRunMainMenu
mainMenu.runmenu()
File "/home/pascal/Winpayloads/lib/menu.py", line 100, in runmenu
result = extrawork(payloadchoice,payload)
File "/home/pascal/Winpayloads/lib/preparepayload.py", line 49, in reversePayloadGeneration
GeneratePayload(ez2read_shellcode,payloadname,shellcode)
File "/home/pascal/Winpayloads/lib/generatepayload.py", line 70, in GeneratePayload
'%s/payload.py' % payloaddir(), '--noconsole', '--onefile', '--key',randomenckey], bufsize=1024, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] Directory or File not found

Stager over WAN?

Hello!

I’ve used your script a lot and I absolutely love it but I normally use it in my internal LAN network, but I’m trying to use it over WAN. I know the meterpreter session can run over WAN but I’d like to use the stager over WAN to.

But I can’t figure it out... is there any possibility you could help me?

Thank you for your response and script!
Regards, Djitn

Please help with this issue Starting Winpayloads

root@kali-pi:~/Winpayloads# ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/Winpayloads/lib/main.py", line 28, in
t = blessed.Terminal()
AttributeError: 'module' object has no attribute 'Terminal'

problem when execute winpayloads

Hi,

I have this error when execute winpayloads :

Traceback (most recent call last):
File "./WinPayloads.py", line 5, in
from lib.menu import *
File "/root/Git/winpayloads/lib/menu.py", line 4, in
from generatepayload import *
File "/root/Git/winpayloads/lib/generatepayload.py", line 3, in
from psexecspray import *
File "/root/Git/winpayloads/lib/psexecspray.py", line 29, in
t = blessings.Terminal()
NameError: name 'blessings' is not defined

I try to reinstall, git pull, ...

kali 4.9.0-kali4-amd64

Thx

IOError: [Errno 28] No space left on device

[*] Grabbing Wine Modules
You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pefile
Downloading pefile-2016.3.28.tar.gz (58kB)
7% |Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 223, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 280, in run
requirement_set.prepare_files(finder)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 317, in prepare_files
functools.partial(self._prepare_file, finder))
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 304, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 469, in _prepare_file
session=self.session)
File "C:\Python27\lib\site-packages\pip\download.py", line 825, in unpack_url
session,
File "C:\Python27\lib\site-packages\pip\download.py", line 673, in unpack_http_url
from_path, content_type = _download_http_url(link, session, temp_dir)
File "C:\Python27\lib\site-packages\pip\download.py", line 886, in _download_http_url
_download_url(resp, link, content_file)
File "C:\Python27\lib\site-packages\pip\download.py", line 621, in download_url
for chunk in progress_indicator(resp_read(4096), 4096):
File "C:\Python27\lib\site-packages\pip\utils\ui.py", line 135, in iter
self.next(n)
File "C:\Python27\lib\site-packages\pip_vendor\progress_init
.py", line 73, in next
self.update()
File "C:\Python27\lib\site-packages\pip_vendor\progress\bar.py", line 82, in update
self.writeln(line)
File "C:\Python27\lib\site-packages\pip_vendor\progress\helpers.py", line 69, in writeln
print(line, end='', file=self.file)
File "C:\Python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 135, in write
self.wrapped.write(text)
IOError: [Errno 28] No space left on device

can't generate payload :'(

[*] Creating Payload using Pyinstaller...
mv: cannot stat 'dist/payload.exe': No such file or directory

[] Payload.exe Has Been Generated And Is Located Here: /home/psycor/winpayloads/Windows_Reverse_Shell.exe
rm: cannot remove 'dist': No such file or directory
rm: cannot remove 'build': No such file or directory
rm: cannot remove '
.spec': No such file or directory

Error In Creating Payload... Exiting..

Hi i have some trouble to test this tool i got this error

Python 2.7.11+
Kali 2016 32 bit fully updated

[*] Error In Creating Payload... Exiting..

Executing wine (wineserver32) 1.8.1 on Debian Kali Linux Rolling (i386).
If something goes wrong, please rerun with "WINEDEBUG=err+all wine"
for more detailed debugging output.
291 INFO: wrote /etc/winpayloads\payload.spec
431 INFO: Testing for ability to set icons, version resources...
450 INFO: ... resource update available
476 INFO: UPX is not available.
Traceback (most recent call last):
File "/opt/pyinstaller-2.0/pyinstaller.py", line 91, in
main()
File "/opt/pyinstaller-2.0/pyinstaller.py", line 86, in main
run_build(opts, spec_file)
File "/opt/pyinstaller-2.0/pyinstaller.py", line 50, in run_build
PyInstaller.build.main(spec_file, **opts.dict)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1625, in main
build(specfile, buildpath)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 1582, in build
execfile(spec)
File "/etc/winpayloads\payload.spec", line 5, in
hookspath=None)
File "Z:\opt\pyinstaller-2.0\PyInstaller\build.py", line 371, in init
raise ValueError("script '%s' not found" % script)
ValueError: script '/etc/winpayloads/payload.py' not found

[*] Cleaning Up

If someone are able to help it will be appreciable ,thanks.

error while trying to start winpayloads

running kali rolling 2016.1

/Winpayloads# ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/tools/Winpayloads/lib/main.py", line 19, in
from progress.bar import Bar
ImportError: No module named progress.bar

Installation problem

hi,
I am trying to run Winpayloads on my parrot(Linux parrot 4.11.0-parrot6-amd64) machine but it seems to have failed and i get the following error:
Main Menu > 2
[] Press Enter For Default Port(4444)
[
] Port> 123

[] Press Enter To Get Local Ip Automatically(192.168.68.104)
[
] IP>
[] IP SET AS 192.168.68.104
[
] PORT SET AS 123

[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:y
[
] Creating Payload using Pyinstaller...
mv: cannot stat 'dist/payload.exe': 没有那个文件或目录

[] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe
rm: cannot remove 'dist': 没有那个文件或目录
rm: cannot remove 'build': 没有那个文件或目录
rm: cannot remove '
.spec': 没有那个文件或目录

[*] Upload To Local Websever or (p)sexec? [y]/p/n:

/root/winpayloads is empty.not creat payloads.
When i trying to steup.sh -r ,but it seems to have failed and i get the following erro:
wine: cannot find '/root/.wine/drive_c/Python27/python.exe'
..................
2017-07-26 21:56:24 (1.67 MB/s) - 已保存 “python-2.7.10.msi.1” [18423808/18423808])

err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:\Python27\lib\runpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:\Python27\lib\runpy.py", line 101, in get_module_details
loader = get_loader(mod_name)
File "C:\Python27\lib\pkgutil.py", line 464, in get_loader
return find_loader(fullname)
File "C:\Python27\lib\pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
File "C:\Python27\lib\pkgutil.py", line 430, in iter_importers
import(pkg)
File "C:\Python27\lib\ensurepip_init
.py", line 9, in
import tempfile
File "C:\Python27\lib\tempfile.py", line 35, in
from random import Random as _Random
File "C:\Python27\lib\random.py", line 885, in
_inst = Random()
File "C:\Python27\lib\random.py", line 97, in init
self.seed(x)
File "C:\Python27\lib\random.py", line 113, in seed
a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893801] Windows Error 0x80090017
err:msi:ITERATE_Actions Execution halted, action L"UpdatePip" returned 1627

........................

My english is bad ,excuse me!
thanks
parrot

No persistence?

Sorry for noob question but where is the persistence script?

FUD???

this is detected by windows defender!!????in win 10!
CAN YOU UPDATE IT??
i cant use it without av if i install an av is ok but with non av is detected!!!
thanks..

Error of launch generator payload

[*] Creating Payload using Pyinstaller...
mv: can not evaluate dist / payload.exe ': No such file or folder like this

[*] Has Been Generated Payload.exe And Is Located Here: /etc/winpayloads/Windows_Meterpreter_Reverse_Shell.exe
rm: can not remove 'dist': No such file or folder like this
rm: can not remove 'build': No such file or folder like this
rm: can not remove * spec ': No such file or folder like this

picture url: image.prntscr.com/image/4c366d979c864549a34d0b3464a48c13.png

Help me bro

No longer undetectable

I have make my payloads but unfortunately is detected by my avast

Win-32:Malware-gen

Is it supposed to still be FUD ?

Thanks.

Unable to generate payload exe file

Hi I'm having trouble generating the exe file, although the log said it was generated, but there was actually nothing in the folder.

Main Menu > 2

[] Press Enter For Default Port($<2>4444$<2>)
[
] Port> 5901

[] Press Enter To Get Local Ip Automatically($<2>192.168.0.19$<2>)
[
] IP> 189.172.81.241
$<2>[] IP SET AS 189.172.81.241
[
] PORT SET AS 5901
$<2>
$<2>[] Try UAC Bypass(Only Works For Local Admin Account)?$<2> y/[n]:$<2>y
$<2>[
] Windows 7 or 10?$<2> 7/[10]:$<2>7
[] Creating Payload using Pyinstaller...
mv: cannot stat 'dist/payload.exe': No such file or directory
$<2>
[
] Payload.exe Has Been Generated And Is Located Here: $&lt;2&gt;/root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe$&lt;2>
rm: cannot remove 'dist': No such file or directory
rm: cannot remove 'build': No such file or directory
rm: cannot remove '*.spec': No such file or directory

Fresh install Ubuntu... runtime errors

See below.. I keep getting errors when trying to run (different options):

                                  _       ___       ____              __                __
                                 | |     / (_)___  / __ \____ ___  __/ /___  ____ _____/ /____
                                 | | /| / / / __ \/ /_/ / __ `/ / / / / __ \/ __ `/ __  / ___/
                                 | |/ |/ / / / / / ____/ /_/ / /_/ / / /_/ / /_/ / /_/ (__  )
                                 |__/|__/_/_/ /_/_/    \__,_/\__, /_/\____/\__,_/\__,_/____/
                                                            /____/NCCGroup - CharlieDean

===============================================================Main Menu===============================================================
1: Windows Reverse Shell
2: Windows Meterpreter Reverse Shell [uacbypass, persistence, allchecks]
3: Windows Meterpreter Bind Shell [uacbypass, persistence, allchecks]
4: Windows Meterpreter Reverse HTTPS [uacbypass, persistence, allchecks]
5: Windows Meterpreter Reverse Dns [uacbypass, persistence, allchecks]
ps: PowerShell Menu
stager: Powershell Interpreter Stager
clients: Connected Interpreter Clients

                          ?: Print Detailed Help                              
                          back: Main Menu                             
                          exit: Exit                              

=======================================================================================================================================
listening on port 5555
Main Menu > 4

[] Press Enter For Default Port(443)
[
] Port>

[] Press Enter To Get Local Ip Automatically(xxx.xxx.xxx.xxx)
[
] IP> xx.xx.xx.xx
[] IP SET AS xx.xx.xx.xx
[
] PORT SET AS 443

[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:n
[
] Invoke Priv Esc Checks? y/[n]:y
[*] Creating Payload using Pyinstaller...
Traceback (most recent call last):
File "./WinPayloads.py", line 46, in
getAndRunMainMenu()
File "/home/ubuntu/github/winpayloads/lib/menu.py", line 61, in getAndRunMainMenu
mainMenu.runmenu()
File "/home/ubuntu/github/winpayloads/lib/menu.py", line 115, in runmenu
result = extrawork(payloadchoice,payload)
File "/home/ubuntu/github/winpayloads/lib/preparepayload.py", line 90, in httpsPayloadGeneration
GeneratePayload(ez2read_shellcode,payloadname,shellcode)
File "/home/ubuntu/github/winpayloads/lib/generatepayload.py", line 66, in GeneratePayload
'%s/payload.py' % payloaddir(), '--noconsole', '--onefile', '--key',randomenckey], bufsize=1024, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Does not generate payload files.

[*] Creating Payload using Pyinstaller...
mv: can not perform `stat 'on' <<dist/payload.exe>>: There is no directory file

[] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe (But on this route there is nothing...)
rm: can not be deleted «dist»: There is no file or directory
rm: can not be deleted «build»: There is no file or directory
rm: can not be deleted «
.spec»: There is no file or directory

It may be because of a problem with wine?

I'm in a virtual machine
uname -a ->Linux Kali 4.0.0-kalil-686-pae #1 SMP Debian 4.0.4-1+kali2(2015-06-03) i686 GNU/Linux

thank you very much.

TypeError: coercing to Unicode: need string or buffer, NoneType found

Traceback (most recent call last):
File "WinPayloads.py", line 41, in
getAndRunMainMenu()
File "/Users/xxxx/winpayloads/lib/menu.py", line 61, in getAndRunMainMenu
mainMenu.runmenu()
File "/Users/xxxxx/winpayloads/lib/menu.py", line 115, in runmenu
result = extrawork(payloadchoice,payload)
File "/Users/xxxxx/winpayloads/lib/preparepayload.py", line 31, in reversePayloadGeneration
portnum,ipaddr = reverseIpAndPort('4444')
File "/Users/xxxx/winpayloads/lib/preparepayload.py", line 20, in reverseIpAndPort
'\n[] Press Enter To Get Local Ip Automatically(%s)\n[] IP> '%(t.bold_green + IP + t.normal))

Installation Error

Here is the error i get even when i run /setup.sh -r
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:\Python27\lib\runpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:\Python27\lib\runpy.py", line 101, in get_module_details
loader = get_loader(mod_name)
File "C:\Python27\lib\pkgutil.py", line 464, in get_loader
return find_loader(fullname)
File "C:\Python27\lib\pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
File "C:\Python27\lib\pkgutil.py", line 430, in iter_importers
import(pkg)
File "C:\Python27\lib\ensurepip_init
.py", line 9, in
import tempfile
File "C:\Python27\lib\tempfile.py", line 35, in
from random import Random as _Random
File "C:\Python27\lib\random.py", line 885, in
_inst = Random()
File "C:\Python27\lib\random.py", line 97, in init
self.seed(x)
File "C:\Python27\lib\random.py", line 113, in seed
a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893801] Windows Error 0x80090017
err:msi:ITERATE_Actions Execution halted, action L"UpdatePip" returned 1627
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
--2017-10-02 08:52:25-- http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py2.7.exe
Resolving www.voidspace.org.uk (www.voidspace.org.uk)... 207.38.86.245
Connecting to www.voidspace.org.uk (www.voidspace.org.uk)|207.38.86.245|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 972594 (950K) [application/x-msdownload]
Saving to: ‘pycrypto-2.6.win32-py2.7.exe’

pycrypto-2.6.win32- 100%[===================>] 949.80K 194KB/s in 5.0s

2017-10-02 08:52:30 (188 KB/s) - ‘pycrypto-2.6.win32-py2.7.exe’ saved [972594/972594]

Archive: pycrypto-2.6.win32-py2.7.exe
warning [pycrypto-2.6.win32-py2.7.exe]: 196629 extra bytes at beginning or within zipfile
(attempting to process anyway)
inflating: PLATLIB/pycrypto-2.6-py2.7.egg-info
inflating: PLATLIB/Crypto/pct_warnings.py
inflating: PLATLIB/Crypto/pct_warnings.pyc
inflating: PLATLIB/Crypto/init.py
inflating: PLATLIB/Crypto/init.pyc
inflating: PLATLIB/Crypto/Cipher/AES.py
inflating: PLATLIB/Crypto/Cipher/AES.pyc
inflating: PLATLIB/Crypto/Cipher/ARC2.py
inflating: PLATLIB/Crypto/Cipher/ARC2.pyc
inflating: PLATLIB/Crypto/Cipher/ARC4.py
inflating: PLATLIB/Crypto/Cipher/ARC4.pyc
inflating: PLATLIB/Crypto/Cipher/blockalgo.py
inflating: PLATLIB/Crypto/Cipher/blockalgo.pyc
inflating: PLATLIB/Crypto/Cipher/Blowfish.py
inflating: PLATLIB/Crypto/Cipher/Blowfish.pyc
inflating: PLATLIB/Crypto/Cipher/CAST.py
inflating: PLATLIB/Crypto/Cipher/CAST.pyc
inflating: PLATLIB/Crypto/Cipher/DES.py
inflating: PLATLIB/Crypto/Cipher/DES.pyc
inflating: PLATLIB/Crypto/Cipher/DES3.py
inflating: PLATLIB/Crypto/Cipher/DES3.pyc
inflating: PLATLIB/Crypto/Cipher/PKCS1_OAEP.py
inflating: PLATLIB/Crypto/Cipher/PKCS1_OAEP.pyc
inflating: PLATLIB/Crypto/Cipher/PKCS1_v1_5.py
inflating: PLATLIB/Crypto/Cipher/PKCS1_v1_5.pyc
inflating: PLATLIB/Crypto/Cipher/XOR.py
inflating: PLATLIB/Crypto/Cipher/XOR.pyc
inflating: PLATLIB/Crypto/Cipher/_AES.pyd
inflating: PLATLIB/Crypto/Cipher/_ARC2.pyd
inflating: PLATLIB/Crypto/Cipher/_ARC4.pyd
inflating: PLATLIB/Crypto/Cipher/_Blowfish.pyd
inflating: PLATLIB/Crypto/Cipher/_CAST.pyd
inflating: PLATLIB/Crypto/Cipher/_DES.pyd
inflating: PLATLIB/Crypto/Cipher/_DES3.pyd
inflating: PLATLIB/Crypto/Cipher/_XOR.pyd
inflating: PLATLIB/Crypto/Cipher/init.py
inflating: PLATLIB/Crypto/Cipher/init.pyc
inflating: PLATLIB/Crypto/Hash/hashalgo.py
inflating: PLATLIB/Crypto/Hash/hashalgo.pyc
inflating: PLATLIB/Crypto/Hash/HMAC.py
inflating: PLATLIB/Crypto/Hash/HMAC.pyc
inflating: PLATLIB/Crypto/Hash/MD2.py
inflating: PLATLIB/Crypto/Hash/MD2.pyc
inflating: PLATLIB/Crypto/Hash/MD4.py
inflating: PLATLIB/Crypto/Hash/MD4.pyc
inflating: PLATLIB/Crypto/Hash/MD5.py
inflating: PLATLIB/Crypto/Hash/MD5.pyc
inflating: PLATLIB/Crypto/Hash/RIPEMD.py
inflating: PLATLIB/Crypto/Hash/RIPEMD.pyc
inflating: PLATLIB/Crypto/Hash/SHA.py
inflating: PLATLIB/Crypto/Hash/SHA.pyc
inflating: PLATLIB/Crypto/Hash/SHA224.py
inflating: PLATLIB/Crypto/Hash/SHA224.pyc
inflating: PLATLIB/Crypto/Hash/SHA256.py
inflating: PLATLIB/Crypto/Hash/SHA256.pyc
inflating: PLATLIB/Crypto/Hash/SHA384.py
inflating: PLATLIB/Crypto/Hash/SHA384.pyc
inflating: PLATLIB/Crypto/Hash/SHA512.py
inflating: PLATLIB/Crypto/Hash/SHA512.pyc
inflating: PLATLIB/Crypto/Hash/_MD2.pyd
inflating: PLATLIB/Crypto/Hash/_MD4.pyd
inflating: PLATLIB/Crypto/Hash/_RIPEMD160.pyd
inflating: PLATLIB/Crypto/Hash/_SHA224.pyd
inflating: PLATLIB/Crypto/Hash/_SHA256.pyd
inflating: PLATLIB/Crypto/Hash/_SHA384.pyd
inflating: PLATLIB/Crypto/Hash/_SHA512.pyd
inflating: PLATLIB/Crypto/Hash/init.py
inflating: PLATLIB/Crypto/Hash/init.pyc
inflating: PLATLIB/Crypto/Protocol/AllOrNothing.py
inflating: PLATLIB/Crypto/Protocol/AllOrNothing.pyc
inflating: PLATLIB/Crypto/Protocol/Chaffing.py
inflating: PLATLIB/Crypto/Protocol/Chaffing.pyc
inflating: PLATLIB/Crypto/Protocol/KDF.py
inflating: PLATLIB/Crypto/Protocol/KDF.pyc
inflating: PLATLIB/Crypto/Protocol/init.py
inflating: PLATLIB/Crypto/Protocol/init.pyc
inflating: PLATLIB/Crypto/PublicKey/DSA.py
inflating: PLATLIB/Crypto/PublicKey/DSA.pyc
inflating: PLATLIB/Crypto/PublicKey/ElGamal.py
inflating: PLATLIB/Crypto/PublicKey/ElGamal.pyc
inflating: PLATLIB/Crypto/PublicKey/pubkey.py
inflating: PLATLIB/Crypto/PublicKey/pubkey.pyc
inflating: PLATLIB/Crypto/PublicKey/RSA.py
inflating: PLATLIB/Crypto/PublicKey/RSA.pyc
inflating: PLATLIB/Crypto/PublicKey/_DSA.py
inflating: PLATLIB/Crypto/PublicKey/_DSA.pyc
inflating: PLATLIB/Crypto/PublicKey/_RSA.py
inflating: PLATLIB/Crypto/PublicKey/_RSA.pyc
inflating: PLATLIB/Crypto/PublicKey/_slowmath.py
inflating: PLATLIB/Crypto/PublicKey/_slowmath.pyc
inflating: PLATLIB/Crypto/PublicKey/init.py
inflating: PLATLIB/Crypto/PublicKey/init.pyc
inflating: PLATLIB/Crypto/Random/random.py
inflating: PLATLIB/Crypto/Random/random.pyc
inflating: PLATLIB/Crypto/Random/_UserFriendlyRNG.py
inflating: PLATLIB/Crypto/Random/_UserFriendlyRNG.pyc
inflating: PLATLIB/Crypto/Random/init.py
inflating: PLATLIB/Crypto/Random/init.pyc
inflating: PLATLIB/Crypto/Random/Fortuna/FortunaAccumulator.py
inflating: PLATLIB/Crypto/Random/Fortuna/FortunaAccumulator.pyc
inflating: PLATLIB/Crypto/Random/Fortuna/FortunaGenerator.py
inflating: PLATLIB/Crypto/Random/Fortuna/FortunaGenerator.pyc
inflating: PLATLIB/Crypto/Random/Fortuna/SHAd256.py
inflating: PLATLIB/Crypto/Random/Fortuna/SHAd256.pyc
inflating: PLATLIB/Crypto/Random/Fortuna/init.py
inflating: PLATLIB/Crypto/Random/Fortuna/init.pyc
inflating: PLATLIB/Crypto/Random/OSRNG/fallback.py
inflating: PLATLIB/Crypto/Random/OSRNG/fallback.pyc
inflating: PLATLIB/Crypto/Random/OSRNG/nt.py
inflating: PLATLIB/Crypto/Random/OSRNG/nt.pyc
inflating: PLATLIB/Crypto/Random/OSRNG/posix.py
inflating: PLATLIB/Crypto/Random/OSRNG/rng_base.py
inflating: PLATLIB/Crypto/Random/OSRNG/rng_base.pyc
inflating: PLATLIB/Crypto/Random/OSRNG/winrandom.pyd
inflating: PLATLIB/Crypto/Random/OSRNG/init.py
inflating: PLATLIB/Crypto/Random/OSRNG/init.pyc
inflating: PLATLIB/Crypto/SelfTest/st_common.py
inflating: PLATLIB/Crypto/SelfTest/st_common.pyc
inflating: PLATLIB/Crypto/SelfTest/init.py
inflating: PLATLIB/Crypto/SelfTest/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/common.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/common.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_AES.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_AES.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_ARC2.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_ARC2.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_ARC4.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_ARC4.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_Blowfish.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_Blowfish.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_CAST.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_CAST.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_DES.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_DES.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_DES3.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_DES3.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_pkcs1_15.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_pkcs1_15.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_pkcs1_oaep.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_XOR.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/test_XOR.pyc
inflating: PLATLIB/Crypto/SelfTest/Cipher/init.py
inflating: PLATLIB/Crypto/SelfTest/Cipher/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/common.py
inflating: PLATLIB/Crypto/SelfTest/Hash/common.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_HMAC.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_HMAC.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD2.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD2.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD4.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD4.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD5.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_MD5.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_RIPEMD.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_RIPEMD.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA224.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA224.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA256.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA256.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA384.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA384.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA512.py
inflating: PLATLIB/Crypto/SelfTest/Hash/test_SHA512.pyc
inflating: PLATLIB/Crypto/SelfTest/Hash/init.py
inflating: PLATLIB/Crypto/SelfTest/Hash/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_AllOrNothing.py
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_AllOrNothing.pyc
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_chaffing.py
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_chaffing.pyc
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_KDF.py
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_rfc1751.py
inflating: PLATLIB/Crypto/SelfTest/Protocol/test_rfc1751.pyc
inflating: PLATLIB/Crypto/SelfTest/Protocol/init.py
inflating: PLATLIB/Crypto/SelfTest/Protocol/init.pyc
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_DSA.py
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_DSA.pyc
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_ElGamal.py
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_ElGamal.pyc
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_importKey.py
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_importKey.pyc
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_RSA.py
inflating: PLATLIB/Crypto/SelfTest/PublicKey/test_RSA.pyc
inflating: PLATLIB/Crypto/SelfTest/PublicKey/init.py
inflating: PLATLIB/Crypto/SelfTest/PublicKey/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/test_random.py
inflating: PLATLIB/Crypto/SelfTest/Random/test_random.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/test_rpoolcompat.py
inflating: PLATLIB/Crypto/SelfTest/Random/test_rpoolcompat.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/init.py
inflating: PLATLIB/Crypto/SelfTest/Random/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/test_SHAd256.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/init.py
inflating: PLATLIB/Crypto/SelfTest/Random/Fortuna/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_fallback.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_fallback.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_generic.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_generic.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_nt.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_nt.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_posix.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_winrandom.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/test_winrandom.pyc
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/init.py
inflating: PLATLIB/Crypto/SelfTest/Random/OSRNG/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Signature/test_pkcs1_15.py
inflating: PLATLIB/Crypto/SelfTest/Signature/test_pkcs1_15.pyc
inflating: PLATLIB/Crypto/SelfTest/Signature/test_pkcs1_pss.py
inflating: PLATLIB/Crypto/SelfTest/Signature/test_pkcs1_pss.pyc
inflating: PLATLIB/Crypto/SelfTest/Signature/init.py
inflating: PLATLIB/Crypto/SelfTest/Signature/init.pyc
inflating: PLATLIB/Crypto/SelfTest/Util/test_asn1.py
inflating: PLATLIB/Crypto/SelfTest/Util/test_Counter.py
inflating: PLATLIB/Crypto/SelfTest/Util/test_Counter.pyc
inflating: PLATLIB/Crypto/SelfTest/Util/test_number.py
inflating: PLATLIB/Crypto/SelfTest/Util/test_number.pyc
inflating: PLATLIB/Crypto/SelfTest/Util/test_winrandom.py
inflating: PLATLIB/Crypto/SelfTest/Util/test_winrandom.pyc
inflating: PLATLIB/Crypto/SelfTest/Util/init.py
inflating: PLATLIB/Crypto/SelfTest/Util/init.pyc
inflating: PLATLIB/Crypto/Signature/PKCS1_PSS.py
inflating: PLATLIB/Crypto/Signature/PKCS1_PSS.pyc
inflating: PLATLIB/Crypto/Signature/PKCS1_v1_5.py
inflating: PLATLIB/Crypto/Signature/PKCS1_v1_5.pyc
inflating: PLATLIB/Crypto/Signature/init.py
inflating: PLATLIB/Crypto/Signature/init.pyc
inflating: PLATLIB/Crypto/Util/asn1.py
inflating: PLATLIB/Crypto/Util/asn1.pyc
inflating: PLATLIB/Crypto/Util/Counter.py
inflating: PLATLIB/Crypto/Util/Counter.pyc
inflating: PLATLIB/Crypto/Util/number.py
inflating: PLATLIB/Crypto/Util/number.pyc
inflating: PLATLIB/Crypto/Util/py21compat.py
inflating: PLATLIB/Crypto/Util/py3compat.py
inflating: PLATLIB/Crypto/Util/py3compat.pyc
inflating: PLATLIB/Crypto/Util/randpool.py
inflating: PLATLIB/Crypto/Util/randpool.pyc
inflating: PLATLIB/Crypto/Util/RFC1751.py
inflating: PLATLIB/Crypto/Util/RFC1751.pyc
inflating: PLATLIB/Crypto/Util/strxor.pyd
inflating: PLATLIB/Crypto/Util/winrandom.py
inflating: PLATLIB/Crypto/Util/winrandom.pyc
inflating: PLATLIB/Crypto/Util/_counter.pyd
inflating: PLATLIB/Crypto/Util/_number_new.py
inflating: PLATLIB/Crypto/Util/_number_new.pyc
inflating: PLATLIB/Crypto/Util/init.py
inflating: PLATLIB/Crypto/Util/init.pyc
--2017-10-02 08:52:31-- https://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140/vcredist_x86.exe
Resolving download.microsoft.com (download.microsoft.com)... 23.212.232.197, 2a02:26f0:7400:193::e59, 2a02:26f0:7400:189::e59
Connecting to download.microsoft.com (download.microsoft.com)|23.212.232.197|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1821192 (1.7M) [application/octet-stream]
Saving to: ‘vcredist_x86.exe’

vcredist_x86.exe 100%[===================>] 1.74M 189KB/s in 9.4s

2017-10-02 08:52:41 (189 KB/s) - ‘vcredist_x86.exe’ saved [1821192/1821192]

^C--2017-10-02 08:54:17-- https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/pywin32-220.win32-py2.7.exe/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20220/pywin32-220.win32-py2.7.exe?r=&ts=1506948859&use_mirror=netix [following]
--2017-10-02 08:54:19-- https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20220/pywin32-220.win32-py2.7.exe?r=&ts=1506948859&use_mirror=netix
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:443... connected.

Installation of vcredist_x86.exe give extraction of error

What can i do?

DNS payload crash always!!

hi guys first thanks for this great job, but i have problem with DNS payload they always crashed and stop working fix this please !!

error help

i get this error
fatal: Ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git

When i try to update i can't and anyways when i create the backdoor show me error too..

EXTRATION FAILED

EXTRATION FAILED

unable to find a volume for file extration, please verify that you have proper permissions.
i click ok. and after the installation completes i can't start the prgramm because there is no directory. plss help!!

here is the error

[*] Downloading Python27, Pywin32 and Pycrypto For Wine
--2017-06-16 18:42:29-- https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
Resolviendo www.python.org (www.python.org)... 151.101.24.223, 2a04:4e42:6::223
Conectando con www.python.org (www.python.org)[151.101.24.223]:443... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 18423808 (18M) [application/octet-stream]
Grabando a: “python-2.7.10.msi”

python-2.7.10.msi 100%[==================================>] 17,57M 466KB/s in 80s

2017-06-16 18:43:50 (225 KB/s) - “python-2.7.10.msi” guardado [18423808/18423808]

err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:\Python27\lib\runpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:\Python27\lib\runpy.py", line 101, in get_module_details
loader = get_loader(mod_name)
File "C:\Python27\lib\pkgutil.py", line 464, in get_loader
return find_loader(fullname)
File "C:\Python27\lib\pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
File "C:\Python27\lib\pkgutil.py", line 430, in iter_importers
import(pkg)
File "C:\Python27\lib\ensurepip_init
.py", line 9, in
import tempfile
File "C:\Python27\lib\tempfile.py", line 35, in
from random import Random as _Random
File "C:\Python27\lib\random.py", line 885, in
_inst = Random()
File "C:\Python27\lib\random.py", line 97, in init
self.seed(x)
File "C:\Python27\lib\random.py", line 113, in seed
a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893801] Windows Error 0x80090017
err:msi:ITERATE_Actions Execution halted, action L"UpdatePip" returned 1627
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1
err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available
--2017-06-16 18:43:55-- http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py2.7.exe
Resolviendo www.voidspace.org.uk (www.voidspace.org.uk)... 207.38.86.245
Conectando con www.voidspace.org.uk (www.voidspace.org.uk)[207.38.86.245]:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 972594 (950K) [application/x-msdownload]
Grabando a: “pycrypto-2.6.win32-py2.7.exe”

pycrypto-2.6.win32-py2.7 100%[==================================>] 949,80K 469KB/s in 2,0s

2017-06-16 18:43:58 (469 KB/s) - “pycrypto-2.6.win32-py2.7.exe” guardado [972594/972594]

Installation problem

Hello,

I am trying to install Winpayloads on my kali machine but it seems to have failed and i get the following error:

[] Installing Python Requirements
Requirement already satisfied: blessings in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: pyasn1 in /usr/lib/python2.7/dist-packages
[
] Installing Pyinstaller
[] Installed Already, Skipping!
[
] Downloading Python27, Pywin32 and Pycrypto For Wine
[] Installed Already, Skipping!
[
] Installing impacket from Git
[] Installed Already, Skipping!
[
] Grabbing Wine Modules
wine: cannot find '/root/.wine/drive_c/Python27/Scripts/pip.exe'
[] Done
[
] Grabbing Modules
rm: cannot remove 'psexecspray.py': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4698 100 4698 0 0 2282 0 0:00:02 0:00:02 --:--:-- 2283
[] Done
[
] Grabbing Certs
Generating RSA private key, 2048 bit long modulus
...............+++
...................+++
e is 65537 (0x10001)
writing RSA key
Signature ok
subject=/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com
Getting Private key
[] Done
[
] Cleaning Up
[*] Done

Even when i went ahead to try creating payloads i get this error too:

Traceback (most recent call last):
File "/opt/pyinstaller/pyinstaller.py", line 14, in
from PyInstaller.main import run
File "Z:\opt\pyinstaller\PyInstaller_main_.py", line 21, in
import PyInstaller.building.build_main
File "Z:\opt\pyinstaller\PyInstaller\building\build_main.py", line 32, in
from ..depend import bindepend
File "Z:\opt\pyinstaller\PyInstaller\depend\bindepend.py", line 26, in
from . import dylib, utils
File "Z:\opt\pyinstaller\PyInstaller\depend\utils.py", line 25, in
from ..lib.modulegraph import modulegraph
File "Z:\opt\pyinstaller\PyInstaller\lib\modulegraph\modulegraph.py", line 18, in
import pkg_resources
ImportError: No module named pkg_resources

Kindly assist.

Thanks

run promble....

hi,i have finished .
when i run, it caues
choice:

================================================================================
Main Menu > 2

[] Press Enter For Default Port(4444)
[
] Port>

[] Press Enter To Get Local Ip Automatically(192.168.68.101)
[
] IP>
[] IP SET AS 192.168.68.101
[
] PORT SET AS 4444

y*] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:
[] Windows 7 or 10? 7/[10]:7
[
] Creating Payload using Pyinstaller...
▗ Ge
[*] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe

[*] Upload To Local Websever or (p)sexec? [y]/p/n: y

[*] Serving Payload On http://192.168.68.101:8000/Windows_Meterpreter_Reverse_Shell.exe
[-] Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
............................
.......................
Frustrated with proxy pivoting? Upgrade to layer-2 VPN pivoting with
Metasploit Pro -- learn more on http://rapid7.com/metasploit

   =[ metasploit v4.16.3-dev                          ]
  • -- --=[ 1677 exploits - 962 auxiliary - 296 post ]
  • -- --=[ 495 payloads - 40 encoders - 9 nops ]
  • -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

payload => windows/meterpreter/reverse_tcp
LPORT => 4444
LHOST => 0.0.0.0
autorunscript => multi_console_command -rc uacbypass.rc
ExitOnSession => false
[*] Exploit running as background job 0.

(
[*] Started reverse TCP handler on 0.0.0.0:4444
msf exploit(handler) > ----------------------------------------
Exception happened during processing of request from ('192.168.68.102', 44532)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 654, in init
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
self.wfile.close()
File "/usr/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/usr/lib/python2.7/socket.py", line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] 断开的管道

msf exploit(handler) >
,then i dont know the step??
please,my english no no

payloads aren't working

so i already test some payloads generators like chaos, fatrat, hercules and they all worked, but i tried the reverse_tcp and reverse_https but didn't work, dind't get a session... any help why is this happening? do i need to isntall something else?

import Error

hello, thanks for ur effort and help.

i cant find the solution, help me plz~!

root@kali:~/Winpayloads# ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/Winpayloads/lib/main.py", line 19, in
import psexec
File "/root/Winpayloads/lib/psexec.py", line 27, in
from impacket import version, smb
File "/usr/local/lib/python2.7/dist-packages/impacket/smb.py", line 49, in
from pyasn1.type.univ import noValue
ImportError: cannot import name noValue

System environment :

intel i5-4690 3.50
16gb ram
windows 7 Ultimate
Debian 8.x 64bit VMware
kali-linux-2017.3-amd64.iso
python version : 2.7.14
pip version ; pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

can't run "python winpayloads "

Traceback (most recent call last): File "WinPayloads.py", line 5, in <module> from lib.menu import * File "/Users/xxxn/winpayloads/lib/menu.py", line 4, in <module> from generatepayload import * File "/Users/xxx/winpayloads/lib/generatepayload.py", line 3, in <module> from psexecspray import * File "/Users/xxx/winpayloads/lib/psexecspray.py", line 29, in <module> t = blessings.Terminal() NameError: name 'blessings' is not defined
i am not sure this problem if

In use encountered some problems

Use the setup.sh file after the installation of payload generated when the error occurs.

`Main Menu> 1

[] Press Enter For Default Port (4444)
[
] Port>

[] Press Enter To Get Local Ip Automatically (192.168.0.1)
[
] IP>
[] IP SET AS 192.168.0.1
[
] PORT SET AS 4444

[*] Creating Payload using Pyinstaller ...
Mv: unable to get 'dist / payload.exe' file status (stat): no that file or directory

[] Payload.exe Has Been Generated And Is Here Here: /home/root/winpayloads/Windows_Reverse_Shell.exe
Rm: can not delete 'dist': no that file or directory
Rm: can not delete 'build': no that file or directory
Rm: can not delete '
.spec': no that file or directory`

My system version is Ubuntu 16.04.2 LTS. thank!

from pyasn1.type.univ import noValue - impacket

i follow the step, then re install it with the ./setup.sh -r ... and stil get this error when strt running the python file.
what seem be the probleme ?

the error response after running the file :
'XXXXXXX'~/pentest/Winpayloads# ./WinPayloads.py
Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/pentest/Winpayloads/lib/main.py", line 19, in
import psexec
File "/root/pentest/Winpayloads/lib/psexec.py", line 27, in
from impacket import version, smb
File "/usr/local/lib/python2.7/dist-packages/impacket/smb.py", line 49, in
from pyasn1.type.univ import noValue
ImportError: cannot import name noValue

Errors while generating a payload

Hello - I've been trying to figure out the problem for a long while, but can't seem to make any headway.

I was hoping you could please tell me what the problem is that I see displayed below when trying to generate a reverse HTTPS Meterpreter payload:

Main Menu > 4

[] Press Enter For Default Port(443)
[
] Port>

[] Press Enter To Get Local Ip Automatically(198.199.xxx.xxx)
[
] IP>
[] IP SET AS 198.199.xxx.xxx
[
] PORT SET AS 443

[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:n
[
] Invoke Priv Esc Checks? y/[n]:y
Traceback (most recent call last):
File "WinPayloads.py", line 41, in
getAndRunMainMenu()
File "/root/Winpayloads/lib/menu.py", line 61, in getAndRunMainMenu
mainMenu.runmenu()
File "/root/Winpayloads/lib/menu.py", line 115, in runmenu
result = extrawork(payloadchoice,payload)
File "/root/Winpayloads/lib/preparepayload.py", line 91, in httpsPayloadGeneration
GeneratePayload(ez2read_shellcode,payloadname,shellcode)
File "/root/Winpayloads/lib/generatepayload.py", line 60, in GeneratePayload
Filesave.write(do_Encryption(SHELLCODE.injectwindows % (ez2read_shellcode)))
File "/root/Winpayloads/lib/encrypt.py", line 29, in do_Encryption
encrypto = AES.new(key, AES.MODE_CTR, counter=lambda: counter)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 264, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/init.py", line 130, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/_mode_ctr.py", line 327, in _create_ctr_cipher
raise TypeError("Incorrect counter object"
TypeError: Incorrect counter object (use Crypto.Util.Counter.new)
root@pupyserv:/Winpayloads# nano /usr/local/lib/python2.7/dist-packages/Crypto/Cipher/_mode_ctr.py
root@pupyserv:
/Winpayloads#

Whatever other information you need, I'll be happy to provide. I've rerun "./setup.sh -r" more times than I can found. I've tried uninstalling/reinstalling pip, python, pyinstaller, anything I thought might help, but I'm just spinning my wheels at this point.

Thank you for any help you can provide.

Install Error

In Kali Linux 2016.2:

./setup.sh

[] Installing Dependencies
Obj:1 http:[...]
[...]
[
] Grabbing Wine Modules
wine: cannot find '/root/.wine/drive_c/Python27/Scripts/pip.exe'
[*] Done

if now run:

./setup.sh -r

[...]
[] Installing Python Requirements
Requirement already satisfied (use --upgrade to upgrade): blessings in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyasn1 in /usr/lib/python2.7/dist-packages
[
] Installing Pyinstaller
[*] Remove /opt/pyinstaller? [Y/n]

\033[1;31m[*] Reinstall Cancelled \033[0m

Installation Problem

Hi...

Problem with dependencies:

El paquete wine32 no está disponible, pero algún otro paquete hace referencia
a él. Esto puede significar que el paquete falta, está obsoleto o sólo se
encuentra disponible desde alguna otra fuente

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.