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

9 lines
239 B
Python

from zzcore import StdAns
from subprocess import run
class Ans(StdAns):
def GETMSG(self):
domain = self.raw_msg['message'][4:]
r = run(["nslookup",domain],capture_output=True)
msg = r.stdout
return msg