Termux for Ethical hacking.Starting Guide
You want to learn Termux, in this guide we are going to see how to start with Termux for ethical hacking.
Termux is a powerful Android app that you can use for Ethical hacking. With the Termux App, you can install several Apps for hacking which you can even find on Kali Linux such as hydra, Nmap, Sqlmap…
In the previous article, we discussed how to hack with your smartphone using Termux in that article we discussed why to use Termux and how to start, I recommend you to have a look at it if not yet done
Accessing and managing file – Termux for ethical hacking
Well, now let us see how we can manage and access files in Termux. There are three main types of storage in Termux.
- Internal storage: files in $HOME, available from inside Termux or when explicitly in a SAF-compatible file manager.
- Shared storage: general-purpose file storage available for all applications. You need to grant Termux storage access permission to use it.
- External storage: external SD cards or USB hard drives. Typically read-only, except the Termux private directory.
Full read-write access to external SD cards and USB drives is available only on rooted devices. For those who are curious why some applications can write on external storage without restriction: these applications use special APIs (Storage Access Framework) not available for command line applications.
Also, Shared storage, as well as external storage, is not suitable for installing software. Do not even try to move Termux directories like $HOME or $PREFIX onto this kind of storage.
Access shared and external storage
Then, to access shared and external access storage you need to run
termux-setup-storage. You will then be prompted to “Allow Termux access photos, media and files on your device”, which you should allow.
Also, If you have Termux: API application and
termux-api package installed, you can use Android file picker to get any file from either shared or external storage by using a utility
you may like also how to install Tool-X on termux.Advertisement
Access Termux from file manager
You must know that also You can access the Termux home directory ($HOME) from the file manager using Storage Access Framework and are capable of accessing drives like USB or external SD-card in read-write mode.
Also, use ls to show the directory content, if you want to change the directory. Eg: cd $home. Then, use also pwd to display the path of a file or directory, and use cd/sdcard if you want to access your memory card.Advertisement
Text Editor – Termux for ethical hacking
Now as we have seen how we can access and manage files on termux, let us see text editor on termux. Also, in my previous article, we discussed the differences between termux from Linux, you can have a look at it if you are curious.
Now probably a text editor is a system or program that allows a user to edit text. Also, it is a type of program used for editing plain text files. Here is a list of some text editors on termux.
- Nano: is a small and friendly editor. It copies the look and feel of Pico, but is free software, and implements several features that Pico lacks, such as opening multiple files, scrolling per line, undo/redo, syntax coloring, line numbering, and soft-wrapping overlong lines. You can install it using pkg install nano
- Vim: Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as “vi” with most UNIX systems and with Apple OS X. Also, you can visit the vim Homepage: https://www.vim.org/
Also, for further more information you can visit https://wiki.termux.com/wiki/Text_Editors
Networking – Termux for ethical hacking
Now let discuss a little about networking on termux. Networking is the exchange of information and ideas among people with a common profession or special interest, usually in an informal social setting. Also, Networking often begins with a single point of common ground.
Ifconfig is used to check everything related to your Ip address. Also, the command Ping help to check any website IP address. Example: ping “name_of_web_site”, ping www.google.com
Also, Termux gives the possibility of accessing the internet using w3m. Then, the command Pkg install w3m is used to install w3m for accessing the internet on termux. Example: w3m “website address”, w3m tgeniusclub.com
Additionally, the command Pkg install lynx is used to install lynx, but they are having the same functionalities like w3m, type lynx “website”
Installing python in termux
Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python’s design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
when it comes to installing python on termux, there are 2 choices: either you install python 3. x or python 2.7.x. Then, let us see different ways to install python.
First, to install python 3. x open termux and type Pkg install python. Now, this command will install python 3. x on your termux and will be ready to be used.
Lastly, to install python 2.7.x, open termux, and type Pkg install python2. Now, this command will install python 2.7.x on your termux and will be ready to be used.
Warning: upgrading major/minor versions of the Python package, for example from Python 3.8 to 3.9, will make all your currently installed modules unusable. You will need to reinstall them. However upgrading patch versions, for example from 3.8.1 to 3.8.2, is safe.Advertisement
The programming language in termux
Termux is often used for software development, and information science education. Also, you might be surprised that almost all languages are usable on termux. Termux is such a powerful Linux environment that can handle the above Programming Languages.
- Python 3.x
- Python 2.7
Also, use this command: Pkg install clang it’s used to install c & c++, During installation, it will ask you if you allow termux to use the same space in your phone hint “y” then enter
You may like also Best android apps termux learner from play storeAdvertisement
Also, if you want to install PHP using this command: pkg install php.