Termux Hacking Tutorials By
R-Coding
1
Termux Hacking Tutorials By
R-Coding
Hacking Is Not At All Crime, It's An Art..
When People Hears The Word Hacking , They imagines a Lot and thinks that Hacking is a
few clicks Magic with Computers..
Here What People imagines When They Hears The Word Hacking
Termux Hacking Tutorials By
R-Coding
But when it comes Real life, Hacking Is Totally Different than you see in the movies.
3
And The Hackers also different than those you see in the movies.
In Real life People Divides Hackers into two types,
you might thought about White Hat Hackers and Black Hat Hackers
If so then you're wrong.
In Real life People divides Hackers into two types
Termux Hacking Tutorials By
R-Coding
1. Real Hackers
2. Fake Hackers
In Front of People's Imagination Real Hackers are those Who Hacks Ultimately into Bank
Accounts, Websites, shuts down any services, and does some amazing things with
computers and they thinks that All Those Real Hackers are Ethical Hackers and they are
Anonymous
In Front of People’s imagination Second one is those Fake Hackers, They think these
Hackers are Noobs, and they knows nothing about hacking and they even can't hack but
claims they are Hackers..
Important Note: Still if you don't know Who are Hackers and the Types Of Hackers,
still don't know the sense Behind Hacking.
Than Seriously Don't Read This Book, As This Book is Not For You, Go Back and Gain
some Basic Knowledge About Hacking
We are The Hackers, We Do What we Do
Although This Book is For Beginner Level Hackers, if you're an Intermediate Level or Expert Level
Hacker still this Book will be helpful to you.
NowaDays people are more interested in Hacking & Cyber Security, and i know you’re too
one of them.
4
But Technology Has Been Changed and Everything Gets Smarter,
Termux Hacking Tutorials By
R-Coding
In the Past We Have Used Kali Linux, Backtrack and other OS for any kind of security
auditing & vulnerability scanning, Now We Can Do the Same Stuff Using Our Smartphone
through Termux
Today We are Going To Discover a Linux Environment inside the Android Smartphone and
Start Hacking from your fingertips.
Before We START..
Let Me Tell You about the author, with whom you're now going to spend a little bit of time.
Hello There,
I Am Basudev, a 19 years old boy From Andhra Pradesh, India.
Am a Noobish Hacker and a Blogger,
Me too a Tech enthusiast like you, Moreover i hate to boast myself..
I Have Created This Ebook To Share My Knowledge With The People Like You,
In This Ebook I have tried My Best To Teach you How You Can Hack Through Termux
Android App in a simple and Noob Friendly Way,
But It's your own responsibility How Well You Use This Guide..
Table Of Content :
1. Introduction To Termux Android App 2.
FAQ..
3. Basic Termux Commands
Termux Hacking Tutorials By
R-Coding
4. Basics Of Termux Packages
5. Programming Languages In Termux
6. Hacking Tools In Termux
Termux Hacking Tutorials By
R-Coding
Introduction To Termux
Termux is a Terminal Emulator Plus Linux Environment, That allows us to use the Linux
Environment on our Android within few clicks..
Termux Hacking Tutorials By
R-Coding
Few Years Back, I Have Tried a lot of apps to setup a Linux Environment on a Smartphone
For Hacking, I Have Tried Debian NoRoot that's Cool but not stable at all, later tried
installing the Kali Linux on Android, That was awesome..
7
But that consumes some storage space, that's not good for all of us, later
Found This Awesome Termux App
Which is Now We Are Going To Start Hacking with,
Firstly Install Termux From Playstore & I Highly Recommend You to use Hackers Keyboard.
Termux Hacking Tutorials By
R-Coding
FAQ…
● Does Termux Useful For Hacking?
My Answer Is Yes.. You can use Termux for Hacking, you can use some popular
Hacking Tools in Termux
● Does Termux Requires Root Permissions?
Not at All, Root is Not Necessary To Use Termux, if You Have Root then you can do
some advanced stuff, if you don't have root then nothing to worry still you can do the same
stuff.
● Can i Became a Hacker by Using Termux App?
Apps / Tools doesn't Made Hackers, Hackers Made Tools.
Perhaps you won't Be a Hacker unless you have the knowledge
● Is Termux Useful for Programmers?
Of Course It will be Helpful but limited
● Can i use Termux To Hack Websites?
My Answer is Yes, You Can use Termux to Hack Websites with the help of sqlmap and
other hacking tools.
● Can i Hack Facebook, Gmail, Instagram using Termux?
Termux Hacking Tutorials By
R-Coding
Yes You Can, Only If You Know Which Tool You Should use.
9
● Can i Hack a Android Phone With Termux?
Yes You can Hack Using Metasploit Framework In Termux, Not Only Android Smartphones
you can do even more with Metasploit.
● Can I Hack Wifi Through Termux?
My Answer is Yes and No, Because We Can Create a Wordlist in Termux For Hacking
Wifi, while aircrack-ng, airmon-ng etc, Wifi Hacking Tools Can Be Installed In Termux But Not
Usable In All Devices
● Can I Hack Everything With Termux?
We Can Hack Anything But Not Everything..!
10
Termux Hacking Tutorials By
R-Coding
Termux Commands Basics
Don't Learn To Hack, Hack To Learn..!
If you're a Linux User then You can use termux in a ultimate way, if you aren't then no
problem, you can learn Basic Termux Commands and move on.
11
Termux Hacking Tutorials By
R-Coding
What are Termux Commands?
in simple words, Termux Commands are the terminal commands, which is executed to
perform a particular task. These commands are similar to Linux Commands.
Before we drive into deep, let's start with some cool commands.
Lets Learn How To Use Cmatrix effects on Termux
For That Type Below Command
pkg install cmatrix
After that type cmatrix
Cmatrix effects will be displayed on termux
12
Another Cool Command is Sl
Type
pkg install sl
After that type sl
That's all a small Train will Start Running On Termux
Now lets see what are the background running tasks through termux
just type below command
top
Termux Hacking Tutorials By
R-Coding
Now let's find the factor of any number, for that install below package by typing
pkg install coreutils
After that to find the factor of any number then type factor number eg:
factor 100
Lets play with text on termux
we can write text in different styles, firstly try with the figlet
Type
pkg
install figlet
After that type figlet and type the text you want to write in figlet style
For Colourful text, you have to install toilet package for that, type below command
pkg
install toilet
13
After that type toilet "your text"
You can also try colour combination eg
toilet -f mono12 -F gay "Your Text"
Calendar in termux, if you can't to see the calendar in termux then type
cal
To see the calendar
To see the time and date just type date in termux
Now let's talk about some helpful commands
Termux Hacking Tutorials By
R-Coding
apt update
This command used to update the termux built-in busybox and other packages
apt upgrade
This command is used to upgrade the packages to latest
Accessing and managing files in termux
To manage and access files in termux then you must type below command
termux-setup-storage
To access a directory cd command is used
The termux default directory is located at /data/data/com.termux/
You can access it anytime by typing cd $home
14
cd .. command for goto previous directory
Termux Hacking Tutorials By
R-Coding
ls command as follows:
pwd command for parent directory
cd command for accessing a directory
15
ls Command is used to see the list of sub directories
Termux Hacking Tutorials By
R-Coding
To access your internal sdcard you have to type cd /sdcard && ls
To Access your External Sdcard the same command is used cd /sdcard0/ && ls
To Remove/delete an empty Directory or a file, use this command : rm -rf filename
Where filename belongs to the name of the file or directory
Similarly you can use rm -r filename
To Make a Directory mkdir Command is used
Eg: mkdir Hello
Where Hello Belongs to a Directory Name
For Copying files from one directory to another, cp Command is used
Look at the image we have copied main.png to sdcard
Termux Hacking Tutorials By
R-Coding
16
eg: cp /path/file /to-path
Similarly for moving files mv Command is used
Termux also Supports zipping and Unzipping of Zip files
For that zip , unzip Commands are used
Text Editors for Termux
You can use vim and nano text editors inside termux
To install nano just type pkg install nano then you can use nano by just typing nano
Termux Hacking Tutorials By
R-Coding
17
Similarly you can install vim by typing pkg install vim then type vim to start using vim
18
Let's talk about Networking
Termux Hacking Tutorials By
R-Coding
ifconfig Command is used to get all the information regarding to your Network IP
Address
To check a particular website is accessible or not in your ISP then you can check that
through termux by typing
ping website Eg: ping
google.com
The Interesting thing is you can access the internet through termux, directly in
command line
Firstly you have to install w3m package by typing
pkg install w3m
After that type below command to access any website
w3m website
eg: w3m google.com
Lynx is similar to w3m
To install lynx, type pkg install lynx
After that type lynx google.com
Not Only These you can use many other commands such as cat, man etc. on termux
Termux Hacking Tutorials By
R-Coding
19
Termux Hacking Tutorials By
R-Coding
20
Termux Packages
Termux Packages are more Interesting, in order to manage them we have to use pkg
command
Termux Packages Comes With all the necessary scripts as required to run a specific
program.
For example
what should usually we do when we have to install and use python in our system, we goto
python.org and download the required python version & we use an IDLE as compatible to
our device architecture while linux users have pre installed
But in termux we can install python just by typing pkg install python
just type pkg help you will know how to use pkg commands.
Not only this, Termux also have a lot helpful packages such as nmap, hydra and a lot.
21
Termux Hacking Tutorials By
R-Coding
Programming Languages In Termux
Programming Languages ?
You may think C, C++, Java, Python, Ruby, Php,Perl etc..
Exactly the same Termux is such a powerful linux environment that can handle the above
Programming Languages.
● C
● C++
● Python 3.x
● Python 2.7
● Ruby
● Perl
● PHP
● And So On
To install and use c, c++ on Termux,
We have to just type pkg install clang
During installation you will be asked that Termux Will use some space just type y and Hit
Enter
similarly we can install Python 2.7 by typing pkg install python2
Termux Hacking Tutorials By
R-Coding
22
and Python 3 by typing pkg install python
For PHP pkg install php
For Perl pkg install perl
Termux Hacking Tutorials By
R-Coding
For Ruby pkg install ruby
23
You can Explore more just type pkg help
Although These Programming Languages are Enough For Hacking, Still We Can install and
Use Many other programming languages such as Java etc..
You Can Read The Tutorial From
https://propakistani.pk/2018/06/08/here-is-how-you-can-write-and-run-c-java-and-python-pro
grams-on-your-android-devices/
24
Hacking Tools In Termux
I Hope This Section Will Be The Most Interesting Part for you, Within Few Minutes We are
Going To see the Linux + Hackers World Inside Our Smartphone.
When it comes to Hacking Tools, There are hundreds even thousands of Tools Available but
am going to present you a few of them.
Termux Hacking Tutorials By
R-Coding
Which are Very Powerful and Used By Professional Security Researchers, Ethical Hackers
and even Black Hat Hackers
When I Says About Hacking tools People think about Burp Suite, Wireshark and so on, if
you're Too Then Dont Expect That We Cannot Use Such Tools Through Termux, But We
Can Use The Tools Which Are Written In C, C++, Python, Ruby, Perl, Php and so on..
Mainly The Tools Which are Compatible For Termux (Especially The Tools Available For Kali
Linux) and finally those tools used by all kind of Hackers
Note: In This Section i have included a few Tools while there are a lot of tools available,
you can try them later..
When It Comes To Hacking Tools, mainly we should focus on Information Gathering Tools,
Vulnerability Scanning Tools and Exploiting Tools.
Information Gathering Tools In Termux:
There are Hundreds of Tools are Available For Information Gathering, Information Gathering
Is Varies From Hackers To Hackers,
25
Let Me explain Clearly,
Information Gathering is Not Just All About Gathering Information on the target IP Address
and servers, its wider and even more than we expect..
There is a huge difference on Information Gathering between the White hat Hackers and
Black Hat Hackers
Termux Hacking Tutorials By
R-Coding
In This PDF am Not Gonna Teach you the Black Hat way, am just Presenting you the
Professional Security Researcher's Tools
Quick Note: Always Open A New Terminal Session While installing a Tool, as i know
many of you will install all the tools in the first tool's directory
Termux Hacking Tutorials By
R-Coding
26
So Don’t Forget to use new terminal session ( swiping left to find it and click on New
Session before you’re going to install any tool)
#1 Nmap :
When It comes to Information Gathering Nmap Is the Best Choice of Hackers
Termux Hacking Tutorials By
R-Coding
Lets See How You Can Install and Use Nmap in Termux
27
Installing Nmap in termux is very simple
Just Type Below Command in Termux To Install Nmap
pkg install nmap
When you execute the command nmap will be installed in termux within few seconds
Now you have to type nmap to start using nmap
Don’t know how to use nmap?
then visit their official website nmap.org and learn
#2 Th3Inspector Tool
Another Powerful Tool For Information Tool For Termux is The Inspector which is written
in perl
The Installation and use age of Th3inspector Tool is much easier
Just type below commands into termux (must type one by one)
Termux Hacking Tutorials By
R-Coding
git clone https://github.com/Moham3dRiahi/Th3inspector.git
cd Th3inspector
chmod +x install.sh && ./install.sh
28
Finally you will be able to use Th3inspector Tool by typing perl Th3inspector.pl
#3 RED_HAWK Tool
Termux Hacking Tutorials By
R-Coding
Though i don’t Recommend this tool for Information Gathering at all, still its a great tool for
web application pentesters. It is written in PHP
To install RED HAWK, just type below command to install php
29
pkg install php
Now we have install git, so type the command,
Termux Hacking Tutorials By
R-Coding
pkg install git
if git already installed then you can skip this
Now we have to clone RED_HAWK from github
So type below command
git clone https://github.com/Tuhinshubhra/RED_HAW K
After that now got RED HAWK folder by typing
cd RED_HAWK && ls
Now give read and write permission to rhawk.php file, for that type
chmod +x rhawk.php
Now All Done, You Can Run RED HAWK tool by typing
php rhawk.php
Vulnerability Scanning Tools:
#1 Sqlmap:
When it comes to vulnerability scanning, sqlmap will take first place in termux.
Termux Hacking Tutorials By
R-Coding
30
Sqlmap is a Powerful Sql injection scanner, it is widely used by all kind of hackers from
Professional To Noobs.
Mainly its goal is to find sql injection vulnerabilities in Websites so it is packed with awesome
exploits which makes sqlmap loved by All kind of Hackers in the universe..
Termux Hacking Tutorials By
R-Coding
Follow below commands to install Sqlmap
sqlmap is written in python2 so now we need python2
31
For that type pkg install python2
Now clone sqlmap from github by typing
git clone https://github.com/sqlmapproject/sqlmap
Now goto sqlmap folder by typing cd sqlmap && ls
And give chmod 777 permission to sqlmap.py and sqlmapapi.py
For that type chmod +x sqlmap.py && chmod +x sqlmapapi.py
Finally type python2 sqlmap.py to start using sqlmap
Don't Know How To use sqlmap?
Goto sqlmap.org & or just google it
Termux Hacking Tutorials By
R-Coding
#2 D-TECT:
32
dtect also a good tool for termux, this tool is written in python2,
To install and use this tool, we have to clone the dtect directory from github
For that type below command
And install python2 By typing pkg install python2
type git clone https://github.com/shawarkhanethicalhacker/D-TECT-1
then type cd D-TECT && ls
Termux Hacking Tutorials By
R-Coding
finally type python2 d-tect.py
Exploitation Tools:
#2 Metasploit:
When it comes to exploitation Tools Metasploit is one of the favourite tool for us.
Now we can install Metasploit Framework in termux with few commands.
How To Install And Use Metasploit On Termux:
Just type below commands one by one
cd $HOME
pkg install wget
wget https://Auxilus.github.io/metasploit.sh
bash metasploit.sh
33
Finally run metasploit by typing
./msfconsole
#2 Hydra:
although hydra is not a exploitation tool, it's a powerful tool to crack passwords..
You can install hydra by typing pkg install hydra
Termux Hacking Tutorials By
R-Coding
And type hydra in termux to start using hydra
Not Only These Tools, as per your requirement You Can install and use so many tools in
termux
While i have introduced a few tools, you can install the above programs so that you can
install your desired tool in a single click.
Lazymux:
Lazymux Is a has a collection useful Hacking Tools which you can install in a single click
without typing the commands again and again
34
How To Install Lazymux
Termux Hacking Tutorials By
R-Coding
just type below commands in termux
git clone https://github.com/Gameye98/Lazymux
cd Lazymux && ls
python2 lazymux.py
#2 Tool-X
35
Tool-X Similar To Lazymux, it Contains almost 250 Tools at one place, so that you can install
them in a single click
You can install Tool-X by typing below commands
git clone https://github.com/Rajkumrdusad/Tool-X
Termux Hacking Tutorials By
R-Coding
cd Tool-X && ls
chmod +x install.aex
sh install.aex
Finally you can use Tool-X by typing
Tool-X
Termux Hacking Tutorials By
R-Coding
37
Final Words
I Hope you might excited to Read this PDF, Due to lack of time i haven't given a good design
to this PDF, and included a few tools and didn't included how to use them (as i thought you
might know how to use them, if not then you should google it).
If You like this Book then please give a feedback through twitter @MuraBasudev
Yet This is a free Ebook, if you don't like it then dont worry, just give me a feedback how to
improve it.