Skip to content

Commit

Permalink
update DREX.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaatme authored May 24, 2023
1 parent 58fa06f commit f8050ed
Showing 1 changed file with 71 additions and 47 deletions.
118 changes: 71 additions & 47 deletions DREX.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def os_detection():
"""

print(string)
print("\n")
print("Insert target IP address: ")
target = input()
packet = IP(dst=target) / TCP(flags="")
Expand Down Expand Up @@ -47,14 +48,17 @@ def os_detection():

def port_scanner():
os.system("clear")
string = """\
____ ____ ____ _____ ____ ____ ____ _ _ _____ ____
/ __\/ _ \/ __\/__ __\ / ___\/ _\/ _ \/ \ /|/ \ /|/ __// __\
pattern = '''
____ ____ ____ _____ ____ ____ ____ _ _ _____ ____
/ __\/ _ \/ __\/__ __\ / ___\/ _\/ _ \/ \ /|/ \ /|/ __// __\\
| \/|| / \|| \/| / \ | \| / | / \|| |\ ||| |\ ||| \ | \/|
| __/| \_/|| / | | \___ || \__| |-||| | \||| | \||| /_ | /
\_/ \____/\_/\_\ \_/ \____/\____/\_/ \|\_/ \|\_/ \|\____\\_/\_\
"""
print(string)
'''

print(pattern)

print("\n")
print("Insert target IP address: ")
target = input()

Expand Down Expand Up @@ -87,14 +91,18 @@ def port_scanner():

def ip_sweep():
os.system("clear")
string = """\
____ ____ _____ _ _ _____ _ ____ ____ _____ ____ _ _ _ _____ _____ _ ____ ____ _ __
/ _ \/ _\/__ __\/ \/ \ |\/ __/ / \ /|/ _ \/ ___\/__ __\/ ___\ / \/ \ /| / \ /|/ __//__ __\/ \ /|/ _ \/ __\/ |/ /
| / \|| / / \ | || | //| \ | |_||| / \|| \ / \ | \ | || |\ || | |\ ||| \ / \ | | ||| / \|| \/|| /
| |-||| \_ | | | || \// | /_ | | ||| \_/|\___ | | | \___ | | || | \|| | | \||| /_ | | | |/\||| \_/|| /| \
\_/ \|\____/ \_/ \_/\__/ \____\ \_/ \|\____/\____/ \_/ \____/ \_/\_/ \| \_/ \|\____\ \_/ \_/ \|\____/\_/\_\\_|\_\
"""
print(string)

pattern = '''
____ ____ _____ _ _ _____ _ ____ ____ _____ ____
/ _ \/ _\/__ __\/ \/ \ |\/ __/ / \ /|/ _ \/ ___\/__ __\/ ___\
| / \|| / / \ | || | //| \ | |_||| / \|| \ / \ | \
| |-||| \_ | | | || \// | /_ | | ||| \_/|\___ | | | \___ |
\_/ \|\____/ \_/ \_/\__/ \____\ \_/ \|\____/\____/ \_/ \____/
'''

print(pattern)
print("\n")

# Defines network to analyze
print(
"Insert the network address to scan (The format should be xxx.xxx.xxx.xxx/xx):"
Expand All @@ -120,14 +128,16 @@ def ip_sweep():

def ip_spoof():
os.system("clear")
string = """\
_ ____ ____ ____ ____ ____ _____ _____ _____ ____ _____ _ _ _____
/ \/ __\ / ___\/ __\/ _ \/ _ \/ / /__ __\/ __// ___\/__ __\/ \/ \ /|/ __/
| || \/| | \| \/|| / \|| / \|| __\ / \ | \ | \ / \ | || |\ ||| | _
| || __/ \___ || __/| \_/|| \_/|| | | | | /_ \___ | | | | || | \||| |_//
\_/\_/ \____/\_/ \____/\____/\_/ \_/ \____\\____/ \_/ \_/\_/ \|\____\
"""
print(string)
pattern = '''
_ ____ ____ ____ ____ ____ _____
/ \/ __\ / ___\/ __\/ _ \/ _ \/ /
| || \/| | \| \/|| / \|| / \|| __\\
| || __/ \___ || __/| \_/|| \_/|| |
\_/\_/ \____/\_/ \____/\____/\_/
'''

print(pattern)
print("\n")
# Simple version
print("Insert target IP address: ")
target = input()
Expand All @@ -150,14 +160,17 @@ def ip_spoof():
# DOS ATTACKS
def syn_flood():
os.system("clear")
string = """\
pattern = '''
____ ___ _ _ _____ _ ____ ____ ____
/ ___\\ \/// \ /| / // \ / _ \/ _ \/ _ \
/ ___\\ \/// \ /| / // \ / _ \/ _ \/ _ \\
| \ \ / | |\ || | __\| | | / \|| / \|| | \|
\___ | / / | | \|| | | | |_/\| \_/|| \_/|| |_/|
\___ | / / | | \|| | | | |_/\| \_/|| \_/|| |_/
\____//_/ \_/ \| \_/ \____/\____/\____/\____/
"""
print(string)
'''

print(pattern)

print("\n")
print("Insert target IP address: ")
target = input()
print("Attacking " + target + " with SYN flood.")
Expand All @@ -179,14 +192,16 @@ def flood():

def spoofed_syn_flood():
os.system("clear")
string = """\
pattern = '''
____ ____ ____ ____ _____ _____ ____ ____ ___ _ _ _____ _ ____ ____ ____
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / ___\\ \/// \ /| / // \ / _ \/ _ \/ _ \
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / ___\\ \/// \ /| / // \ / _ \/ _ \/ _ \\
| \| \/|| / \|| / \|| __\| \ | | \| | \ \ / | |\ || | __\| | | / \|| / \|| | \|
\___ || __/| \_/|| \_/|| | | /_ | |_/| \___ | / / | | \|| | | | |_/\| \_/|| \_/|| |_/|
\___ || __/| \_/|| \_/|| | | /_ | |_/| \___ | / / | | \|| | | | |_/\| \_/|| \_/|| |_/
\____/\_/ \____/\____/\_/ \____\\____/ \____//_/ \_/ \| \_/ \____/\____/\____/\____/
"""
print(string)
'''
print(pattern)

print("\n")
print("Insert target IP address: ")
target = input()
print("Attacking " + target + " with SPOOFED SYN flood.")
Expand Down Expand Up @@ -221,15 +236,17 @@ def spoofed_flood():

def icmp_flood():
os.system("clear")
string = """\
pattern = '''
_ ____ _ ____ _____ _ ____ ____ ____
/ \/ _\/ \__/|/ __\ / // \ / _ \/ _ \/ _ \
/ \/ _\/ \__/|/ __\ / // \ / _ \/ _ \/ _ \\
| || / | |\/||| \/| | __\| | | / \|| / \|| | \|
| || \__| | ||| __/ | | | |_/\| \_/|| \_/|| |_/|
| || \__| | ||| __/ | | | |_/\| \_/|| \_/|| |_/
\_/\____/\_/ \|\_/ \_/ \____/\____/\____/\____/
"""
print(string)
'''

print(pattern)

print("\n")
print("Insert target IP address: ")
target = input()
print("Attacking " + target + " with ICMP flood.")
Expand All @@ -251,14 +268,17 @@ def flood():

def spoofed_icmp_flood():
os.system("clear")
string = """\
pattern = '''
____ ____ ____ ____ _____ _____ ____ _ ____ _ ____ _____ _ ____ ____ ____
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / \/ _\/ \__/|/ __\ / // \ / _ \/ _ \/ _ \
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / \/ _\/ \__/|/ __\ / // \ / _ \/ _ \/ _ \\
| \| \/|| / \|| / \|| __\| \ | | \| | || / | |\/||| \/| | __\| | | / \|| / \|| | \|
\___ || __/| \_/|| \_/|| | | /_ | |_/| | || \__| | ||| __/ | | | |_/\| \_/|| \_/|| |_/|
\___ || __/| \_/|| \_/|| | | /_ | |_/| | || \__| | ||| __/ | | | |_/\| \_/|| \_/|| |_/
\____/\_/ \____/\____/\_/ \____\\____/ \_/\____/\_/ \|\_/ \_/ \____/\____/\____/\____/
"""
print(string)
'''

print(pattern)

print("\n")
print("Insert target IP address: ")
target = input()
print("Attacking " + target + " with ICMP flood.")
Expand Down Expand Up @@ -294,14 +314,16 @@ def spoofed_flood():
def spoofed_udp_flood():
os.system("clear")

string = """\
pattern = '''
____ ____ ____ ____ _____ _____ ____ _ ____ ____ _____ _ ____ ____ ____
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / \ /\/ _ \/ __\ / // \ / _ \/ _ \/ _ \
/ ___\/ __\/ _ \/ _ \/ // __// _ \ / \ /\/ _ \/ __\ / // \ / _ \/ _ \/ _ \\
| \| \/|| / \|| / \|| __\| \ | | \| | | ||| | \|| \/| | __\| | | / \|| / \|| | \|
\___ || __/| \_/|| \_/|| | | /_ | |_/| | \_/|| |_/|| __/ | | | |_/\| \_/|| \_/|| |_/|
\___ || __/| \_/|| \_/|| | | /_ | |_/| | \_/|| |_/|| __/ | | | |_/\| \_/|| \_/|| |_/
\____/\_/ \____/\____/\_/ \____\\____/ \____/\____/\_/ \_/ \____/\____/\____/\____/
"""
print(string)
'''

print(pattern)
print("\n")
print("Insert target IP address: ")
target = input()

Expand Down Expand Up @@ -346,6 +368,7 @@ def ping_of_death():
"""

print(string)
print("\n")
print("Insert target IP address: ")
target = input()

Expand All @@ -368,7 +391,7 @@ def dns_amplification():
\____/\_/ \|\____/ \_/ \|\_/ \|\_/ \____/\_/\_/ \_/\____/\_/ \| \_/ \_/\____/\_/ \|
"""
print(string)

print("\n")
print("Insert the target IP address: ")
target = input()

Expand Down Expand Up @@ -397,6 +420,7 @@ def sql_injection():
"""

print(string)
print("\n")
print("Insert the website IP:")
target = input()
print("[-] Attempting an SQL injection attack...")
Expand Down

0 comments on commit f8050ed

Please sign in to comment.