-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
96 lines (77 loc) · 2.45 KB
/
main.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
import os
import requests
from requests.exceptions import ConnectionError
logo = """
██████████████████████████████████████
█▄─▀█▄─▄█▀▀▀▀▀██▄─▄███▄─▄█─▄─▄─█▄─▄▄─█
██─█▄▀─██████████─██▀██─████─████─▄█▀█
▀▄▄▄▀▀▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▀▄▄▄▀▀▄▄▄▀▀▄▄▄▄▄▀
█ ▄▀█ █▀▄ █ By Manisso
▐▌ ▐▌
█▌▀▄ ▄▄ ▄▀▐█
▐██ ▀▀ ▀▀ ██▌
▄████▄ ▐▌ ▄████▄
"""
def main():
os.system('clear')
print(logo)
print('\n')
try:
response = requests.get("http://ipinfo.io/ip")
content = response.content.decode("utf-8")
except ConnectionError:
content = "127.0.0.1 "
try:
push = requests.get("https://raw.githubusercontent.com/Manisso/Nlite/main/push/v0.1.txt")
ntf = push.content.decode("utf-8")
except ConnectionError:
ntf = "v 0.1 - No Internet"
print(ntf)
print("+---------------------------+")
print("| Your IP : ",content,"|")
print("+---------------------------+")
print('\n')
menu()
def menu():
print("Select an option:\n")
print("+----------------+")
print("| [1]- PortScan |")
print("+----------------+")
print("| [2]- RangeScan |")
print("+----------------+")
print("| [3]- Install |")
print("+----------------+")
print("| [4]- Update |")
print("+----------------+")
print("| [0]- Exit |")
print("+----------------+")
print("\n")
choice = input(">>> ")
if choice == "1":
tool1()
elif choice == "2":
tool2()
elif choice == "3":
install()
elif choice == "4":
update()
elif choice == "0":
os.system('clear')
exit()
else:
print("\nInvalid choice. Please try again.\n")
menu()
def tool1():
print("Running PortScan ...")
os.system('python ip.py')
def tool2():
print("Running RangeScan ...")
os.system('python rang.py')
def install():
print("Running Installer ...")
os.system('bash install.sh')
def update():
print("Updating ...")
os.system('bash update.sh')
if __name__ == "__main__":
main()