-
Notifications
You must be signed in to change notification settings - Fork 0
/
server
208 lines (204 loc) · 5.87 KB
/
server
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#!/usr/bin/python3
# This code write by (ms.nope)
import os
import time
import subprocess
import sys
class color:
green = '\033[92m'
red = '\033[91m'
white = '\033[0m'
serverscan = color.green + "\nserverscan ~# " + color.white
ip = color.green + "\nEnter ip: " + color.white
def menu():
os.system('printf "\033]2;Server-Scan\a"')
os.system("clear")
print(color.green + """
█▀▀ █▀▀ █▀▀█ ▀█░█▀ █▀▀ █▀▀█ █▀▀ █▀▀ █▀▀█ █▀▀▄
▀▀█ █▀▀ █▄▄▀ ░█▄█░ █▀▀ █▄▄▀ ▀▀█ █░░ █▄▄█ █░░█
▀▀▀ ▀▀▀ ▀░▀▀ ░░▀░░ ▀▀▀ ▀░▀▀ ▀▀▀ ▀▀▀ ▀░░▀ ▀░░▀""" + color.red + """\n
(🅢🅔🅡🅥🅔🅡 🅢🅒🅐🅝) """ + color.white + color.green + """
---[ This code write by (Mr.nope) ]------
-----[Mr.nope git hub page : https://github.com/mrprogrammer2938""" + """
version : 2.3.0""" + color.white)
print("\n[1].scan web")
print("[2].scan port")
print("[3].Ping Test")
print("[4].web loction")
print("[5].web info")
print("[6].Exit")
choose = input(serverscan)
if choose == '1':
choose1()
elif choose == '2':
choose2()
elif choose == '3':
choose3()
elif choose == '4':
choose4()
elif choose == '5':
choose4()
elif choose == '6':
time.sleep(1)
os.system("clear")
time.sleep(1)
print("Exiting...")
exit(1)
elif choose == '':
menu()
elif choose == ' ':
menu()
else:
time.sleep(1)
os.system("clear")
print(color.red + "Error serverscan!" + color.white)
time.sleep(2)
try16 = str(input("press Enter... "))
if(str(try16) == ''):
menu()
else:
menu()
def choose1():
time.sleep(1)
os.system("clear")
print(color.green)
os.system("figlet serverscan")
print(color.white)
webserver = str(input(ip))
os.system("nmap " + webserver)
time.sleep(2)
try3 = str(input("Do you want go to mein menu? [y/n] "))
if(str(try3) == 'y'):
os.system("python3 serverscan.py")
elif(str(try3) == 'n'):
time.sleep(1)
os.system("clear")
time.sleep(1)
print("good bye")
exit(1)
else:
time.sleep(1)
os.system("clear")
time.sleep(1)
print(color.red + "Error serverscan" + color.white)
time.sleep(2)
try4 = str(input("press Enter... "))
if(str(try4) == ''):
menu()
else:
menu()
def choose2():
time.sleep(1)
os.system("clear")
print(color.green)
os.system("figlet portscan")
print(color.white)
serverscan2 = str(input(ip))
time.sleep(1)
os.system("nmap -Pn " + serverscan2)
time.sleep(2)
try8 = str(input("Do you want go to mein menu? [y/n] "))
if(str(try8) == 'y'):
os.system("python3 serverscan.py")
elif(str(try8) == 'n'):
time.sleep(1)
os.system("clear")
time.sleep(1)
print("good bye")
exit(1)
else:
time.sleep(1)
os.system("clear")
time.sleep(1)
print(color.red + "Error serverscan" + color.white)
time.sleep(2)
try9 = str(input("press Enter... "))
if(str(try9) == ''):
menu()
else:
menu()
def choose3():
time.sleep(1)
os.system("clear")
print(color.green)
os.system("figlet pingtest")
print(color.white)
serverscan3 = str(input(ip))
time.sleep(2)
os.system("ping -w 1 " + serverscan3)
time.sleep(1)
try12 = str(input("Do you want go to mein menu? [y/n] "))
if(str(try12) == 'y'):
os.system("python3 serverscan.py")
elif(str(try12) == 'n'):
time.sleep(1)
os.system("clear")
time.sleep(1)
print("good bye")
exit(1)
else:
time.sleep(1)
os.system("clear")
time.sleep(1)
print(color.red + "Error serverscan" + color.white)
time.sleep(2)
try13 = str(input("press Enter... "))
if(str(try13) == ''):
menu()
else:
menu()
def choose4():
time.sleep(1)
os.system("clear")
print(color.green)
os.system("figlet web loction")
print(color.white)
ip2 = str(input("Enter ip: "))
time.sleep(2)
com = subprocess.getoutput("curl https://api.hackertarget.com/geoip/?q=" + ip2)
print(com)
time.sleep(1)
try17 = str(input("press Enter... "))
if(str(try17) == ''):
menu()
else:
menu()
def choose5():
time.sleep(1)
os.system("clear")
print(color.green)
os.system("figlet web info")
print(color.white)
ip3 = str(input("Enter ip: "))
time.sleep(1)
com2 = subprocess.getoutput("whois " + ip3).replace("% [whois.apnic.net]","starting...").replace("% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html","openning: " + ip3).replace("% This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT ","Hacking Complete!").replace("(WHOIS-UK4)","")
print(com2)
try18 = str(input("press Enter... "))
if(str(try18) == ''):
os.system("python3 serverscan.py")
else:
os.system("python3 serverscan.py")
time.sleep(1)
os.system("clear")
print("""
This code write by (Mr.nope)
usage:
1 - and scan ip
2 - and scan server port
3 - and start test ping (test conections)
4 - informtions package(Help)
5 - Exit package :(
""")
time.sleep(2)
try15 = str(input("press Enter... "))
if(str(try15) == ''):
menu()
else:
menu()
if __name__ == '__main__':
try:
menu()
except KeyboardInterrupt:
print("\nCrtl + C")
print("Exiting...")
sys.exit()