MCPcopy Index your code
hub / github.com/OWASP/Python-Honeypot / network_configuration

Function network_configuration

config.py:56–78  ·  view source on GitHub ↗

network configuration Returns: JSON/Dict network configuration

()

Source from the content-addressed store, hash-verified

54
55
56def network_configuration():
57 """
58 network configuration
59
60 Returns:
61 JSON/Dict network configuration
62 """
63 return {
64 "store_network_captured_files": False,
65 "real_machine_ip_address": real_machine_ip_address,
66 "ignore_real_machine_ip_address": True, # or if you want to simulate from local network, save as False
67 "ignore_virtual_machine_ip_addresses": True, # or if you want simulate from local network, save as False
68 "real_machine_identifier_name": "stockholm_server_1", # can be anything e.g. real_machine_ip_address, name, etc
69 "ignore_real_machine_ip_addresses": list(
70 {
71 real_machine_ip_address,
72 "127.0.0.1"
73 }
74 ),
75 # e.g. ["10.0.0.1", "192.168.1.1"]
76 "ignore_real_machine_ports": [], # e.g. [22, 80, 5000]
77 "split_pcap_file_timeout": 3600 # Default value
78 }
79
80
81def docker_configuration():

Callers 4

connector.pyFile · 0.90
process_packetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected