Hack with android terminal

Hack With Termux – Installation uses, and useful commands for beginners 2021

What is Termux ?

Termux is a Linux Terminal Emulator application for Android. A terminal emulator is a application that permits the user to get access to the command-line interface (CLI) in a graphical surroundings. This terminal emulator works directly with root and without root.

There are few Basic Command for Termux Emulator Application. If you already aware and used any Linux system and you know basic Linux OS commands you can very easily learn these Termux commands.

Why Termux ?

Now we recognize that Termux is a Linux Terminal Emulator. However why it is so well-known and sometimes also called a hacking system. Well, Termux is not a standalone hacking utility. As we mentioned, it’s software that takes commands and runs scripts. In a few Linux distributions like Kali Linux, Parrot Operating System, we discover loads of equipment to perform penetration testing. Maximum of them are CLI-based and run through the terminal. We can also deploy various other tools and run specific scripts made for Pentesting.

So on Android, obviously you get whole GUI surroundings. In which these gears won’t work without any command-line software. That is in which termux is used to put in such tool for your Android Platform. Our Android is based on a Linux kernel. That’s why Bash scripting can be used in it without any issue. for which Termux can connect to the file device to perform all most all Linux programs without problems. Which permits you to use the Linux command line to put in and run many scripts.

How to install and configure Termux ?

There is no complicated steps to install Termux on your android powered device. You can download it from Android Play Store or from F-Droid, Links given below –

  • Play Store Link: Termux (free)
  • F-Droid Link: Termux (free)

Post successfully installation, Open the Termux application and run below command. and type “Y” and continue when it ask for. This will update the packages.

After completion of above command type below command to upgrade the packages.

After successfully updating and upgrading, now you have to allow some permission to the application so that you do not have any problem later. To do this run below command

Now you are all set to hack using your android device.

Termux Package Management

Termux provides APT and dpkg for installation and package management. Termux uses is similar most of the modern Linux distributions, especially Debian and Ubuntu based distributions. You won’t find the Filesystem Hierarchy Standard (FHS) that is the major difference. The Filesystem Hierarchy Standard is found in most of the Linux distros. So you won’t find some directories on the same place as they are in Linux distributions.

Читайте также:  View system partition android

Below is the command that installs Termux packages which are not currently installed in termux and updates packages if it is installed previously.

Example: Below command installs nmap tool in Termux

Below command uninstalls Termux packages which are not already installed in termux.

Example: Below command uninstalls nmap tool from Termux.

If you need to reinstall the Termux applications to the equal variations as have been previously set up then you could use below command. The command will first uninstall and then redeploy the packages in Termux.

Example: Below command will reinstall nmap

below command used to show detailed information about a particular package.

Example: Below command will show the details of nmap

Termux Useful Commands List –

With this very cool commands you will feel like a hacker, just try it and see the magic.

Источник

Android Hacking with Termux

If you want to immerse yourself more about how to hack withВ Android, thenВ TermuxВ is a very good “App” to use an discover. I have been using it for a long time and I still love to see what you can do with it! And that with or without root privileges.

Because the possibilities with Termux are almost unlimited, I would not be able to cover everything in this article, but I will try my level best to provide you a good start.

Termux is a terminal emulator for Android with a Linux environment. A minimal base system is installed automatically and additional packages are available using the apt and dpkg package management, similar to Debian or Ubuntu.

Termux is only available on Android 5.0 or later

Features Termux Application

  • Secure
  • Customizable
  • Ready to Scale Up
  • Programming

Termux has some Extra features

  • Termux API
  • Termux Boot
  • Termux Float
  • Termux Styling
  • Termux Task
  • Termux Widget

Rooting your Mobile Phone

There are so many types of Phones. All have a different way to root them. Also be aware that if you root your phone, you always have to be sure of whatever you do / download. “If you’re not familiar with Android’s tools and how to fix issues with a command line, you probably shouldn’t dive into rooting your phone. Root a phone can be a lot of fun to play around with, but it can also lead to plenty of frustration as you try to fix errors caused by overzealous modding.” Have fun But stay aware of the risks 😀

INSTALL TERMUX

DOWNLOAD Termux

Open the Termux App in the Google Play StoreВ https://play.google.com/store/apps/details?id=com.termuxВ and click onВ download. After the Termux App is installed, you first have to do an update and an upgrade exactly like in a normal Linux system.

INSTALLING PACKAGES FROM APT REPOSITORY

In Termux it is recommended to use package manager pkg which is a wrapper for apt. It simplifies installing or upgrading packages by automatically updating apt lists so you don’t have to type apt update when installing or upgrading packages.

For myself, I always use theВ aptВ instead ofВ pkgВ a kind of getting used to it. Here in this article, I would give a good example usingВ pkg, but as you can see on the pictures, I am using on my sideВ aptВ

For more information about available commands, you can either just run pkg without arguments or usingВ help В argument:

Warning

If you prefer to useВ apt В overВ pkg В — never run it as root as you will mess up file permissions and SELinux contexts so you won’t be able to use it as a normal user.

As you see above, Termux looks exactly like a Terminal in Linux and you can compare Termux with a minimal Linux Installation where you can install everything yourself and set up the way you like it.

Читайте также:  Public class android app activity

Just like with Linux you can use the help function in Termux

Or install man for the manual pages

List all packages

PYTHON AND PIP

Termux has completely switched to python3. Python2 no longer has support. But you can still install python 2 scripts. How to install python2 on Termux, I show this below. Pip packages are now automatically installed with python.

PYTHON 3 AND PIP 3

Termux has completely switched to python3. This is the command to use.

PYTHON 2 AND PIP 2 TERMUX

For some scripts you still need python 2, this is how you install it. It is now not necessary to install pip 2, this is automatically included.

SOME TEXT EDITORS

Storage Settings

To grant storage permissions in Android go to Settings > Apps > Termux > Permissions and select storage, then runВ termux-setup-storage В in Termux.

To access shared and external storage you need to run

You will then be prompted to “Allow Termux access photos, media, and files on your device”, which you should allow. ExecutingВ termux-setup-storage В ensures that permission to shared storage is granted to Termux when running on Android 6.0 or later. That an app-private folder on external storage is created (if external storage exists).

INSTALL METASPLOIT FRAMEWORK

The world’s most used penetration testing framework.

Use the following commands to install the package (only for Android 7 or higher):

If your device running Android OS versions 5.x.x-6.x.x, use these commands instead (unstable-repo is not available for legacy installations):

Installation may take long time since additional Ruby gems will be installed. Do not close Termux sessions until installation finishes to avoid introducing of potential inconsistencies in $PREFIX.

Warning

Do not manually upgrade Metasploit installed through the package with editing contents ofВ $PREFIX/opt/metasploit . This will likely break installation and result in dependency problems. Do not report issues if you did this.

To start simply type:

Use Metasploit

Wlan’s Inet is the IP address your connection is currently using. To know your Wlan’s inet open a new session and typeВ ifconfig В and copy theВ inetВ of theВ WlanВ and paste it into your payload (after LHOST=). Go to your file manager then find your payload name then send it to your victim.

The following step is to run metasploit-framework type this commands

If the target is downloading the payload, you will see the meterpreter session starting. As usual with the “help” function you can see all the available commands.

INSTALL UBUNTU ON ANDROID

Ubuntu chroot for Termux. This chroot provides the latest Ubuntu version (19.04 Disco Dingo). But before you use it, you need to installВ WgetВ andВ PRootВ to install Ubuntu chroot in Termux.

After you install Wget and PRoot, you can install Ubuntu chroot using this command:

After Ubuntu chroot downloaded, you can run it by executingВ ./start-ubuntu.sh . If you are already inside your $HOME directory, you can run it with this command:

After installing the Ubuntu environment, you have to un-minimize the setup run:

To turn on our Termux with some good pentest tool we will need first to install some primary packages as well, which will be required later.

W3M INSTALL

w3m is a text-based web browser as well as a pager-likeВ more’ or less’. With w3m you can browse web pages through a terminal emulator window (xterm, rxvt or something like that). Moreover, w3m can be used as a text formatting tool that typesets HTML into plain text.

To exit press ctrl + z

SL INSTALL

You will see a moving train which you can control if the setup of Termux is running.

Читайте также:  Как узнать айпи своего андроида

INSTALL TOP

“top” command allows you to see all the running processes. Type –help for more info / Type -q to quite the program.

FIGLET INSTALL

Usage

CMATRIX INSTALL

With this awesome terminal, you can really impress all your friends.

Install Toilet

Usage

INSTALL VARIOUS HACKING TOOLS ON TERMUX

Warning: There are a lot of “Termux Hacking Tutorials” on the Internet which provide suspicious software meant to be used as hacking tools. Most of them are justВ clickbaitВ and don’t actually work. Some of them force users to install malware on their devices.

Tools like aircrack-ng or tcpdump can be found in the Termux Root Packages repository. But remember that Aircrack-ng requires wifi monitor mode which is not available in most devices.

INSTALL NMAP

Utility for Network Discovery, Security Scanner, Port Scanner, & Network Exploration Tool.

Usage

INSTALL HYDRA

Hydra is one of the best password cracking and brute-forcing tool. It supports different services like telnet, ssh, ftp, etc. More information can be found in the officialВ GitHubВ repository.

INSTALL SHODAN EYE ON TERMUX

Shodan Eye is a script I made in python. This tool collects all information about all devices that are directly connected to the internet with the specified keywords that you enter. This way you get a complete overview. The types of devices that are indexed can vary enormously: from small desktops, refrigerators to nuclear power plants, and everything in between. You can find everything using “your own” specified keywords.

A collection of search queries for Shodan has attached: “Shodan Dorks … The Internet of Sh*t” The information obtained with this tool can be applied in many areas, a small example: Network security, keep an eye on all devices in your company or at home that is confronted with the internet. Vulnerabilities. And so much more.

Shodan Eye can be installed and use very easy on Termux. This is a very big change, with old versions of Termux you had to make quite a few detours before you could install Shodan Eye. I have tested a lot, and it runs really well on Termux as well.

Usage

You will be asked for a Shodan API key

Here in this article, you can read more about and the use of the Shodan Eye. Also, more info to find about the APK key that is needed. (Free)
Shodan Eye Ethical Hacking Tool Release

Install Dorks Eye on Termux

Dorks Eye can also be used in Termux .

Dorks Eye is a script I made in python 3. With this tool, you can easily find Google Dorks. Dork Eye collects potentially vulnerable web pages and applications on the Internet or other awesome info that is picked up by Google’s search bots. You can save the output in a file so that you can view it at a later time. You can determine the number of searches yourself. The number of websites to display
Dorks Eye Google Hacking Dork Scraping and Searching Script

Usage Termux

Video Android Hacking with Termux | Dorks Eye Google Dork Script

Become a member on Odysee.com
Earning on Odysee for watching videos ♥️
Here an invitation link, so that we both benefit.
In this way, you also support my work.

INSTALLING GITHUB “HACKING TOOLS” ON YOUR TERMUX

There are a number of GitHub tools available. Please note, if your Android phone is not rooted then some of these tools will not work. In this article, we did not talk about rooting on a mobile phone. Maybe we will come back to this later in another article.

INSTALL LAZYMUX

Lazymux tools installer is very easy to use, only provided for lazy Termux users.

Источник

Оцените статью