9 lines
253 B
Python
9 lines
253 B
Python
from zzcore import StdAns
|
|
from subprocess import run
|
|
|
|
class Ans(StdAns):
|
|
def GETMSG(self):
|
|
domain = self.raw_msg['message'][4:]
|
|
r = run(["nslookup",domain],capture_output=True)
|
|
msg = bytes.decode(r.stdout)
|
|
return msg
|