UBoat-Botnet / UBoat

HTTP Botnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue on compilation

vulnz opened this issue · comments

commented

Good day. This project is interesting, however I can not compile it.
Additionally Uboat Panel on docker gives 403 error ( forbidden) on http://localhost redirecting to /error pages

g++ *.cpp
In file included from Command.cpp:3:
./StringOperations.h:4:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
In file included from DownloadExecute.cpp:2:
In file included from ./HttpQuery.h:4:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from Flood.cpp:2:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from GateHelper.cpp:2:
In file included from ./HttpQuery.h:4:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from HttpQuery.cpp:1:
In file included from ./HttpQuery.h:4:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
Keylogger.cpp:1:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
OSCpuChecker.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
OSGetRam.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
OSGpuChecker.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
OSHwidChecker.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
OSNetVersionChecker.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
OSVersionChecker.cpp:2:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
PEIsAdmin.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~
1 error generated.
Processes.cpp:2:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
In file included from Screenshot.cpp:2:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from SocketInit.cpp:1:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from Sockets.cpp:1:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from Startup.cpp:1:
./Startup.h:3:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
In file included from StringOperations.cpp:1:
./StringOperations.h:4:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
URLEncoding.cpp:2:11: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
WebSafeEncryption.cpp:3:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~
1 error generated.
In file included from WebsiteChecker.cpp:1:
In file included from ./HttpQuery.h:4:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
In file included from main.cpp:1:
In file included from ./HttpQuery.h:4:
./Sockets.h:5:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
xor.cpp:2:10: fatal error: 'Windows.h' file not found
#include <Windows.h>
^~~~~~~~~~~

Hi @vulnz !
Currently, the master branch can compile only using Visual Studio on Windows platforms (we're working on a version that supports cross-compilation: We will upload this the next month)

Regarding the control panel, You have to navigate to http://localhost/login in order to get access.

commented

Warning: PDO::prepare(): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'uboat.user' doesn't exist in /var/www/src/Model.php on line 42

Fatal error: Uncaught Error: Call to a member function execute() on boolean in /var/www/src/Model.php:46 Stack trace: #0 /var/www/src/models/user.php(11): Model->query('SELECT * FROM `...', Array) #1 /var/www/src/controllers/login.php(32): user->actionAuth(Array) #2 /var/www/src/goat.php(75): Login->index() #3 /var/www/html/index.php(22): goat->__construct(Array) #4 {main} thrown in /var/www/src/Model.php on line 46

it is if using password:
root / root

commented

additionally:
uboat / uboat
or uboat / root does not work as well
what is the password for docker-compose?

The default password is root/root, but you need to load the database schema first.
Look at the file located in:
https://github.com/UBoat-Botnet/UBoat-Panel/blob/master/uboat.sql

Additionally, you need https://github.com/UBoat-Botnet/UBoat-Panel/blob/master/geolocation.sql.gz in order to detect the country of IPs

commented

Phpmyadmin is there? Or I need to do it through terminal of sql? Because he default in rocker it does not work

Phpmyadmin is there? Or I need to do it through terminal of sql? Because he default in rocker it does not work

You can use mysql CLI command tool inside the mysql container, or use PhpMyAdmin or Adminer in order to import the SQL files.

commented

So I guess it will be much easier to automate this process by writing .sh script to be copied in docker and imports the sql, what do you think?

So I guess it will be much easier to automate this process by writing .sh script to be copied in docker and imports the sql, what do you think?

Yes, you're right :)