Termux Commands List 2021 Ethical Hacking For Beginners

Termux is one of the best apk for the android user who are interested into ethical hacking field.

Definitely, you will not become a pro hacker by using this app, however, for beginners, it is a must-have app on their smartphone.

Linux is the best operating system for ethical hacking works on the command base. If you learn the basics command then it is easy for you to learn other hacking tools such as Metasploit.

Anyway, I hope you have successfully installed the termux and probably confused about how to use it.

Termux pretty much has Linux commands. Learning these commands will help you to get started with the Linux operating system.

Enough words, let’s start commands

pwd

pwd stands for print working directory. Directory means folder. It will display the in which directory currently you are. Obviously, you can change the directory. Sometimes we want to access specific files from a specific directory. That’s why we change the directory

cd /

cd stands for change directory. This command is use to change the working directory. You have to specify the full path of the directory.

/ stands for root directory where you can find all other directories. If you want to move up then you can type cd ..

you can also use cd $files to for switching to default home directory.

mkdir

mkdir stands for make directory. So if you want to create new folder inside the current working directory then type mkdir folder_name It will make a new folder.

nano filename

nano is editor that is used to change the content of the files. Suppose we have san.txt file. So for adding new content or any other operating we need to type nano san.txt

It will open the nano editor where we can change the file content. For saving press ctrl+o. for exist press the ctrl+x

ls

ls stand for list. Basically it will display all the files of working directory. You can also use ls -la. -la will display the whole important information.

history

It will display all the typed commands. If you want to see your old commands then you can see using this account.

rm

rm stands for remove. You can delete any file using this command. Just type rm filepath to remove it.

For example, let’s say you want to remove something.txt from your current directory. Then type rm .something.txt

If you want to remove directory then type rm -r directory_name.

man

man meaning manual. If you don’t know how to use specific command then type man command. For example, you want to know more about the rm command than type man rm.

It will display purpose of the command and all the possible options.

get clone github_url

This is very important. Basically it can clone any github project into your system. If you are wondering what is github. Basically this is website where you can get project of other programmers & hackers.

If termux shows something git command not found then make sure you install get by typing the following command.

pkg install git

Termux Package Commands

Following commands all about managing packages. Basically, the package is another program that is used for a specific task such as scanning the network, finding a vulnerability in websites, etc.

Termux doesn’t hack anything itself. It let you install these types of packages on an android phone.

Here are commands to work with packages

dpkg --list

It is highly recommend that you install existing package before installing new package. This command will update all the installed packages.

pkg upgrade

This command will display all installed packages on termux.

pkg install package_name

This command is used to install termux. package_name is variable in other words name of the package that you want to install. Here are the new packages that you can install

  1. nmap: Network scanning tool
  2. hydra: Brute force tool

Above two packages can be installed just by typing pkg install nmap. However there are a lot of useful packages that can’t be installed in this way.

You need programming language before installing them. Here are few of them. Just make sure you have working internet connection for installing new packages.

Installing Sqlmap

Sqlmap is pentesting tool for finding flaws in the website database. In case you are not familiar with the database basically, Login/sign-up information is saved in database.

If you can hack database then you can get all the database information. Generally sometimes developers make a mistake when link database through programming.

sqlmap is tool that can find sql injection automatically. Here is how to install sqlmap.

First update your system by running following commands.

apt update && apt upgrade -y

Here && is symbol that is used to run another after first command. -y is meaning yes if asks for any permission.

Anyway, after this

 pkg install git python python2 -y

It will install git (if you already installed then remove git keyword). Without python you will not able to run sqlmap. Python is the programming language

Finally type

git clone https://github.com/sqlmapproject/sqlmap

It will install sqlmap on your termux. Here is the tutorial of sqlmap

Install WpScan

wpscan is the package that is used for penetration testing of WordPress sites. In case you are not familiar with WordPress, it is a web-application that making websites easy for non-techies.

We are using WordPress for this blog. On the internet, 90% of blogs are made with WordPress that 27% of the total websites.

Don’t think that you will hack websites just by installing wpscan. By default wordpress is secure however sometimes website owner doesn’t update their system or old plugins cause security issue.

Here is how to install wpscan.

pkg install ruby

This will install ruby language. Just like C, java ruby is programming language. wpscan script is written is the ruby language so we need it.

Once ruby is installed then type the following command to install wpscan.

gem install wpscan

Here is the tutorial for wpscan

Metasploit Framework Tutorials

If you want to make a virus for a windows computer or android phone using termux then you can go it with the help of the Metasploit framework.

This framework contain everything that you need to hack someone’s phone.

However, don’t get over-excited because using Metasploit isn’t easy especially on the small screen.

Still you want to forward then here are the commands to install metasploit framework.

pkg install wget
wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
chmod +x metasploit.sh
./metasploit.sh

Here is the tutorial on how to make an android apk that can hack android devices. This tutorial will only work if you are on the same network. So make sure your device and another android in which you will install the apk file should be connected to the same wifi network.

Termux Tricks

  • Above the keyboard, you will see ⬆. It will bring your last command. It is really helpful when you made a mistake in your command. Instead of typing everything from scratch you can bring that command again make the changes and run again.
  • Not a lot of newbies don’t know how to exit termux when they first time install it. You can exit by pressing the home key however there will be a sticky notification. If you want to get rid of this notification then exit command. You need to press enter 2 times.

Final Words

I hope you got value from this article. Definitely termux isn’t something that you can install and start hacking other devices. it can help you if you really interested in hacking and you can invest your time.

This article is written for beginners to give them basic information. if you have any question/query or you think I miss something important then let me know by the comment section.

Leave a Comment

Pin It on Pinterest

Share This