nccgroup/Winpayloads

Payload creation error

omerbadawy11 opened this issue · 0 comments

root@anon:~/Winpayloads# ./WinPayloads.py
Checking if up-to-date || ctr + c to cancel
▎ Checkin

                                        _       ___       ____              __                __
                                       | |     / (_)___  / __ \____ ___  __/ /___  ____ _____/ /____
                                       | | /| / / / __ \/ /_/ / __ `/ / / / / __ \/ __ `/ __  / ___/
                                       | |/ |/ / / / / / ____/ /_/ / /_/ / / /_/ / /_/ / /_/ (__  )
                                       |__/|__/_/_/ /_/_/    \__,_/\__, /_/\____/\__,_/\__,_/____/
                                                                /____/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 Stager
clients: Stager Connected Clients

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

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

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

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

[] Try UAC Bypass(Only Works For Local Admin Account)? y/[n]:y
[
] Windows 7 or 10? 7/[10]:
Traceback (most recent call last):
File "./WinPayloads.py", line 45, in
getAndRunMainMenu()
File "/root/Winpayloads/lib/menu.py", line 49, in getAndRunMainMenu
mainMenu.runmenu()
File "/root/Winpayloads/lib/menu.py", line 110, in runmenu
result = extrawork(payloadchoice,payload)
File "/root/Winpayloads/lib/preparepayload.py", line 42, in reversePayloadGeneration
GeneratePayload(ez2read_shellcode,payloadname,shellcode)
File "/root/Winpayloads/lib/generatepayload.py", line 63, 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 202, 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 79, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Crypto/Cipher/_mode_ctr.py", line 325, in _create_ctr_cipher
_counter = dict(counter)
TypeError: 'function' object is not iterable