MCPcopy Create free account
hub / github.com/secdev/scapy / main

Function main

scapy/tools/UTscapy.py:968–1245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

966
967
968def main():
969 argv = sys.argv[1:]
970 logger = logging.getLogger("scapy")
971 logger.addHandler(logging.StreamHandler())
972
973 # Treat SyntaxWarning as errors
974 warnings.filterwarnings("error", category=SyntaxWarning)
975
976 import scapy
977 print(dash + " UTScapy - Scapy %s - %s" % (
978 scapy.__version__, sys.version.split(" ")[0]
979 ))
980
981 # Parse arguments
982
983 FORMAT = Format.ANSI
984 OUTPUTFILE = sys.stdout
985 LOCAL = 0
986 NUM = None
987 NON_ROOT = False
988 KW_OK = []
989 KW_KO = []
990 DUMP = 0
991 DOCS = 0
992 CRC = True
993 BREAKFAILED = True
994 ONLYFAILED = False
995 VERB = 3
996 GLOB_PREEXEC = ""
997 PREEXEC_DICT = {}
998 MODULES = []
999 TESTFILES = []
1000 ANNOTATIONS_MODE = False
1001 INTERPRETER = False
1002 try:
1003 opts = getopt.getopt(argv, "o:t:T:c:f:hbln:m:k:K:DRdCiFqNP:s:x")
1004 for opt, optarg in opts[0]:
1005 if opt == "-h":
1006 usage()
1007 elif opt == "-b":
1008 BREAKFAILED = False
1009 elif opt == "-F":
1010 ONLYFAILED = True
1011 elif opt == "-q":
1012 VERB -= 1
1013 elif opt == "-D":
1014 DUMP = 2
1015 elif opt == "-R":
1016 DOCS = 1
1017 elif opt == "-d":
1018 DUMP = 1
1019 elif opt == "-C":
1020 CRC = False
1021 elif opt == "-i":
1022 INTERPRETER = True
1023 elif opt == "-x":
1024 ANNOTATIONS_MODE = True
1025 elif opt == "-P":

Callers 1

UTscapy.pyFile · 0.70

Calls 15

DefaultThemeClass · 0.90
BlackAndWhiteClass · 0.90
_scapy_builtinsFunction · 0.90
resolve_testfilesFunction · 0.85
parse_config_fileFunction · 0.85
import_moduleFunction · 0.85
import_UTscapy_toolsFunction · 0.85
execute_campaignFunction · 0.85
pack_html_campaignsFunction · 0.85
pack_latex_campaignsFunction · 0.85
from_stringMethod · 0.80
extendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…