From ddf8525dc035b7fa762a9b78104c931952b40cb9 Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Mon, 7 Jul 2008 19:04:00 +0200
Subject: [PATCH] Had autorun import scapy.all by default

---
 scapy/autorun.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scapy/autorun.py b/scapy/autorun.py
index e5ca2f8a..34cb248a 100644
--- a/scapy/autorun.py
+++ b/scapy/autorun.py
@@ -31,7 +31,7 @@ def autorun_commands(cmds,my_globals=None,verb=0):
     try:
         try:
             if my_globals is None:
-                my_globals = globals()
+                my_globals = __import__("scapy.all").all.__dict__
             conf.verb = verb
             interp = ScapyAutorunInterpreter(my_globals)
             cmd = ""
-- 
GitLab