Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on compilation #49

Open
vulnz opened this issue Jun 29, 2020 · 8 comments
Open

Issue on compilation #49

vulnz opened this issue Jun 29, 2020 · 8 comments
Labels
wontfix This will not be worked on

Comments

@vulnz
Copy link

vulnz commented Jun 29, 2020

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>
^~~~~~~~~~~

@matricali
Copy link
Member

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.

@vulnz
Copy link
Author

vulnz commented Jun 29, 2020

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

@vulnz
Copy link
Author

vulnz commented Jun 29, 2020

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

@matricali
Copy link
Member

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

@vulnz
Copy link
Author

vulnz commented Jun 30, 2020

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

@matricali
Copy link
Member

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.

@matricali matricali added the wontfix This will not be worked on label Jun 30, 2020
@vulnz
Copy link
Author

vulnz commented Jun 30, 2020

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?

@matricali
Copy link
Member

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 :)

@fearmytalents fearmytalents mentioned this issue Oct 27, 2020
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants