This commit is contained in:
Si-Huan 2020-03-02 21:44:10 +08:00 committed by GitHub
parent 8a5d7d5f53
commit c7bb7228da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,6 @@ from subprocess import Popen
class Ans(StdAns): class Ans(StdAns):
def GETMSG(self): def GETMSG(self):
domain = self.raw_msg['message'][4:] domain = self.raw_msg['message'][4:]
p = Popen(["nslookup ",domain]) p = Popen(["nslookup",domain])
msg = p.read() msg = p.read()
return msg return msg