def run():
try:
querly = socket.gethostbyaddr(variables['target'][0])
printSuccess("resolved hostname: "+ querly[0])
return querly[0]
except(socket.herror):
printError("unknown host")
return ModuleError("unknown host")
except(socket.gaierror):
printError("name or service not known")
return ModuleError("name or service not known")
评论列表
文章目录