10 lines
211 B
Python
10 lines
211 B
Python
|
def getuser(host):
|
||
|
import netrc
|
||
|
mynet = netrc.netrc()
|
||
|
return mynet.authenticators(host)[0]
|
||
|
|
||
|
def getpassword(host):
|
||
|
import netrc
|
||
|
mynet = netrc.netrc()
|
||
|
return mynet.authenticators(host)[2]
|