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:]
|
|
|
|
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
|