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)
|
2020-03-02 21:58:51 +08:00
|
|
|
msg = bytes.decode(r.stdout)
|
2020-03-02 21:40:12 +08:00
|
|
|
return msg
|