Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaionaro-go/backdoor
A trivial SSH server (a static binary to run on any Linux, including Android)
https://github.com/xaionaro-go/backdoor
android linux server simple smartphone ssh-server static trivial
Last synced: 8 days ago
JSON representation
A trivial SSH server (a static binary to run on any Linux, including Android)
- Host: GitHub
- URL: https://github.com/xaionaro-go/backdoor
- Owner: xaionaro-go
- License: cc0-1.0
- Created: 2024-05-04T15:16:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T16:15:51.000Z (7 months ago)
- Last Synced: 2024-05-05T16:29:08.023Z (7 months ago)
- Topics: android, linux, server, simple, smartphone, ssh-server, static, trivial
- Language: Go
- Homepage:
- Size: 2.78 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This is just a simple SSH server (mostly for testing/diagnostic purposes). For example, if you have a rooted Android and you want to quickly get SSH access to it, this backdoor is an easy solution.
# Quick start
### Build for ARM64
```sh
git clone https://github.com/xaionaro-go/backdoor
cd backdoor
CGO_ENABLED=0 GOARCH=arm64 go build
```### Upload to a smartphone
```sh
adb push backdoor /sdcard/Download/
adb shell 'su -c "mkdir -p /data/backdoor; mv /sdcard/Download/backdoor /data/backdoor/; chmod +x /data/backdoor/backdoor"'
```### Launch the backdoor
```sh
adb push ~/.ssh/id_ed25519.pub /sdcard/Download/authorized_keys
adb shell 'su -c "/data/backdoor/backdoor /bin/sh 0.0.0.0:8022 /sdcard/Download/authorized_keys"' &
```### Get the IP address
```sh
PHONE_ADDR="$(adb shell ip a show dev wlan0 | grep 'inet ' | tr "/" " " | awk '{print $2}')"
```### Login
```sh
ssh -p 8022 "$PHONE_ADDR"
```