Update ns.py

This commit is contained in:
Si-Huan 2020-03-02 21:40:12 +08:00 committed by GitHub
parent 1dbe6e55b3
commit 52f47f3784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
from zzcore import StdAns
import os
from subprocess import Popen
class Ans(StdAns):
def GETMSG(self):
domain = 'www.qq.com'
p = os.popen("nslookup " + domain)
domain = self.raw_msg['message'][4:]
p = Popen(["nslookup ",domain])
msg = p.read()
return msg
return msg