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

Function warn

core/alert.py:69–92  ·  view source on GitHub ↗

build the warn message Args: content: content of the message Returns: the message in warn structure - None

(content)

Source from the content-addressed store, hash-verified

67
68
69def warn(content):
70 """
71 build the warn message
72
73 Args:
74 content: content of the message
75
76 Returns:
77 the message in warn structure - None
78 """
79 logger.warning(content)
80 sys.stdout.buffer.write(
81 bytes(
82 color.color_cmd("blue")
83 + "[!] [{0}] ".format(now())
84 + color.color_cmd("yellow")
85 + content
86 + color.color_cmd("reset")
87 + "\n",
88 "utf8")
89 )
90 sys.stdout.flush()
91
92 return
93
94
95def verbose_info(content):

Callers 3

get_gateway_ip_addressesFunction · 0.90
load_all_modulesFunction · 0.90
test_warnMethod · 0.90

Calls 1

nowFunction · 0.90

Tested by 1

test_warnMethod · 0.72