From 52f47f378413fb468281be87721688276d7ab450 Mon Sep 17 00:00:00 2001 From: Si-Huan <49349784+Si-Huan@users.noreply.github.com> Date: Mon, 2 Mar 2020 21:40:12 +0800 Subject: [PATCH] Update ns.py --- worker/ns.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worker/ns.py b/worker/ns.py index ecbf91d..b73cb3d 100644 --- a/worker/ns.py +++ b/worker/ns.py @@ -1,9 +1,9 @@ from zzcore import StdAns -import os +from subprocess import Popen class Ans(StdAns): def GETMSG(self): - domain = 'www.qq.com' - p = os.popen("nslookup " + domain) + domain = self.raw_msg['message'][4:] + p = Popen(["nslookup ",domain]) msg = p.read() - return msg \ No newline at end of file + return msg