mirror of
https://github.com/maxDcb/C2Implant
synced 2026-06-08 15:48:22 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include "SocketHandler.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using namespace std;
|
||||
using namespace SocketHandler;
|
||||
|
||||
int main()
|
||||
{
|
||||
int remotePort=4444;
|
||||
string remoteHost="127.0.0.1";
|
||||
|
||||
Client* client=new Client(remoteHost, remotePort);
|
||||
|
||||
while(1)
|
||||
{
|
||||
string out="Hello";
|
||||
client->sendData(out);
|
||||
|
||||
string ret;
|
||||
client->receive(ret);
|
||||
|
||||
std::cout << "Client - " << ret << std::endl;
|
||||
|
||||
Sleep(1000);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user