ns up up up

This commit is contained in:
Si-Huan 2020-03-02 21:51:47 +08:00 committed by GitHub
parent 22af472eb0
commit 1e73015e29

View file

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