XZZ/worker/ns.py
2020-03-02 21:44:10 +08:00

9 lines
223 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