XZZ/worker/ns.py

10 lines
223 B
Python
Raw Normal View History

2020-03-02 21:15:18 +08:00
from zzcore import StdAns
2020-03-02 21:40:12 +08:00
from subprocess import Popen
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:44:10 +08:00
p = Popen(["nslookup",domain])
2020-03-02 21:15:18 +08:00
msg = p.read()
2020-03-02 21:40:12 +08:00
return msg