Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class commands():
- def __init__(self):
- pass
- def start(self):
- os.system("hamachi start")
- def stop(self):
- os.system("hamachi stop")
- def setNick(self, nick):
- com = "hamachi set-nick %s" % nick
- os.system(com)
- def getNicks(self):
- nicks = os.system("hamachi get-nicks")
- return nicks
- def logIn(self):
- os.system("hamachi login")
- def logOut(self):
- os.system("hamachi logout")
- def list(self):
- results = os.system("hamachi list")
- return results
- def createNet(self, network, password):
- com = "hamachi create %s %s" % (network, password)
- os.system(com)
- def deleteNet(self, network):
- com = "hamachi delete %s" % network
- os.system(com)
- def kick(self, network, id):
- com = "hamachi evict %s %s" % (network, id)
- os.system(com)
- def joinNet(self, network, password):
- com = "hamachi join %s %s" % (network, password)
- os.system(com)
- def leaveNet(self, network):
- com = "hamachi leave %s" % network
- os.system(com)
- def goOnlineNet(self, network):
- com = "hamachi go-online %s" % network
- os.system(com)
- def goOfflineNet(self, network):
- com = "hamachi go-offline %s" % network
- os.system(com)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement