MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / update_individual_module_options

Function update_individual_module_options

bbot/scripts/docs.py:140–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 find_replace_file(file, keyword, s)
139
140 def update_individual_module_options():
141 regex = re.compile("BBOT MODULE OPTIONS ([A-Z_]+)")
142 for file in md_files:
143 with open(file) as f:
144 content = f.read()
145 for match in regex.finditer(content):
146 module_name = match.groups()[0].lower()
147 bbot_module_options_table = DEFAULT_PRESET.module_loader.modules_options_table(modules=[module_name])
148 find_replace_file(file, f"BBOT MODULE OPTIONS {module_name.upper()}", bbot_module_options_table)
149
150 # Example commands
151 bbot_example_commands = []

Callers 1

update_docsFunction · 0.85

Calls 5

openFunction · 0.85
find_replace_fileFunction · 0.85
finditerMethod · 0.80
modules_options_tableMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…