ns up up up up

This commit is contained in:
Si-Huan 2020-03-02 21:54:54 +08:00 committed by GitHub
parent 18f415a22c
commit 68648dff10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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