https://github.com/xorz57/bruteforcessh
SSH Bruteforcer written in C++20
https://github.com/xorz57/bruteforcessh
brute-force brute-force-attacks bruteforce bruteforce-attacks ssh ssh-brute-force ssh-bruteforce
Last synced: 11 months ago
JSON representation
SSH Bruteforcer written in C++20
- Host: GitHub
- URL: https://github.com/xorz57/bruteforcessh
- Owner: xorz57
- Created: 2024-06-16T19:30:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T21:49:36.000Z (almost 2 years ago)
- Last Synced: 2024-07-27T22:48:29.105Z (almost 2 years ago)
- Topics: brute-force, brute-force-attacks, bruteforce, bruteforce-attacks, ssh, ssh-brute-force, ssh-bruteforce
- Language: C++
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# BruteforceSSH
[](https://github.com/xorz57/BruteforceSSH/actions/workflows/Build.yml)
## Usage
```console
Usage: BruteforceSSH [options]
Options:
-f, --file File
-u, --user User (optional)
-h, --host Host (default: 127.0.0.1)
-p, --port Port (default: 22)
-t, --timeout Timeout (seconds, default: 30)
--help Print help
```
## Examples
```console
./BruteforceSSH --file accounts.txt --host localhost --port 2222
Failure: pi:root
Failure: pi:toor
Failure: pi:1234
Success: pi:raspberry
```
```console
./BruteforceSSH --file passwords.txt --host localhost --port 2222 --user pi
Failure: pi:root
Failure: pi:toor
Failure: pi:1234
Success: pi:raspberry
```
## Testing
Ensure you have Docker and Docker Compose installed on your machine.
1. Clone the repository:
```sh
git clone https://github.com/xorz57/BruteforceSSH.git
cd BruteforceSSH
```
2. Start the OpenSSH server using Docker Compose:
```sh
docker-compose up -d
```
3. The OpenSSH server will be available on port `2222` of your localhost.
### Credentials
- **Username**: `pi`
- **Password**: `raspberry`
## Dependencies
BruteforceSSH relies on the following libraries:
- [libssh](https://github.com/canonical/libssh)
## How to Build
#### Linux & macOS
```bash
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
```
#### Windows
```powershell
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
```
## Stargazers over time
[](https://starchart.cc/xorz57/BruteforceSSH)