MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / info

Function info

core/alert.py:26–49  ·  view source on GitHub ↗

build the info message, log the message in database if requested, rewrite the thread temporary file Args: content: content of the message Returns: None

(content)

Source from the content-addressed store, hash-verified

24
25
26def info(content):
27 """
28 build the info message, log the message in
29 database if requested, rewrite the thread temporary file
30
31 Args:
32 content: content of the message
33
34 Returns:
35 None
36 """
37 sys.stdout.buffer.write(
38 bytes(
39 color.color_cmd("yellow")
40 + "[+] [{0}] ".format(now())
41 + color.color_cmd("green")
42 + content
43 + color.color_cmd("reset")
44 + "\n",
45 "utf8"
46 )
47 )
48 sys.stdout.flush()
49 return
50
51
52def write(content):

Callers 12

network_traffic_captureFunction · 0.90
terminate_threadFunction · 0.90
create_ohp_networksFunction · 0.90
stop_containersFunction · 0.90
remove_old_containersFunction · 0.90
remove_old_imagesFunction · 0.90
create_new_imagesFunction · 0.90
start_containersFunction · 0.90
wait_until_interruptFunction · 0.90
reserve_tcp_portFunction · 0.90
load_honeypot_engineFunction · 0.90
test_infoMethod · 0.90

Calls 1

nowFunction · 0.90

Tested by 1

test_infoMethod · 0.72