def is_target_up(fp=''): resp = None request = urllib2.Request(vars.getUrl()) response = fp.open(request) resp = str(response.code) if resp: return True else: return False
along with this program. If not, see <http://www.gnu.org/licenses/>. """ import sys import funcs try: import argparse except ImportError, e: print "Module argparse does not exist or is not accessible, please install that (pip)" funcs.clean_up_tor() sys.exit(0) import vars import attacks import os ################################################################## # vars url = vars.getUrl() # static vars apppath = vars.getApppath() loginpage = vars.loginpage targetpath = vars.targetpath slash = vars.slash user = vars.user # dynamic vars targetloginpage = url + apppath + loginpage successfulattacks = {} secval = 0 fp = None anonFName = ".anon" ################################################################## if os.path.isfile(anonFName): # delete
import sys import funcs try: import argparse except ImportError, e: print "Module argparse does not exist or is not accessible, please install that (pip)" funcs.clean_up_tor() sys.exit(0) import vars import attacks import os ################################################################## # vars url = vars.getUrl() # static vars apppath = vars.getApppath() loginpage = vars.loginpage targetpath = vars.targetpath slash = vars.slash user = vars.user # dynamic vars targetloginpage = url + apppath + loginpage successfulattacks = {} secval = 0 fp = None anonFName = ".anon" ################################################################## if os.path.isfile(anonFName): # delete