ns up up up up

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

View file

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