I am trying to sort the reverse engineer / pentest of my router, but for some reason I keep getting requests.exceptions.ConnectionError
after 100 requests.
My code is:
import requests
from sys import argv
from time import sleep
for i in xrange(int(argv[1]), int(argv[2])):
r = requests.get("http://192.168.2.254/getpage.gch?pid={}&nextpage=status_wan_connection_t.gch".format(i))
print i, r.status_code
After 100 requests, I get requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
Why is this happening? My router is blocking my computer directly, and not just blocking the write with an HTTP status code?
David source
share