Skip to content
Snippets Groups Projects
Commit 98aeca02 authored by Phil's avatar Phil
Browse files

Moved version definition to config.py. Changed version to 2.0.0.1 alpha.

parent 1913c7cf
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ class ConfClass: ...@@ -13,7 +13,7 @@ class ConfClass:
def __repr__(self): def __repr__(self):
return str(self) return str(self)
def __str__(self): def __str__(self):
s="Version = %s\n" % VERSION s=""
keys = self.__class__.__dict__.copy() keys = self.__class__.__dict__.copy()
keys.update(self.__dict__) keys.update(self.__dict__)
keys = keys.keys() keys = keys.keys()
...@@ -120,6 +120,7 @@ noenum : holds list of enum fields for which conversion to string should NOT ...@@ -120,6 +120,7 @@ noenum : holds list of enum fields for which conversion to string should NOT
AS_resolver: choose the AS resolver class to use AS_resolver: choose the AS resolver class to use
extensions_paths: path or list of paths where extensions are to be looked for extensions_paths: path or list of paths where extensions are to be looked for
""" """
version = "2.0.0.1 alpha"
session = "" session = ""
stealth = "not implemented" stealth = "not implemented"
iface = get_working_if() iface = get_working_if()
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
from __future__ import generators from __future__ import generators
import os,sys import os,sys
VERSION = "1.2.0.2"
DEFAULT_CONFIG_FILE = os.path.join(os.environ["HOME"], ".scapy_startup.py") DEFAULT_CONFIG_FILE = os.path.join(os.environ["HOME"], ".scapy_startup.py")
try: try:
...@@ -237,7 +235,7 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=1): ...@@ -237,7 +235,7 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=1):
atexit.register(scapy_write_history_file,readline) atexit.register(scapy_write_history_file,readline)
sys.ps1 = ColorPrompt() sys.ps1 = ColorPrompt()
code.interact(banner = the_banner % (VERSION), local=session) code.interact(banner = the_banner % (conf.version), local=session)
if conf.session: if conf.session:
save_session(conf.session, session) save_session(conf.session, session)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment