This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ares.py
95 lines (72 loc) · 3.05 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
import boto3
import time
import os
print("""\
.(./,
//////////./
&&&&&&%,/(.
&&&&&&% (///
&&%&&&&&&#///
&&%&&&&&&
Ares.py &&&&&&&(./* (%%%
*/, /////////// &&&
&&& &%&&&&/&&%%&%,/// %&&/
%%&&&%(&&&&&&&%(&&&&.//*%
,& &.&&&&&&&&&&&&&%&.%%////
&&%&&&&&&&&&&&&&&&&&&&&(///////*
#%/%&&&&&&&&&&&&&&&&&.& &//////////////
&&&&&&&&&&&&&&&&&&&&&&&#//////////////
%#&/&#&&&&&&&&&&&&&%%%%&//////////////
,&&% %&&&,&&&&&&&&& %&&& ///////////
&&&. /%&&&&&&&&&&&%%////////////
,//&# %&&&&&(. *&%# ,//////////
///(.//, &&&&&&&&&&&&&# //////.
/// ////. &&& %&&%
//////. #&&% *&&&
.*/ .&& /&&
%&& &&%
,&%&&&& %&&.
""")
sqs = boto3.resource('sqs')
s3 = boto3.resource('s3')
queue = sqs.get_queue_by_name(QueueName='ares-hash-queue')
queue_url = "<SQS_QUEUE_URL>"
MessageAttrList = ["Hash"]
MessageAttr = {}
def sendMessage(MessageAttributes):
try:
response = queue.send_message(
MessageBody = "A Given Hash",
MessageAttributes = MessageAttributes)
http_code = response['ResponseMetadata']['HTTPStatusCode']
if (http_code == 200):
print("Successfully sent hash for cracking!")
else:
print("message failed")
except:
print("Message Failed to send....")
# body = input("Create the message body: ")
for attr in MessageAttrList:
# attributeType = input("Insert your Attribute Type: ")
attributeTypeValue = input("Insert the corresponding value for " + attr + ": ")
MessageAttr[attr] = {
'StringValue' : attributeTypeValue,
'DataType' : 'String'
}
print(MessageAttr)
sendMessage(MessageAttr)
print("Creating EC2 instance....")
os.system("bash spot-request-command.sh")
print("Instance created successfully...")
time.sleep(5)
# Catch Cracked Password from S3
while(True):
try:
# TODO: change static names to ENVariables
s3.meta.client.download_file('ares-hash-dump', 'results.txt', os.getcwd() + '/results.txt')
print("Hash cracked! Plaintext saved to results.txt in " + os.getcwd())
break
except:
print("Waiting on Hashcat to finish...")
time.sleep(15)
continue