From c802397eccbbd745d9cf7eb729186a24131823a5 Mon Sep 17 00:00:00 2001 From: Ankit Das Date: Sat, 19 Dec 2020 19:37:41 +0530 Subject: [PATCH] Fixed Syntax Errors in Shellcode.py Comparison between A variable and an integer was being done using 'is' whereas it should be done using '=='. This has been fixed by replacing is with '=='. --- lib/shellcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shellcode.py b/lib/shellcode.py index 1a20188..6b87b0d 100644 --- a/lib/shellcode.py +++ b/lib/shellcode.py @@ -21,7 +21,7 @@ import config from utils import msg, error_msg -if sys.version_info.major is 3: +if sys.version_info.major == 3: from urllib.request import urlopen from urllib.parse import urlencode pyversion = 3 @@ -376,7 +376,7 @@ def zsc(self,os,job,encode): 'job': job, 'encode': encode}) shellcode = urlopen("http://api.z3r0d4y.com/index.py?%s\n"%(str(params))).read() - if pyversion is 3: + if pyversion == 3: shellcode = str(shellcode,encoding='ascii') return '\n"'+shellcode.replace('\n','')+'"\n' except: