MCPcopy
hub / github.com/trustedsec/social-engineer-toolkit / check_options

Function check_options

src/core/setcore.py:1412–1427  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

1410
1411# this routine will be used to check config options within the set.options
1412def check_options(option):
1413 # open the directory
1414 trigger = 0
1415 if os.path.isfile(userconfigpath + "set.options"):
1416 fileopen = open(userconfigpath + "set.options", "r").readlines()
1417 for line in fileopen:
1418 match = re.search(option, line)
1419 if match:
1420 line = line.rstrip()
1421 line = line.replace('"', "")
1422 line = line.split("=")
1423 return line[1]
1424 trigger = 1
1425
1426 if trigger == 0:
1427 return trigger
1428
1429# future home to update one localized set configuration file
1430

Callers 15

start_listenerFunction · 0.85
set_http_server.pyFile · 0.85
prep.pyFile · 0.85
java_applet_attackFunction · 0.85
set.pyFile · 0.85
payloadprep.pyFile · 0.85
arp.pyFile · 0.85
solo.pyFile · 0.85
create_payloads.pyFile · 0.85
spawn.pyFile · 0.85
web_server_startFunction · 0.85
scraper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected