MCPcopy Create free account
hub / github.com/dobin/SuperMega / sanity_checks

Function sanity_checks

supermega.py:144–150  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

142
143
144def sanity_checks(settings):
145 if 'dll_loader' in settings.carrier_name:
146 if not settings.get_payload_path().endswith(".dll"):
147 raise Exception("dll loader requires a dll as payload, not shellcode")
148 else:
149 if not settings.get_payload_path().endswith(".bin"):
150 raise Exception("loader requires shellcode as payload, not DLL")
151
152
153

Callers 1

start_realFunction · 0.85

Calls 1

get_payload_pathMethod · 0.80

Tested by

no test coverage detected