ns up up up
This commit is contained in:
parent
22af472eb0
commit
1e73015e29
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue