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 zzcore import StdAns
from subprocess import Popen from subprocess import run
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]) msg = run(["nslookup",domain],capture_output=True)
msg = p.read()
return msg return msg