We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76947b7 commit ac2314cCopy full SHA for ac2314c
dnspwn.py
@@ -48,8 +48,8 @@ def send_response(x):
48
49
def main():
50
logger.info('Starting to intercept [CTRL+C to stop]')
51
- data = sniff(prn=lambda x: send_response(x), lfilter=lambda x:x.haslayer(UDP) and x.dport == 53)
52
- return data
+ sniff(prn=lambda x: send_response(x), lfilter=lambda x:x.haslayer(UDP) and x.dport == 53)
53
54
-# Make it happen!
55
-data = main()
+if __name__ == "__main__":
+ # Make it happen!
+ main()
0 commit comments