-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathip.py
More file actions
40 lines (40 loc) · 899 Bytes
/
ip.py
File metadata and controls
40 lines (40 loc) · 899 Bytes
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
import os
x=1
clear='clear'#limpar terminal
menud='python3 main.py'
while (x==1):
print("")
print("Ip")
print("=========================")
print("")
print("1.Ipconfig")
print("2.Verificar Portas")
print("3.Ip Externo")
print('4.Testa Velocidade da internet')
print('5.Voltar para menu inicial')
print("")
print("=========================")
opcao=(input("Escolha Opção:"))
os.system(clear)
if opcao == '1':
ipconfig='ifconfig'
os.system(ipconfig)
if opcao == '2':
porta=(input("Ip ou Url para verificar portas:"))
nmap='nmap'
nporta='nmap '+'porta'
print(nporta)
os.system(nporta)
if opcao == '3':
ipex='links ipinfo.io/ip'
os.system(ipex)
if opcao == '4':
speed="./speedtest-cli"
os.system(speed)
if opcao == '5':
menud='python3 main.py'
os.system(menud)
x=2
else:
print(opcao)
os.system(opcao)