Skip to content

Commit 84d38bd

Browse files
authored
Merge pull request #162 from nkitan/master
Fixed syntax warning in libs/shellcode.py
2 parents 22496f3 + a1f15b5 commit 84d38bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/shellcode.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import config
2222
from utils import msg, error_msg
2323

24-
if sys.version_info.major is 3:
24+
if sys.version_info.major == 3:
2525
from urllib.request import urlopen
2626
from urllib.parse import urlencode
2727
pyversion = 3
@@ -376,7 +376,7 @@ def zsc(self,os,job,encode):
376376
'job': job,
377377
'encode': encode})
378378
shellcode = urlopen("http://api.z3r0d4y.com/index.py?%s\n"%(str(params))).read()
379-
if pyversion is 3:
379+
if pyversion == 3:
380380
shellcode = str(shellcode,encoding='ascii')
381381
return '\n"'+shellcode.replace('\n','')+'"\n'
382382
except:

0 commit comments

Comments
 (0)