-
Notifications
You must be signed in to change notification settings - Fork 1
/
getip.py
50 lines (45 loc) · 1.38 KB
/
getip.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
def projects():
print("""
1:Web Page (Use API get IP adress)
""")
def main_get_ip():
print("[*]Enter 'exit' to exit")
print("[*]Enter 'show options' to show all project")
def main():
options = input("Setool-Master~/Main Console~/Web_IP//")
if options == "show options":
projects()
main()
return True
if options == "exit":
import setool
setool.main()
return True
if options == "1":
#get ip
import os
if os.name == "posix":
#linux
os.system("rm -f index.html")
os.system("cp web_ip/index.html ./")
print("[!]You can Search on Internet.")
os.system("python3 -m http.server 8080")
main()
return True
import os
if os.name == "nt":
#windows
import os
os.system("del /f index.html")
os.system("copy web_ip/index.html ./")
print("[!]You can Search on Internet.")
os.system("python -m http.server 8080")
main()
return True
else:
print("[!]Unknow Optioning System")
return False
else:
main()
return False
main()