MCPcopy Create free account
hub / github.com/SafeBreach-Labs/PoolParty / main

Function main

PoolParty/main.cpp:120–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120int 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}

Callers

nothing calls this directly

Calls 5

InitLoggingFunction · 0.85
ParseArgsFunction · 0.85
w_RtlAdjustPrivilegeFunction · 0.85
PoolPartyFactoryFunction · 0.85
InjectMethod · 0.80

Tested by

no test coverage detected