示例#1
0
 def uid2name(self, uid):
     """
     """
     try:
         return Passwd().getpwuid(uid)["pw_name"]
     except:
         return str(uid)
示例#2
0
 def uid2name(self, uid):
     """
     """
     try:
         return Passwd(self.protocol.cfg).getpwuid(uid)["pw_name"]
     except:
         return str(uid)
示例#3
0
文件: ls.py 项目: khanhgithead/cowrie
 def uid2name(self, uid):
     try:
         return Passwd().getpwuid(uid)["pw_name"]
     except Exception:
         return str(uid)