def get_next_zombie(self,name): ufonet = UFONet() ufonet.create_options() zombies = ufonet.extract_zombies() if name in zombies : for z in zombies : if name == None: return z if z == name : name = None return None else: return zombies[0]
def __init__(self): self._geoip = None self._geoasn = None self._geoipstatus = 'nomap' self._err = '' ufonet = UFONet() ufonet.create_options() self.zombies = ufonet.extract_zombies() aliens_army = ufonet.extract_aliens() droids_army = ufonet.extract_droids() ucavs_army = ufonet.extract_ucavs() rpcs_army = ufonet.extract_rpcs() self.zombies.extend(aliens_army) self.zombies.extend(droids_army) self.zombies.extend(ucavs_army) self.zombies.extend(rpcs_army)
def __init__(self): self._geoip=None self._geoasn=None self._geoipstatus='nomap' self._err='' ufonet = UFONet() ufonet.create_options() self.zombies = ufonet.extract_zombies() aliens_army = ufonet.extract_aliens() droids_army = ufonet.extract_droids() ucavs_army = ufonet.extract_ucavs() rpcs_army = ufonet.extract_rpcs() self.zombies.extend(aliens_army) self.zombies.extend(droids_army) self.zombies.extend(ucavs_army) self.zombies.extend(rpcs_army)
def __init__(self): self.geo_db_mirror1 = 'http://176.28.23.46/bordercheck/maps.tar.gz' # Turina Server self.geo_db_mirror2 = 'http://83.163.232.95/bordercheck/maps.tar.gz' # Mirror self._geoip = None self._geoasn = None self._geoipstatus = 'nomap' self._err = '' ufonet = UFONet() ufonet.create_options() try: self.zombies = ufonet.extract_zombies() aliens_army = ufonet.extract_aliens() droids_army = ufonet.extract_droids() ucavs_army = ufonet.extract_ucavs() rpcs_army = ufonet.extract_rpcs() self.zombies.extend(aliens_army) self.zombies.extend(droids_army) self.zombies.extend(ucavs_army) self.zombies.extend(rpcs_army) except: return
def __init__(self): self.geo_db_mirror1 = 'http://176.28.23.46/bordercheck/maps.tar.gz' # Turina Server self.geo_db_mirror2 = 'http://83.163.232.95/bordercheck/maps.tar.gz' # Mirror self._geoip=None self._geoasn=None self._geoipstatus='nomap' self._err='' ufonet = UFONet() ufonet.create_options() try: self.zombies = ufonet.extract_zombies() aliens_army = ufonet.extract_aliens() droids_army = ufonet.extract_droids() ucavs_army = ufonet.extract_ucavs() rpcs_army = ufonet.extract_rpcs() self.zombies.extend(aliens_army) self.zombies.extend(droids_army) self.zombies.extend(ucavs_army) self.zombies.extend(rpcs_army) except: return
def html_requests(self): # read requests configuration file (json) try: with open('webcfg.json') as data_file: data = json.load(data_file) except: if os.path.exists('webcfg.json') == True: print '[Error] - Cannot open: webcfg.json. Change permissions to use WebGui correctly\n' sys.exit(2) else: # generate default requests configuration file print '[Error] - Cannot found: webcfg.json... Generating!\n' with open('webcfg.json', "w") as f: json.dump( { "rproxy": "NONE", "ruseragent": "RANDOM", "rreferer": "RANDOM", "rhost": "NONE", "rxforw": "on", "rxclient": "on", "rtimeout": "10", "rretries": "1", "rdelay": "0", "threads": "5" }, f, indent=4) # set values of requests configuration from json file to html form with open('webcfg.json') as data_file: data = json.load(data_file) self.instance = UFONet( ) # instance main class to take random generated values self.rproxy = data["rproxy"] if self.rproxy == "NONE": self.rproxy = "" self.ruseragent = data["ruseragent"] if self.ruseragent == "RANDOM": self.ruseragent = self.instance.user_agent # random user-agent self.rreferer = data["rreferer"] if self.rreferer == "RANDOM": self.rreferer = self.instance.referer # random referer self.rhost = data["rhost"] if self.rhost == "NONE": self.rhost = "" self.rxforw = data["rxforw"] if self.rxforw == "on": self.rxforw_check = 'checked' else: self.rxforw_check = '' self.rxclient = data["rxclient"] if self.rxclient == "on": self.rxclient_check = 'checked' else: self.rxclient_check = '' self.rtimeout = data["rtimeout"] self.rretries = data["rretries"] self.rdelay = data["rdelay"] self.threads = data["threads"] return self.pages["/header"] + """ <script language="javascript"> function Requests() { var win_requests = window.open("requests","_parent","fulscreen=no, titlebar=yes, top=180, left=320, width=720, height=460, resizable=yes", false);; } </script> </head><body bgcolor="black" text="lime" style="font-family:Â Courier, 'Courier New', monospace;" ><center><pre> <u>Configure requests:</u> <table cellpadding="2" cellspacing="2"> <form method='GET'> <tr> <td> Use proxy server</td> <td> <input type="text" name="rproxy" value='""" + str( self.rproxy) + """'></td> </tr> <tr> <td> Use another HTTP User-Agent header</td> <td> <input type="text" name="ruseragent" value='""" + str( self.ruseragent) + """'></td> </tr> <tr> <td> Use another HTTP Referer header</td> <td> <input type="text" name="rreferer" value='""" + str( self.rreferer) + """'></td> </tr> <tr> <td> Use another HTTP Host header</td> <td> <input type="text" name="rhost" value='""" + str(self.rhost) + """'></td> </tr> <tr> <td> Set your HTTP X-Forwarded-For with random IP values</td> <td> <input type="checkbox" name='rxforw' """ + self.rxforw_check + """></td> </tr> <tr> <td> Set your HTTP X-Client-IP with random IP values</td> <td> <input type="checkbox" name='rxclient' """ + self.rxclient_check + """></td> </tr> <tr> <td> Select your timeout</td> <td> <input type="text" name="rtimeout" value='""" + str( self.rtimeout) + """'></td> </tr> <tr> <td> Retries when the connection timeouts</td> <td> <input type="text" name="rretries" value='""" + str( self.rretries) + """'></td> </tr> <tr> <td> Delay in seconds between each HTTP request</td> <td> <input type="text" name="rdelay" value='""" + str( self.rdelay) + """'></td> </tr> <tr> <td> Number of threads</td> <td> <input type="text" name="threads" value='""" + str( self.threads) + """'></td> </tr> </table> <hr> <input type="hidden" name="update" value="1"> <input type="submit" value="Set!" onclick="Requests()"></pre> </form> """ + self.pages["/footer"]