| 118 | |
| 119 | |
| 120 | int main(int argc, char** argv) |
| 121 | { |
| 122 | InitLogging(); |
| 123 | |
| 124 | try |
| 125 | { |
| 126 | const auto CmdArgs = ParseArgs(argc, argv); |
| 127 | |
| 128 | if (CmdArgs.bDebugPrivilege) |
| 129 | { |
| 130 | w_RtlAdjustPrivilege(SeDebugPrivilege, TRUE, FALSE); |
| 131 | BOOST_LOG_TRIVIAL(info) << "Retrieved SeDebugPrivilege successfully"; |
| 132 | } |
| 133 | |
| 134 | const auto Injector = PoolPartyFactory(CmdArgs.VariantId, CmdArgs.TargetPid); |
| 135 | Injector->Inject(); |
| 136 | } |
| 137 | catch (const std::exception& ex) |
| 138 | { |
| 139 | BOOST_LOG_TRIVIAL(error) << ex.what(); |
| 140 | return 0; |
| 141 | } |
| 142 | |
| 143 | return 1; |
| 144 | } |
nothing calls this directly
no test coverage detected