XZZ/worker/ns.py

9 lines
218 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:51:47 +08:00
msg = run(["nslookup",domain],capture_output=True)
2020-03-02 21:40:12 +08:00
return msg