XZZ/worker/ns.py
2020-03-02 21:40:12 +08:00

9 lines
224 B
Python

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