1
TERMUX CHEAT SHEET by HackeRoyale
TERMUX CHEAT SHEET
If you’re new at Termux, to get familiar with Termux, read our TERMUX GUIDE
here.
Update packages and package index
Type: pkg up or apt update && apt upgrade
Enable tab completion
Type: pkg i bash-completion and restart
Enable spell correction for bash
It works for cd command, Add this line to .bashrc
shopt -s cdspell
Disable start up banner
touch ~/.hushlogin
Add welcome banner
Installation: pkg i figlet pv
Add following line to .bashrc
figlet "Welcome Anuj" | pv -qL 500
Install Aria
Follow me: Instagram Facebook Snapchat
2
TERMUX CHEAT SHEET by HackeRoyale
aria2 is a command based download manager, it is faster than curl, wget. It has
resume support, it can download torrent files and etc.
Installation: pkg i aria2
Downloading: aria2 <url>
Install Megatools
megatools allows us to download files form mega.nz, I like command version
because it fast and very small in size but it doesn’t have resume support.
Installation: pkg i megatools
Download: megadl <url>
Install Oh My ZSH
Install curl, zsh and git: pkg i curl git zsh
Now Follow official guide NOTE: We can’t set zsh as default, you can add a
line in .bashrc to automatically start zsh but it is not a good idea for small
devices
Install WFuzz
Install dependencies: pkg i python python-dev openssl openssl-
dev curl clang libcrypt libcrypt-dev libcurl libcurl-dev
Select SSL Library: export PYCURL_SSL_LIBRARY=openssl
Installation: pip install wfuzz
Install TOR & TORSOCKS
Installation: pkg i torsocks
Type vim $PREFIX/etc/tor/torrc to open tor config file.
Follow me: Instagram Facebook Snapchat
3
TERMUX CHEAT SHEET by HackeRoyale
Add a new line Socks5Proxy 127.0.0.1:9050
Start Tor: tor
Stop Tor: Just CTRL + C, if you’ve used tor& then pkill tor
Torify shell: source torsocks on and everything will route through tor.
Stop torifing shell: source torsocks off and everything will fallback to
normal behavior.
Using NMap: Always use TCP scan nmap -sT blah blah blah and don’t run
nmap as root.
Check all open ports on your phone (Root required)
Install tsu: pkg i tsu
Type tsu
Type netstat -puntl and it will list all open ports and programs using
them.
If you see something unfamiliar then you may be a victim of open port
vulnerability.
SSH
Installation: pkg i openssh
SSH client is ready, you can keep keys in $HOME/.ssh
Server only supports SSH Key so go to $HOME/.ssh
Generate a new SSH Key pair: ssh-keygen
Add content of public key to ~/.ssh/authorized_keys
Type sshd to start SSH server on port 8022
Connect from another system.
Follow me: Instagram Facebook Snapchat
4
TERMUX CHEAT SHEET by HackeRoyale
PHP
PHP has MySQL support by default and postgres support can be added using
packages, postgres and mysql database are available.
Installation: pkg i php
Install common programs
7z: pkg i p7zip
FFMpeg: pkg i ffmpeg
Git: pkg i git
Hydra: pkg i hydra
Nano: pkg i nano
Nmap: pkg i nmap
Node: pkg i nodejs
SQLMap: pkg i python2 && pip2 install -U sqlmap
Vim: pkg i vim
Youtube-DL: pkg i ffmpeg python && pip install -U
youtube_dl
Read all our 200+ Hacking Tutorials here.
Read all our TOP Featured Tutorials here.
Best regards,
Anuj Mishra
(Founder & Editor - HackeRoyale)
Follow me: Instagram Facebook Snapchat