コード例 #1
0
 def enum(self, command):
     if len(command) == 2:
         if command[1] in ("group", "groups"):
             enumerate.group()
         elif command[1] == "history":
             enumerate.history()
         elif command[1] == "keys":
             enumerate.keys()
         elif command[1] in ("network", "ip"):
             enumerate.ip()
         elif command[1] == "os":
             enumerate.os()
         elif command[1] in ("passwd", "users"):
             enumerate.passwd()
         elif command[1] == "system":
             enumerate.system()
         elif command[1] == "writable":
             enumerate.writable()
         else:
             enumerate.list()
     else:
         enumerate.list()
コード例 #2
0
ファイル: executer.py プロジェクト: mohammadsamir/webhandler
 def enum(self, command):
     if len(command) == 2:
         if command[1] in ("group", "groups"):
             enumerate.group()
         elif command[1] == "history":
             enumerate.history()
         elif command[1] == "keys":
             enumerate.keys()
         elif command[1] in ("network", "ip"):
             enumerate.ip()
         elif command[1] == "os":
             enumerate.os()
         elif command[1] in ("passwd", "users"):
             enumerate.passwd()
         elif command[1] == "system":
             enumerate.system()
         elif command[1] == "writable":
             enumerate.writable()
         else:
             enumerate.list()
     else:
         enumerate.list()