Skip to content

Commit 6710298

Browse files
committed
Merge pull request #78 from onedv/master
Fixed shellcode display for PY3 due to missing decode
2 parents 2dae43f + caedb99 commit 6710298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shellcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def display(self, shellcodeId):
356356
try:
357357
s.request("GET", "/shellcode/files/shellcode-"+str(shellcodeId)+".php")
358358
res = s.getresponse()
359-
data = res.read().split("<pre>")[1].split("<body>")[0]
359+
data = res.read().decode('utf-8').split("<pre>")[1].split("<body>")[0]
360360
except:
361361
error_msg("Failed to download shellcode from shell-storm.org")
362362
return None

0 commit comments

Comments
 (0)