(settings)
| 142 | |
| 143 | |
| 144 | def 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 |
no test coverage detected