Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Error #3

Closed
d0ubl3puls4r opened this issue Mar 18, 2018 · 4 comments
Closed

Error #3

d0ubl3puls4r opened this issue Mar 18, 2018 · 4 comments

Comments

@d0ubl3puls4r
Copy link

Hello, when using the tool, in the part that asks for the file name, when I inform, I get the following error:

Traceback (most recent call last):
File "./phantom-evasion.py", line 492, in
complete_menu ()
File "./phantom-evasion.py", line 260, in complete_menu
Phantom_lib.shellcode_completer (module_type)
File "Setup / Phantom_lib.py", line 961, in shellcode_completer
module_launcher1 (module_type)
File "Setup / Phantom_lib.py", line 882, in module_launcher1
Payload = payload_generator (payload_choice, Arc, commtype, port, "c")
UnboundLocalError: local variable 'commtype' referenced before assignment

I would like to know how to solve this problem, Thanks in advance.

@oddcod3
Copy link
Owner

oddcod3 commented Mar 19, 2018

Which msfvenom payload are you using?
It seems that you have made some mistake while writing the payload options (maybe leaving it blank?)

@vince-nayal
Copy link

According to the code Commtype is only set if the msf payload contains the string reverse or bind.

So any payload not containing those string will fail. Eg:

  • payload/windows/adduser
  • payload/windows/exec
  • payload/windows/download_exec
  • a few more...

A default else statement saying that those few payloads may only be used by manual msfvenom generation should do the trick

@oddcod3
Copy link
Owner

oddcod3 commented Mar 20, 2018

Thank you vince-nayal
I have already updated phantom evasion and solved the issue

@d0ubl3puls4r
Copy link
Author

The error was mine, I forgot to pass the payload on the desired option, now it is working perfectly.

@oddcod3 oddcod3 closed this as completed Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants