Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

SyntaxWarning #351

Closed
truesamurai opened this issue Apr 17, 2020 · 4 comments
Closed

SyntaxWarning #351

truesamurai opened this issue Apr 17, 2020 · 4 comments

Comments

@truesamurai
Copy link

truesamurai commented Apr 17, 2020

Veil version

3.1.12

OS Used - all info (architecture, linux flavor, etc)

Linux kali 5.4.0-kali4-amd64 #1 SMP Debian 5.4.19-1kali1 (2020-02-17) x86_64 GNU/Linux

How did you install Veil? (Apt, Clone from Github, etc.)

clone from Github

Did you run the setup script?

cd config
./setup.sh

Pastebin link to error you are encountering (include console actions you took prior to error)


./Veil.py
tools/ordnance/tool.py:382: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if payload.required_options["Encoder"][0] is not "None":
tools/evasion/tool.py:195: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if payload_option is not '':
tools/evasion/tool.py:420: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if key is "LHOST":
tools/evasion/tool.py:428: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif key is "LPORT":
/opt/Veil/tools/evasion/evasion_common/outfile.py:52: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if payload_object.language is not "native" and payload_object.extension is not "war":
/opt/Veil/tools/evasion/evasion_common/outfile.py:52: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if payload_object.language is not "native" and payload_object.extension is not "war":
/opt/Veil/tools/evasion/evasion_common/shellcode_help.py:460: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if xtra_opt is not '':
/opt/Veil/tools/evasion/evasion_common/shellcode_help.py:550: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if xtra_opt is not '':
/opt/Veil//tools/ordnance/tool.py:382: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if payload.required_options["Encoder"][0] is not "None":
===============================================================================
                             Veil | [Version]: 3.1.12
===============================================================================
      [Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
===============================================================================

Expected behavior

before I did apt-get dist-upgrade Veil was opening without this error

Any additional info you want to tell me

This happend after apt-get dist-upgrade in Kali.
Before that Veil was running without errors

@ShigeoNomura
Copy link

ShigeoNomura commented Apr 18, 2020

Same thing.. but if you install it using github and then use sudo python3.7 Veil/./Veil it will start without this error. Or just open each file from this error log and change "is not" with "!=" and "is" with "=="

@truesamurai
Copy link
Author

truesamurai commented Apr 18, 2020

I tried that as well but I still have the errors. I will try to change the code.

@truesamurai
Copy link
Author

I changed "is not" with "!=" and "is" with "==" and now it is running without error. Thanks @ShigeoNomura

@ChrisTruncer
Copy link
Member

This has been fixed. It wasn't a breaking bug but did cause verbose messages to be displayed

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