ns up up up up

This commit is contained in:
Si-Huan 2020-03-02 21:54:54 +08:00 committed by GitHub
parent 1e73015e29
commit 80eb495694

View file

@ -4,5 +4,6 @@ from subprocess import run
class Ans(StdAns):
def GETMSG(self):
domain = self.raw_msg['message'][4:]
msg = run(["nslookup",domain],capture_output=True)
r = run(["nslookup",domain],capture_output=True)
msg = r.stdout
return msg