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