-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
43 lines (35 loc) · 973 Bytes
/
Copy pathmain.py
File metadata and controls
43 lines (35 loc) · 973 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
41
"""from whatsmyip.ip import get_ip
from whatsmyip.providers import GoogleDnsProvider
myip=get_ip(GoogleDnsProvider)
print(myip)
"""
import fire
from getpass import getpass
class Auth (object):
def login(self, username = None):
if username == None:
username = input ("Username: ")
if username == None:
print ("A username is required")
return
pw = getpass("Password: ")
return username, pw
def login (username = None):
if username == None:
username = input ("Username: ")
if username == None:
print ("A username is required")
return
pw = getpass ("Password: ")
return username, pw
"""
while True:
print("entrer votre commande")
commande=input()
if commande = "stop"
break
elif commande="ip"
print(myip)
else
print("une erreur à été detecté")
"""