XZZ/worker/ns.py

10 lines
239 B
Python
Raw Normal View History

2020-03-02 21:15:18 +08:00
from zzcore import StdAns
2020-03-02 21:51:47 +08:00
from subprocess import run
2020-03-02 21:15:18 +08:00
class Ans(StdAns):
def GETMSG(self):
2020-03-02 21:40:12 +08:00
domain = self.raw_msg['message'][4:]
2020-03-02 21:54:54 +08:00
r = run(["nslookup",domain],capture_output=True)
msg = r.stdout
2020-03-02 21:40:12 +08:00
return msg