mirror of
https://github.com/maxDcb/C2Implant
synced 2026-06-08 15:48:22 +00:00
29 lines
450 B
C++
29 lines
450 B
C++
#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);
|
|
}
|
|
|
|
} |