Skip to content

Commit

Permalink
Merge pull request #1 from nkitan/nkitan-fix-syntax
Browse files Browse the repository at this point in the history
Fixed Syntax Errors in Shellcode.py
  • Loading branch information
nkitan authored Dec 19, 2020
2 parents 62b368f + c802397 commit a1f15b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shellcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a1f15b5

Please sign in to comment.