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

9 lines
253 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 = bytes.decode(r.stdout)
return msg