MCPcopy Index your code
hub / github.com/secdev/scapy / Conf

Class Conf

scapy/config.py:936–1210  ·  view source on GitHub ↗

This object contains the configuration of Scapy.

Source from the content-addressed store, hash-verified

934
935
936class Conf(ConfClass):
937 """
938 This object contains the configuration of Scapy.
939 """
940 version: str = ReadOnlyAttribute("version", VERSION)
941 session: str = "" #: filename where the session will be saved
942 interactive = False
943 #: can be "ipython", "bpython", "ptpython", "ptipython", "python" or "auto".
944 #: Default: Auto
945 interactive_shell = "auto"
946 #: Configuration for "ipython" to use jedi (disabled by default)
947 ipython_use_jedi = False
948 #: if 1, prevents any unwanted packet to go out (ARP, DNS, ...)
949 stealth = "not implemented"
950 #: selects the default output interface for srp() and sendp().
951 iface = Interceptor("iface", None, _iface_changer) # type: 'scapy.interfaces.NetworkInterface' # noqa: E501
952 layers: LayersList = LayersList()
953 commands = CommandsList() # type: CommandsList
954 #: Codec used by default for ASN1 objects
955 ASN1_default_codec = None # type: 'scapy.asn1.asn1.ASN1Codec'
956 #: Default size for ASN1 objects
957 ASN1_default_long_size = 0
958 #: choose the AS resolver class to use
959 AS_resolver = None # type: scapy.as_resolvers.AS_resolver
960 dot15d4_protocol = None # Used in dot15d4.py
961 logLevel: int = Interceptor("logLevel", log_scapy.level, _loglevel_changer)
962 #: if 0, doesn't check that IPID matches between IP sent and
963 #: ICMP IP citation received
964 #: if 1, checks that they either are equal or byte swapped
965 #: equals (bug in some IP stacks)
966 #: if 2, strictly checks that they are equals
967 checkIPID = False
968 #: if 1, checks IP src in IP and ICMP IP citation match
969 #: (bug in some NAT stacks)
970 checkIPsrc = True
971 checkIPaddr = True
972 #: if True, checks that IP-in-IP layers match. If False, do
973 #: not check IP layers that encapsulates another IP layer
974 checkIPinIP = True
975 #: if 1, also check that TCP seq and ack match the
976 #: ones in ICMP citation
977 check_TCPerror_seqack = False
978 verb = 2 #: level of verbosity, from 0 (almost mute) to 3 (verbose)
979 prompt: str = Interceptor("prompt", ">>> ", _prompt_changer)
980 #: default mode for the promiscuous mode of a socket (to get answers if you
981 #: spoof on a lan)
982 sniff_promisc = True # type: bool
983 raw_layer = None # type: Type[Packet]
984 raw_summary = False # type: Union[bool, Callable[[bytes], Any]]
985 padding_layer = None # type: Type[Packet]
986 default_l2 = None # type: Type[Packet]
987 l2types: Num2Layer = Num2Layer()
988 l3types: Num2Layer = Num2Layer()
989 L3socket = None # type: Type[scapy.supersocket.SuperSocket]
990 L3socket6 = None # type: Type[scapy.supersocket.SuperSocket]
991 L2socket = None # type: Type[scapy.supersocket.SuperSocket]
992 L2listen = None # type: Type[scapy.supersocket.SuperSocket]
993 BTsocket = None # type: Type[scapy.supersocket.SuperSocket]

Callers 1

config.pyFile · 0.85

Calls 14

NoThemeClass · 0.90
InterceptorClass · 0.85
LayersListClass · 0.85
CommandsListClass · 0.85
Num2LayerClass · 0.85
ProgPathClass · 0.85
ResolveClass · 0.85
EmphasizeClass · 0.85
isPyPyFunction · 0.85
NetCacheClass · 0.85
ExtsManagerClass · 0.85
isCryptographyValidFunction · 0.85

Tested by

no test coverage detected