As ethical hackers, we mostly prefer PocketCHIP or a Raspberry Pi that too with a screen rather than a mobile device or tablet when it comes to ultra-mobile computing. All the solutions provided an environment that is purely Linux which is as open source as the hardware allows and make no assumptions on how we expect to work. This article holds the important Termux commands list that you can also save as a PDF if you wish to.
Most of the times all we have with us is our mobile phone. While there are some great android applications out there in the market, many feel such as overkill for very simple tasks, especially having in mind how much can be done in a simple terminal on a Linux desktop. We feel like this and this is the reasons why the Termux project came into being.
- 1 About Termux and command-line interface
- 2 Why Termux is ideal for hacking
- 3 Termux Commands List For 2021 (WiFi Password Hacking, Facebook Cloning)
- 3.1 Clear Screen (Clears all the clutter)
- 3.2 Show your current directory
- 3.3 Changing Directory
- 3.4 Move back directory
- 3.5 Create a new file of any type
- 3.6 Creating new directory
- 3.7 Deleting a directory or any file
- 3.8 Delete a single file
- 3.9 Renaming any file and moving it
- 3.10 File and directory copy
- 3.11 Nano and Vim in Termux
- 3.12 Read the content of any file
- 3.13 All running background processes using top or htop
- 3.14 Changing file/directory or group permissions
- 3.15 Clone source code from Github – FB Clone Hack
- 3.16 Download anything using wget or curl
- 3.17 History all previous run command
- 3.18 See what Installed Packages you have
- 3.19 The following is used to display a list of installed packages
- 3.20 Install new WiFi password hack
- 3.21 Remove installed hacks
- 3.22 Update package mirrors
- 4 Conclusion: Which Termux hack commands are you using?
About Termux and command-line interface
Termux is a terminal emulator and Linux environment application for android. With this, you do not need to root your device.
It automatically installs a minimal base system plus more packages are there using package manager just like you do with Debian, Fedora and many others.
Once it has been installed on your phone, you have a minimal Linux system running as an app on your android device. You can use most of the usual terminal apps which you are familiar with or you can become familiar as now you have them installed on your phone device. Above all, it provides software Ctrl, Alt, Esc and arrow keys, so important keystroke shortcuts are quite easy to type even on the virtual keyboard. Prefer using a Bluetooth keyboard with yourself to use it as easy as a terminal on a desktop or laptop.
It runs Bash by default:
$ echo $0 /data/data/com.termux/files/usr/bin/bash
Most commands shall work as expected whether they are built-in bash commands or usual Linux commands and utils. Others include Zsh and tcsh.
For this, you can either use Google Playstore or open-source application repository F-Droid.
Moreover, you can also download the source compile it all by yourself.
Why Termux is ideal for hacking
If you are used to this even HomeBrew on Mac or Chocolatey on Windows then you know how to install more commands for this. Apt from Debian Linux is its backend package but it uses pkg command as a simplified frontend interface. The result approximates the consistent simplicity of the DNF experience of Fedora plus we would love to see pkg as an abstraction layer on some more platforms (imagine using the same package management on commands such as RHEL, Slackware and Debian).
We installed a simple text editor as our first package:
$ pkg search jed [...] jed/stable 5.7-5 aarch66 Lightweight text editor $ pkg install jed
Jed running was as same as running it on RHEL desktop. Both of these run in the terminal and also use the same keyboard shortcuts.
A text editor is one thing, but it reveals its true potential the very first time we SSH into a system. Through this we can log into a simple system on any network we have access to, if you carry with yourself a portable console then you can use it either as a host or as a terminal for any amount of computing power that is available.
Now all this does not end with SSH to be clear, there exists a Termux package for KubectI, therefore, by using the “use-context” option in this then you can maintain the Kubernetes cluster from anywhere.
A very helpful community
The best thing about this which we personally like is that removes a significant barrier that contributes to a mobile project, the current platforms of open source mobile are Android or Android-based which require a special toolchain and good knowledge of Java.
By nature, it shields a potential new contributor from much of that as you could write packages or this without even knowing anything regarding android. You can also create a package definition for this as long you know how to write a script shell as you are writing one for Termux subsystems.
Put Terminal in pocket
This is a good way to learn about the Linux terminal and yes it is quite easy to install as well. Just put it on your phone or tablet and then check out some terminal basics as well as a bash cheat sheet and then transform the way you love using your mobile phone.
Termux Commands List For 2021 (WiFi Password Hacking, Facebook Cloning)
Clear Screen (Clears all the clutter)
For this, you need to run the clear command:
Show your current directory
This one tells regarding the directory which is working for the moment:
The cd command is used for this, just type in cd and name of the directory, we are moving in /hacks directory
Move back directory
You can back one directory if you want by using cd, if you want to back 2 you can use cd../../ command:
cd .. cd ../../
Create a new file of any type
Use touch command to create a file:
Creating new directory
MKdir stands for creating a new one, for this:
Deleting a directory or any file
Type in Rmdir <delete directory-name> and hit enter. To delete a directory and its contents recursively rm –rf:
rmdir rm –rf
Delete a single file
For this use the following command and press enter
RELATED READ: Basic and Starter Bash Commands for Ubuntu.
Renaming any file and moving it
Mv is a Linux command-line utility used for this purpose. For this use:
mv mv –r
File and directory copy
For this use cp –r copy directories and their contents:
cp cp –r
Nano and Vim in Termux
The most useful editor out of all the command line editors it has is vi and nano. If already you have a file then run the vi <filename>, enter edit mode by pressing “i” after editing the file hit the escape button and type in “:wq” write and quiet.
For nano type in nano <filename>, edit and save it by using “Ctrl+x”, type y for y, press enter.
Read the content of any file
For this, you need to use the following command:
All running background processes using top or htop
Use the top command for this
Changing file/directory or group permissions
This can be done easily. To execute permission to run the command “Chmod +x <file-name>” if you wish to change the owner, run “(chown yournewuser:yournewgroup <filename>:
chmod (permission-mode) chown (newuser:newgroup)
Clone source code from Github – FB Clone Hack
For this use command
Download anything using wget or curl
To get file via terminal then there are many tools but mostly we use these tools
wget curl -o
ALSO READ: Powerful Metasploit Commands to Hack.
History all previous run command
To check all the bash or history run:
See what Installed Packages you have
The following is used to display a list of installed packages
Install new WiFi password hack
Now if you want to install python3 then run <pkg install python3>, you shall see a promote type y for yes and it shall be installed. You can also use to install tools such as Kali NetHunter, Wifite and RouterSploit.
Remove installed hacks
For this use following command
apt update && apt upgrade –y
Update package mirrors
If you add the new repository in source.list file, before installing a new package just run the following:
This is an Android terminal emulator and Linux environment android application that works both with and without root. The terminal base is automatically installed plus more packages are available by using the APT package manager.
ALSO READ: Top Kali Linux Hacker Commands PDF List.
Conclusion: Which Termux hack commands are you using?
These were all the best Termux commands list in PDF that you can download for hacking. The most popular ones are linked to password cracking and WiFi hacking which is great if you are using this emulator. It is a full-blown Linux in the palm of your hand. Do let me know which one of these terminal commands have you ever used or if you have any better alternatives! Cheers.