scapy.main
Main module for interactive startup.
- scapy.main.get_fancy_banner(mini: bool | None = None) str[source]
Generates the fancy Scapy banner
- Parameters:
mini – if set, force a mini banner or not. Otherwise detect
- scapy.main.interact(mydict: Any | None = None, argv: Any | None = None, mybanner: Any | None = None, mybanneronly: bool = False, loglevel: int = 20) None[source]
Starts Scapy’s console.
- scapy.main.list_contrib(name: str | None = None, ret: bool = False, _debug: bool = False) List[Dict[str, str]] | None[source]
Show the list of all existing contribs.
- Parameters:
name – filter to search the contribs
ret – whether the function should return a dict instead of printing it
- Returns:
None or a dictionary containing the results if ret=True
- scapy.main.load_contrib(name: str, globals_dict: Dict[str, Any] | None = None, symb_list: List[str] | None = None) None[source]
Loads a Scapy contrib module to make variables, objects and functions available globally.
If no contrib module can be found with the given name, try to find a layer module, since a contrib module may become a layer module.
- scapy.main.load_layer(name: str, globals_dict: Dict[str, Any] | None = None, symb_list: List[str] | None = None) None[source]
Loads a Scapy layer module to make variables, objects and functions available globally.