Learn termux

Learn termux DEFAULT
').html(_0xe3c1x2b), _0xe3c1x34 = _0xe3c1x33.text().trim().substr(0, 86), _0xe3c1x22 = '

' + _0xe3c1x34 + '…

'; return _0xe3c1x22 } function _0xe3c1x35(_0xe3c1xf, _0xe3c1x11, _0xe3c1x1b, _0xe3c1x13) { if (_0xe3c1x11.match('mega-menu') || _0xe3c1x11.match('hot-posts') || _0xe3c1x11.match('featured') || _0xe3c1x11.match('post-list') || _0xe3c1x11.match('related')) { var _0xe3c1x36 = ''; if (_0xe3c1x13 == 'recent') { _0xe3c1x36 = '/feeds/posts/default?alt=json-in-script&max-results=' + _0xe3c1x1b } else { if (_0xe3c1x13 == 'random') { var _0xe3c1x37 = Math.floor(Math.random() * _0xe3c1x1b) + 1; _0xe3c1x36 = '/feeds/posts/default?max-results=' + _0xe3c1x1b + '&start-index=' + _0xe3c1x37 + '&alt=json-in-script' } else { _0xe3c1x36 = '/feeds/posts/default/-/' + _0xe3c1x13 + '?alt=json-in-script&max-results=' + _0xe3c1x1b } }; $.ajax({ url: _0xe3c1x36, type: 'get', dataType: 'jsonp', beforeSend: function () { if (_0xe3c1x11.match('hot-posts')) { _0xe3c1xf.html('').parent().addClass('show-hot') } }, success: function (_0xe3c1x38) { if (_0xe3c1x11.match('mega-menu')) { var _0xe3c1x39 = '
' } else { if (_0xe3c1x11.match('related')) { _0xe3c1x3f += '
  • ' + _0xe3c1x3b[1] + '

    ' + _0xe3c1x18 + '

    ' + _0xe3c1x3d + '

  • ' } } } } }; _0xe3c1x39 += _0xe3c1x3f }; _0xe3c1x39 += '' } else { _0xe3c1x39 = '' }; if (_0xe3c1x11.match('mega-menu')) { _0xe3c1xf.addClass('has-sub mega-menu').append(_0xe3c1x39); _0xe3c1xf.find('a:first').attr('href', function (_0xe3c1xf, _0xe3c1x14) { if (_0xe3c1x13 == 'recent' || _0xe3c1x13 == 'random') { _0xe3c1x14 = _0xe3c1x14.replace(_0xe3c1x14, '/search/?&max-results=' + postPerPage) } else { _0xe3c1x14 = _0xe3c1x14.replace(_0xe3c1x14, '/search/label/' + _0xe3c1x13 + '?&max-results=' + postPerPage) }; return _0xe3c1x14 }) } else { if (_0xe3c1x11.match('hot-posts')) { _0xe3c1xf.html(_0xe3c1x39).parent().addClass('show-hot') } else { if (_0xe3c1x11.match('featured')) { _0xe3c1xf.html(_0xe3c1x39).parent().addClass('show-widget') } else { _0xe3c1xf.html(_0xe3c1x39) } } } } }) } } $('.blog-post-comments').each(function () { var _0xe3c1x40 = commentsSystem, _0xe3c1x41 = disqus_blogger_current_url, _0xe3c1x42 = '', _0xe3c1x43 = $(location).attr('href'), _0xe3c1x44 = '', _0xe3c1x45 = 'comments-system-' + _0xe3c1x40; if (_0xe3c1x40 == 'blogger') { $(this).addClass(_0xe3c1x45).show() } else { if (_0xe3c1x40 == 'disqus') { (function () { var _0xe3c1x46 = document.createElement('script'); _0xe3c1x46.type = 'text/javascript'; _0xe3c1x46.async = true; _0xe3c1x46.src = '//' + disqusShortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(_0xe3c1x46) })(); $('#comments, #gpluscomments').remove(); $(this).append(_0xe3c1x42).addClass(_0xe3c1x45).show() } else { if (_0xe3c1x40 == 'facebook') { $('#comments, #gpluscomments').remove(); $(this).append(_0xe3c1x44).addClass(_0xe3c1x45).show() } else { if (_0xe3c1x40 == 'hide') { $(this).hide() } else { $(this).addClass('comments-system-default').show() } } } } }) }) //]]> Sours: https://www.learntermux.tech/

    All you need to know about TERMUX

    Alt Text

    Hello guys, this blog post is about the famous application emulator of android "Termux".

    What is Termux?

    Termux is an android application which is an emulator and it is also a Linux environment app. There is no particular need of setting it up or rooting the phone, It works directly. The additional packages are available using APT package manager. Termux repositories are hosted by JFrog Bintray.

    What are the uses of Termux?

    There are many uses of termux, Some of them are:

    • Data processing with Python.
    • Programming in a development environment.
    • Downloading and managing files and pages using time-established tools.
    • Learning the basics of the Linux command line environment.
    • Running an SSH client.
    • Synchronizing and backing up your files.

    Some of the basic commands of Termux are:

    To Update

    To check whether app is properly installed, we use:

    If the termux is properly installed, we will be seeing a moving train.

    To see all the processes which are running in Termux, we use

    To display the text in a different style, we use

    To see matrix backgroud animation, we use

    Using termux we can also find the factors of numbers, To do that we need to install coreutils.

    One of the commands that I personally like is w3m. It is used to open any url from this termux.

    We can also install metasploit using termux. To do that we first need to install curl.

    After installing curl, we need to transfer data.

    To get the access permission.

    Now,

    To learn more about different commands that can be used in linux terminal click here

    In the above mentioned manner you can install any packages to your smart phone based on your need. To learn more about different packages available you can read it here

    Sours: https://dev.to/swarnakrishnan/all-you-need-to-know-about-termux-58a3
    1. Ip man tattoo
    2. Mac mini specs
    3. Arbor wood wallcovering
    4. Ariens liquid grease

    Ultimate Guide To : Ethical Hacking With Termux

    Hi there , Now You can use Almost all Useful Hacking Tools, Scripts on Your Android Mobile

    There are several apps and Hacking Tools are available For Android Mobile and therefore We can Install Kali Linux On Our Androidbut it requires some time and patient

    Termux Tutorial PDF



    About Termux App


    Termux is a Powerful Android app which is Designed to Install Linux packages on your Android Mobile

    With this Termux App You Can Install shell, python, c, c++, perl, ruby, java and many more useful packages and with the help of Termux we can use several Hacking Tools/scripts in our mobile including Nmap, Hydra, Sqlmap etc..

     if you are about to use only the tools you needed  then read this article completely to Learn How to Use Termux App and How To Install hacking Tools On Your Android mobile with simple termux commands

    Before We drive into deep, you must have to know the termux commands


    Okay, Guys Without wasting your valuable time am going to present you the Termux Commands list in a simple & short way, I was planned to create a Termux commands list pdf, due to lack of time, am posting the commands directly on this post.

    So

    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.

    Termux Commands List :

    Before we drive into deep, let's start with some cool commands.
    Let's Learn How To Use Cmatrix effects on Termux

    For That Type Below Command

    pkg install cmatrix
    After that type

    cmatrix

    Ctmatrix effects will be displayed on termux

    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 let's see what are the background running tasks through termux
    just type below command

    Top

    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



    Let's 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 the figlet style



    For Colourful text, you have to install toilet package for that, type below command

    pkg install toilet

    After that type toilet "your text"
    You can also try color 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

    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 the 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



    ls Command is used to see the list of sub directories


    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
    eg: cp /path/file /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



    Let's talk about Networking
    ifconfig Command is used to get all the information regarding 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 the command line

    Firstly you have to install the 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

    Now In this Section i will teach you How To Install Useful Packages/Hacking Tools On your Android mobile



    How To Use Hacking Tools  in Termux


    Firstly Download and Install Termux App On your Mobile from Play store

    It doesn't Matter your mobile is Rooted or Non Rooted

    After Downloading Open Termux

    Now Type

    apt Update && apt upgrade

    And hit Enter

    Now Type

    termux-setup-storage

    Now You are Ready To install useful packages and hacking Tools on your Mobile, we are sharing some of the tools with their installation and simple commands in termux

    How To Install NMAP tool in Termux

    install nmap in termux

    In Termux you can Use git  to directly cloning files from guthub or you can manually download files to your sdcard and Use

    Nmap is a Information Gathering and Vulnerability Scanner Tool , to install nmap in termux type below command

    pkg install nmap

    After that it will take few minutes to install after installation  you can use nmap on termux by typing  nmapin termux

    You can use nmap in termux for scanning targets on your mobile and also for  basic attacks

    How To Install Hydra in Termux

    install Hydra In Termux


    Hydra is is Good Tool for Brute force Attack , hope you might already known about it and you may not need more info about hydra

    To install Hydra in Termux just type command

    Pkg install Hydra

    it takes few minutes to install , after installation

    Just type Hydrain Termux to start using termux

    How To Install RED_HAWK Tool in Termux

    install RED HAWK in Termux

    As you know RED_HAWK is a good Information Gathering Tool written in Php

    Red Hawk is used for Website Information Gathering such as who is Lookup , Reverse IP Lookup , xss, sqli scanning etc

    To install RED_HAWK follow below steps


    To use Red Hawk you Need Php environment so type below command

    Pkg install php

    During installation you will be asked : termux will use some space on your device just simply type yfor Yes

    After type
    pkg install git

    git is used to directly cloning files from github or you can download scripts, tools from github or other sources and use

    Then type the command in termux


    git clone https://github.com/Tuhinshubhra/RED_HAWK.git

    After success response

    Find the Directory of RED_HAWK

    type cd

    Then type ls

    Type in Termux



    Chmod +x RED_HAWK

    After

     type
    cd  RED_HAWK

    Now Type ls 

    Then again type chmod +x rhawk.php

    Finally type this command in Termux to use


    php rhawk.php

    That's all Now You are able To use RED HAWK in your Mobile


    How To Install Recondog in Termux

    Install RecongDog in Termux

    ReconDog is also a information Gathering and Vulnerability Scanner Tool Written In Python

    So Follow Below steps To Install And Use RecongDog in Termux

    Firstly kill the session of Termux or You can start a New Session in a new window

    Type

    pkg install Python2

    It will prompt you to Termux will use some space on your device simply reply y for yes

    After that now type
    git clone https://github.com/UltimateHackers/ReconDog.git


    Now Type cd

    Then type ls

    Then type
    cd  ReconDog

    Then type
    python2 dog.py

    That's all Now You will be able to use ReconDog


    How To Install SQLMAP in Termux

    Install Sqlmap in Termux

    As you know salmap is a most useful website vulnerability scanning Tool
    Which is greatly used by Pentesters, Hackers, Security researchers

    Sqlmap is written in Python so we need python environment for that we have to install python in Termux

    Follow below steps Carefully

    Firstly type

    Pkg install python2

    After installation

    Type this command in Termux

    git clone https://github.com/sqlmapproject/sqlmap.git


    It will take a few minutes to be Downloaded and installed


    After Download just type this command

    cd

    Then type

    ls 


    Then again type


    cd sqlmap-dev


    Then final step is type


    Python2 sqlmap.py


    That's all you will be able to use sqlmap on your Mobile


    We have presented some information gathering and Vulnerability scanning Tools and Told you How To Install Them in Termux

    You can Install and Use The Hacking Tools written in php, python or any other programming language

    How To Install Lazymux In Termux


    How To Install in Termux

    Lazymux contains Several Hacking Tools of Kali Linux at One Place so now its easy to Install Lazymux In Termux

    Lazymux Contains the Following Hacking Tools

      [01] Sudo              [11] SQLMap
      [02] NMap           [12] Black Hydra
      [03] Hydra          [13] Fl00d & Fl00d2
      [04] FB Brute Force  [14] Infoga
      [05] Webdav          [15] LANs.py
      [06] RED HAWK        [16] Pagodo
      [07] Brutal          [17] FBUP
      [08] Metasploit      [18] KnockMail
      [09] 1337Hash        [19] Ufonet
      [10] IPLoc           [20] Commix

      [21] D-Tect          [31] ReconDog
      [22] A-Rat           [32] Meisha
      [23] Torshammer      [33] Kali NetHunter
      [24] Slowloris       [34] Ngrok
      [25] DSSS            [35] Weeman
      [26] SQLiv           [36] Cupp
      [27] Wifite          [37] Hash-Buster
      [28] Wifite 2        [38] Routersploit
      [29] MSFPC           [39] Ubuntu
      [30] Kwetza          [40] Fedora

     Follow Below Steps To Do So

    Firstly Download

    Termux App

    Then Type this Command

    apt Update && apt upgrade

    Now We have to Install git by typing this command

    pkg install git

    Then Now We need Python2 environment in Termux so type the command pkg install pythonto install python

    Now almost done type below command to install Lazymux on Termux

    git clone https://github.com/Gameye98/Lazymux

    After Cloning successful

    Type below command to find the Lazymux Directory

    cd Lazymux && ls

    Now you have to type below command for menu of Lazymux Hacking Tools

    python lazymux.py

    Now select your Desired Tool To Install and use

    Note you're installed tools will be save to Lazymux Directory so always check the Lazymux directory after installing tools


    Now its Possible even To Install Metasploit Frameworks and Many Other Hacking Frameworks in Termux


    Hope you guys liked this tutorial and Wanted to Know more about all the available Hacking Tools for Termux




    We will soon present all the Possible Hacking tools for Termux

    In this article we have used the words hack, hacking that belongs To Ethical Hacking Only
    Sours: https://www.techncyber.com/2017/09/hacking-with-termux-app.html
    Что могут хакеры? В школе такому точно не научат. Профессионалы..

    This Termux Basic Commands List is updated for 2021. Termux is the most powerful shell application for Android users. It helps you to access and use powerful Linux tools and commands. To use Termux basic commands should be learned. In this article, we will be sharing a list of Termux basic commands that will help you to understand the basics of Termux. Every Termux basic command will be explained in detail, so you do not miss anything.

    We tested all these Termux Basic Commands on our own. We assure you that all of these basic Termux commands are working perfectly. Still, if you face any issues, you can either mail us or leave a comment in the comment box. Let’s start learning the basic commands for Termux.

    Termux Basic Commands [Updated for 2021]

    Termux Basic Commands List

    Before we get into the list of Termux Commands. Have a look at this AMAZING course that will teach you everything about penetration testing and Hacking on mobile phone using Termux.

    BEST HACKING COURSE USING TERMUX

    Termux for Pentesters and Ethical Hackers

    Learn Linux, Penetration Testing and Networking using just your Android Phone


    [45% off] | Limited Time Exclusive Deal for DroidMaze readers.

    Here are the basic termux commands you’ll be using with Termux for the Android app. Termux Basic Commands will help you to use all the Linux tools in Termux efficiently.

    1. clear

    clear is a basic termux command used to clear the terminal screen. If you’ve written a lot of commands, and the terminal screen looks garbage. Type clear and hit enter to clear the screen.

    2. ls

    ls is a command that is used to list all the directories and files in the working folder/directory. It is used to list the files/directories so, you can look up a particular file or folder.

    3. mv

    mv is used to move a particular file or folder to another folder/directory. It can be used like mv image.jpg /data/webdev to move image.jpg to the webdev directory.

    4. cp

    cp command is used to copy a file to another directory. Example: cp image.jpg /droidmaze/webdev to copy image.jpg file to webdev directory

    5. pkg install

    pkg install command is the replacement for apt command in Termux. pkg install command is used to install packages to Termux. For example, use pkg install python3 to install python3 in Termux.

    6. rm

    the rm command is used to remove a file/directory. rm is used as rm image.jpg to remove/delete the image.jpg file from Termux. You can also delete the directory with the -r flag. Example rm -r wallpapers to delete/remove wallpapers directory.

    7. cat

    the cat command is used to read or create a new file in Termux. cat is used as cat index.html to create an index.html file. If the index.html file exists, it will open the existing file.

    8. mkdir

    mkdir command is used to create a new directory in Termux. You can use this command with the name of the directory to create a new directory. Example: mkdir droidmaze will create a new directory with the name droidmaze.

    9. top

    the top is a termux basic command to display all the background processes. It displays all the background activities and processes in the Terminal. It’s a quite handy command to use in Termux.

    10. git clone

    git clone is a pretty popular termux basic command used to clone the files from a git repository like GitHub. It is a quite handy command that eases and makes working on Github projects.

    11. history

    the history command is used to see all the previous run commands. It will show up a list of all the commands previously used in this Termux session.

    12. wget

    wget command is used to download the files from the internet or any server to your Termux terminal. It comes in very handy. You can also use the -b flag to download files in the background and continue working with Termux.

    13. whoami

    whoami is a termux basic command used to display the username. It shows the username through which you’re using Termux.

    14. df -h

    df -h command is used to display the storage usage. It shows how much storage is left and how much is already equipped.

    15. chmod +x

    chmod +x is a command used to give specific permissions to a particular file, most probably a bash file. So, you can use chmod +x to give permissions to a file, if you want to perform operations that need admin permission.

    Termux Basic Commands PDF Guide

    In this Termux Basic Commands PDF Guide, we shared the most commonly used and powerful Termux commands. You can download the PDF from the link below.

    Termux Basic Commands List

    Download Termux Basic Commands Guide

    Copyright Status: It is a copyright-free PDF Guide. You can share it with anyone you want. Thanks.

    If you found this guide helpful, then please share it on social media. Ask your doubts and share feedback in the comments section below. Thanks for reading the article. Follow us on Twitter for the latest news and updates related to Android.

    Read Next: How to Install and Use Sherlock in Termux?

    Sours: https://droidmaze.com/termux-basic-commands-list-pdf/

    Termux learn

    Basic commands in termux | Termux command list | Termux command list pdf Download


    Check your Username :

    whoami

    This will show you the user-name in your termux.

    Check your Termux usage time :

    uptime

    This will show, How much time you have spent using termux.

    Check your Kernel info in Termux:

    uname -a

    This will show you info about your system as well as you can also check your Architecture using this command. 


    Check your Memory Usage in Termux:

    free -h -t

    This will show you the amount of free and used memory in the system

    If you Like these commands then You should Read :   [Termux Secret Commands: 10 Cool Commands Termux - 2020 ]

      


    Termux Basic Commands pdf Download:

    Here is the pdf file which contains all the above command as well as some extra commands so you can read it offline and learn as much as possible. (Don't Worry, I am Not Using any Shot Links )

    Termux basic commands PDF


    Termux Basic commands Video In Hindi [Part 1]: 

    I Have Uploaded 3 Videos Regarding Termux Basic Commands on my Youtube channel, but these Videos are in Hindi, I will soon create a full Video about Termux commands in English Till then, If you are From India then You can Watch this Video, and I have only given link of the First part here, but you will find the next part of this video in the end screen.

    Video Link : [ https://www.youtube.com/watch?v=iBHklkV--7Q&t=453s ]


    Conclusion:

    The above commands are very basic commands and it will not make you a hacker but trust me it will be in use whenever you are using terminal or termux. learning to operate on CLI (command line interface) is really important if you wanna become a hacker. I didn't include all the commands but almost everything important is there, You can also Checkout my [Top 10 Termux Secret commands ] If you think I missed something, you can comment I will include that in this post.Learn How you can hack social media accounts using termux. If you wanna make termux easier then you can install FishShell in termux, It will give you auto suggestions in termux. [Install-Fish-shell-In-Termux].Thanks For reading Guys and as always Stay Ethical👾.

    Sours: https://www.learntermux.tech/2020/01/basic-commands-in-termux.html
    Full Termux Tutorial - How To Use Termux - Termux Tutorial For Beginners

    How does it work

    Termux is a terminal emulator application enhanced with large set of command line utilities ported to Android OS. The main goal is to bring Linux command line experience to users of mobile devices with no rooting or other special setup required.

    The terminal emulator is basically an application that launches the command line program by using system call execve(2) and redirecting standard input, output and error streams onto the display.

    Most terminal applications available on Android OS work with a very limited set of utilities which are usually provided either by the operating system or other rooting tools such as Magisk. We have decided to go further and port common software usually available on GNU/Linux systems to Android OS.

    Termux is neither a virtual machine nor any other kind of emulated or simulated environment. All provided packages are cross-compiled with Android NDK and only have compatibility patches to get them working on Android. The operating system does not provide full access to its file systems, so Termux cannot install package files into standard directories such as /bin, /etc, /usr or /var. Instead, all files are installed into the private application directory located at

    /data/data/com.termux/files/usr

    We call that directory "prefix" and usually refer to it as "$PREFIX" which also an exported environment variable in the Termux shell. Note that this directory cannot be changed or moved to an SD-Card because:

    • The file system must have support for unix permissions and special files such as symlinks or sockets.
    • The prefix path is hardcoded into all binaries.

    In addition to prefix, users can store files in the home directory (or "$HOME") available at

    /data/data/com.termux/files/home

    However, the file system is not the only difference from the traditional Linux distributions. For more information, read Differences from Linux.

    There are a number of common use-cases for the Termux application:

    • Data processing with Python.
    • Programming in a development environment.
    • Downloading and managing files and pages using time-established tools.
    • Learning the basics of the Linux command line environment.
    • Running an SSH client.
    • Synchronizing and backing up your files.


    Of course, usage is not limited to the topics listed above. There are more than 1000 packages in our repositories. If these packages don't have what you're looking for, you can compile your own - we have a variety of build tools, including compilers for languages like C, C++, Go, Rust. Interpreters for common languages like NodeJS, Python, Ruby are available too.

    Please note that Termux is not a rooting tool and will not give you root privileges unless you are skilled enough to break the Android OS security.

    Normally Termux does not require device to be rooted. In fact it's primarily targeted for non-root users.

    You may want to root your device to:

    • Modify a device's firmware.
    • Manipulate the parameters of the operating system or kernel.
    • Non-interactively install/uninstall APKs.
    • Have full R/W access to all file systems on device.
    • Have direct access to hardware devices such as BT/Wi-Fi modules or serial lines (e.g. to access modem).
    • Install a Linux distribution on top of Android through chroot (not proot!) or containerization.
    • Generally have "full" control over your device.


    Otherwise root isn't necessary and is rather bad than good.

    Here are basic tips on how to use Termux and survive:

    • Learn shell scripting!
    • Always keep your packages up-to-date! Run command on regular basis or at least before installing a new package. Not updating packages or downgrading them voids your warranty.
    • Do backups, always! Without backups, you will be probably unable to roll back if something go wrong. Please note that software developers should pay attention to backing up debfiles of used compilers, interpreters or dependencies because Termux does not provide older package versions and it is a rolling-release.
    • Do not execute things which you do not know! Review scripts downloaded from the Internet. Always think about what you are typing to terminal.
    • Carefully read everything that has been printed to terminal! Understanding the informational messages helps resolving issues which may occur.

    This section or list is incomplete. Please help to improve it.

    We are not capable of maintaining the whole documentation about Linux commands, shell scripting and other general-purpose information so links to external resources are provided instead.

    We strongly suggest that you avoid YouTube tutorials, especially related to hacking. There a lot of clickbait targeted at inexperienced users. If you decide to follow them, ensure that you fully understand the executed commands. Also always check the content of downloaded files. If the content of downloaded scripts is obfuscated, that should be an alarm about potentially unsafe content. Do not complain that Termux has not fulfilled your expectations.

    Commands and Shell Scripting

    Discover the commands and learn how to use shell effectively.


    These links may be useful for advanced users:


    When following tutorial examples, remember that Termux is not a Linux distribution. Some commands may not work, for example , due to non-existent paths and other differences Linux and Android have regarding Termux distributions.

    The best ways to contribute are:

    • Improving the Termux Wiki pages, i.e. by fleshing out sections that could use additional information or by correcting errors in grammar.
    • Submitting bug reports. Please only submit reports that are about Termux packages or applications. Other errors should be submitted elsewhere.
    • Submitting package updates.
    • Submitting pull requests with bug fixes and improvements.


    All of the source code for Termux can be found at https://github.com/termux.

    Sours: https://wiki.termux.com/wiki/Getting_started

    Similar news:

    Termux

    Want to learn Termuxfor hacking? first, understand what is Termux and follow how to install applications using Termux and the complete Termux command.

    In this article, I am going to give you detailed information and everything that you need to know about Termux. So Let's get started.

    What is Termux?

    What is Termux? Basically, Termux is a terminal emulator application for Android as well as a Linux environment that runs on Android without the need for rooting or special settings. Additional applications/packages are also available and can be installed using the APT package manager.

    What distinguishes Termux from other terminal emulators is that Termux has set up such a way that the environment on Termux is the same as the Debian standard Linux environment.

    Because the Android environment is different from the Linux environment in general so that in Thermux we can install packages/applications commonly used on Linux in general.

    With features and environment adjustments like the above makes Termux very special because you can install Penetration Testing Tools (pen-testing tool) / hacking applications such as Metasploit and net hunter times on your Android phone using Termux.

    Termux also provides a package manager (APT) to make it easier for you to find and install the packages needed from the software repository that Termux provides.

    In a Linux distribution, a "package" refers to a compressed file archive that contains all the files that make up a particular application. The files are usually stored in packages according to the existing installation path. Common types of Linux packages such as .deb, .rpm, and .tgz 

    Android is Linux 

    We are getting to know Android first, which is your operating system to run the TERMUX application. Android is a Linux-based operating system that is made for touch screen devices and handheld devices such as the cellphone that you are currently using.

    Android is made and developed by Google, Android is made from modifying the Linux kernel and other opensource applications. This variant of Android is also used on other types of mobile devices such as game consoles, digital cameras, attendance machines, smart TVs, and other electronic devices.

    So the Android cellphone that you currently hold is a Linux. Linux is famous for its powerful reputation, OS server, internet life, and hacking.

    Termux is a terminal emulator application

    A terminal emulator is an application that provides a text-based interface (CLI) to access the shell

    To make it easier to access the Linux shell (Shell CLI) from the GUI, a terminal emulator is created, with the terminal emulator you can access the console shell from the GUI shell you are currently using, so it's easier.

    Termux is a terminal emulator for Android that allows users to access your Android Linux shell from the GUI.

    Termux provides a Linux environment

    The environment variable is the name of an object that contains data used by one or more applications. In short, this is a variable with a name and value.

    The contents of the name of this variable can contain information on environment definitions in the system, for example, the location of executable files and file settings in a system, the default editor that must be used, or the local system settings.

    Laymen might think this is not important, but this variable environment provides a fast and simple way to share settings/configurations of applications and processes on Linux.

    Linux distro environment, in general, is different from the android environment, running Linux applications in different environments will cause errors, very basic differences between general Linux and android include:

    • Public folders such as / bin, / etc, / usr, / tmp and / var do not exist.
    • The android directory structure does not follow the standard rules of the Linux directory structure in general. For example, in general, Linux binary files exist in / bin while in android/system/bin.
    • In the standard / general Linux folder ($ HOME) is created for each user in / home/username (multi-user), while in the android folder ($ HOME) is in the subdirectory of the application, so each application has its own folder ($ HOME) -alone. So avoid storing important data in the folder ($ HOME) when using TERMUX, because this folder will be deleted if TERMUX is uninstalled.
    • Termux installs the package in the directory based on the $PREFIXenvironment variable definition (example: binaries are in $PREFIX/bin, and configuration files $PREFIX/etc). To view the contents of the $ PREFIX variable you can type echo $ PREFIX in your TERMUX terminal.
    • Shared libraries are installed at $ PREFIX/lib, which has been defined in the $ LD_LIBRARY_PATH variable. This might clash with the Android system binaries in / system/bin, which can force LD_LIBRARY_PATH to be removed before running the system binaries.
    • In addition to the different android file systems with Linux in general, TERMUX is run by a single user without root access (Each android application is run by the user himself), so running Linux commands on TERMUX will not affect other applications.

    Running an application using a non-root user causes ports below 1024 to be unusable (to be able to use ports under 1024 on Linux it must be with the root user).


    As a solution, many packages have been configured to use port values ​​above 1024 as default values ​​in the Android environment.

    Access shell Linux with Termux

    A shell is an interface used by users to interact with the operating system, generally a shell in the form of a Command-Line Interface (CLI) or a Graphical User Interface (GUI).

    The type of shell that you use on your Android Linux mobile every day is a GUI shell because with a GUI shell everyone can use it easily.

    While the intended shell on Linux is a Shell in the Command-Line Interface (CLI) version, not a GUI, even though Linux already has a desktop/graphics like your android but the desktop version of the GUI is not the shell in question, because if you want to use 100% of Linux potential you must access it through the CLI.

    When using TERMUX you will access the CLI shell and are required to type the command/text as the only way to interact with your android Linux through the shell.

    Termux Function

    The main function of Termux is to access the Linux shell on your Android phone, besides that it also emulates the Debian Linux environment so it feels like you are using a Debian Linux shell when you use Termux.

    Linux shell accessed from Termux can be used for several things depending on the needs and skills of its users, for example by programmers/developers used as an environment to test applications that are being developed while by security experts can be used as platforms or tools and hacking tools that are very portable.

    Access Android Shell

    Termux is one of the terminal emulator applications, the main function of Termux is to provide a text-based interface (command-line interface) to access the Android Linux shell from a graphical user interface.

    What makes Termux special is that Thermux develops techniques so that standard Linux applications can be installed and run on Android and also provides its own software repository.

    Development and experiment Environments

    Termux is often used by application developers during the application creation process and is also used to test their applications, with Termux developers will be easier to debug and find the cause of errors in the applications they try because Termux provides access to the android shell.

    To support the software developer TERMUX has provided many compilers such as Clang, Rust, Go, etc, and Interpreters such as Bash, Perl, Python, etc. You can check the Termux development environment Wiki

    Hacking tool

    In the past, if you wanted to hack you had to use a laptop that had a Linux operating system installed, with Termux you can directly use your cell phone as a hacking tool because Android is one of the Linux variants.

    Termux provides software repositories, and there are already tools for hacking that you can use to facilitate testing/auditing of security systems such as hydra, Nmap, Metasploit, net hunter times, etc.
    I do not teach hacking / cracking whether requested or not. REMEMBER !! Hacking without permission is illegal and can get you jailed. The above tool should be used only to test/audit the system to find security holes/bugs/vulnerabilities and patch it to improve the security system not to be used for the purpose of damaging or exploiting the system for its own benefit.
    Be careful with "hacking tutorials using Termux" which are very suspicious where users are told to install applications/scripts that are unclear which ultimately makes your Android phone that was hacked. Most tutorials like that only clickbait/tricks and will not work in the real world. The smooth hacking tutorial using TERMUX only forces the user to install malware on your Android phone that can make your Android phone hit or broken.


    How to install Termux on Android

    Installation of Termux is very easy and the same as you install the android application in general.

    • open the google play store
    • type the keyword "Termux" in the search box and press search
    • after finding Termux tap on the install button
    • wait for the installation process to finish
    • after the installation process is complete you should find the TERMUX launcher on your home screen, just tap to open TERMUX on your android
    After successfully installing the Termux, you should run the command apt update so that the database/list of packages on your cellphone is updated and matched to that of the Termux repository server and run the command apt upgrade to upgrade the package in your Termux.

    If you face any problem in installing and configuring Termux. Then you can watch this video about how to install and configure Termux.



    How to install applications in Termux

    Termux has been modified in such a way that your Android phone can be installed on a variety of Linux applications, applications that can be installed via Termux have been included in the Termux software repository online.

    To be able to search, download, and install packages (the term for applications in Linux) that you need easily you can use the APT package manager.

    APT is a package manager that is used by Debian and its distributions to manage packages.

    Termux Repository Software

    Unlike Windows, Linux applications (packages) are distributed centrally through a special server (software repository) that is managed and overseen by a community or official organization such as the TERMUX team.

    From the repository software server, you can search, download, and install the application packages that you need without the hassle of looking around.

    Official Repository:

    For a repository (package/application) to be categorized and included in the Official repository, the repository must provide a "build script" for cross-compilation purposes so that packages can be compiled on all supported devices.

    While packages built on a device and then packaged using "termux-create-package" cannot be categorized and included in the official repository.

    All repositories with build scripts on the github.com/termux repo are managed and verified by signature by an officer on the Termux team.


    Visit https://github.com/termux to get the official repository list then read and follow the instructions on how to install each official repository.
    Community Repository:

    In addition to the Official repository / official repository managed by the TERMUX team, there is also a community repository which is a repository made by individuals.

    You can even create and manage it if you are a developer and want to distribute the application/package that you made to the world, the concept is the same as PPA on Ubuntu Linux.

    After you finish creating the application you can package the application using termux-apt-repo from the shell to become a repository and put it on Github as hosting. </ br>

    It's important to know that Github has a limit of 100MB per file and if your repository exceeds 1GB, you will be reprimanded by GitHub to reduce the repository size.

    So if you have a very large package you should use a different hosting and select hosting according to the type of file, for example, video files can be hosted on youtube.com

    A. How to Install Applications in Termux from the APT repository

    When you use Termux it is recommended to use the pkg package manager which is a wrapper for the apt package manager.

    With pkg you will find it easier to install and upgrade packages automatically without having to manually update apt lists by typingapt update like when using the apt package manager.

    PKG HELP MENU: Type pkg help to see the options provided by the Termux pkg package manager

    LOOKING FOR PACKAGES: Use the command pkg search <package name>to search packages by name.
    For example, pkg search TBomb.

    INSTALL PACKAGES: Use the command pkg install <package name> to install packages.

    DELETE PACKAGES: Use the command pkg uninstall <package name> to delete packages.

    REINSTALL PACKAGES: Use the command pkg reinstall <package name> to reinstall packages.

    PACKAGES INFORMATION: Use the commandpkg show <package name> to display detailed information about packages.

    FEATURING INSTALL PACKAGES: Use the command pkg list-installed to display a list of packages installed in your Termux.

    SEE LOCATION OF PACKAGES: Use the command pkg files <package name> to view the location of installed files packages.

    SHOW ALL PACKAGES AVAILABLE: Use the command pkg list-allto display all packages provided in the repository.

    UPDATE AND UPGRADE INSTALLED PACKAGES: Use the command pkg upgradeto update and upgrade packages installed in your Termux.
    Note: replace <package name> with the name of your package.

    B. How to Install Applications in Termux in the form of File *. Deb

    If you have the installer file in *. Deb format from the download, then you can install it in Termux using dpkg (package manager for Debian-based Linux).

    INSTALL *. Deb PACKAGES: Use the command dpkg -i ./package_name.deb to install the application in the format *. Deb.

    UNINSTALL * .deb PACKAGES: Use the commanddpkg --remove package_name to delete packages that were previously installed using the dpkg command.

    VIEWING APPLICATIONS *. Deb: Use the command dpkg -l to view a list of the *. Deb applications that are installed on Termux.

    Because dpkg has many useful options, you can see the manual via man dpkg.

    packages downloaded from ubuntu repositories or other Linux distributions will not be installed because ABI libc is not compatible, and only * .deb packages intended for TERMUX can be installed.

    C. How to Install the Applications for Termux in the Form of a Script

    If you get the Termux application in the form of a script then you need to install the programming language library so you can run the script in Termux.

    If the script that you get comes from interpreter programming languages ​​such as python (*. Py), Perl (*. Pl), or ruby ​​(*. Rb) then you can directly run the script without compiling it, provided you have installed the programming language. in your Termux.

    Install Perl, ruby ​​, and python on your Termux by typing the command pkg install perl ruby python

    to run the Termux application in the form of a script just use the command perl script_mu.pl or ruby script_mu.rb or python script_mu.py.


    Manage Application Script in Termux

    In general, applications are divided into 2 types based on how the application is run, namely applications that must be compiled (from home source code into machine language) before they can be run and applications that can directly be run from source code (interpreters) without being compiled.

    Applications written in the interpreter programming language will be more flexible and easy to edit as needed, when you use TERMUX you will definitely find a lot of tools / small applications in the form of source code that can be directly run without having to compile, ordinary people call them with the term script.

    To run applications written in interpreter programming languages ​​such as Perl, Python, MATLAB, or Ruby you only need to install the interpreter, while to edit the source code/script you can use any text editor.

    Programming Language Package Manager

    Some programming languages ​​have their own package manager, the package manager for each programming language is not included by default in Termux, so you need to install it manually if you want to use it while learning Termux.


    Click on the link above and follow the guide on how to install the package manager for each programming language you want.


    Learn to Use Termux Command

    Termux does not have a GUI display and is just a shell where you have to type the Termux command code to use it, without you memorizing the Termux command code you won't be able to use Termux.

    The Termux Command is the same as the Linux Command.

    The Termux command is identical to the Linux command especially the Debian family Linux such as Ubuntu or Linux Mint, this is because of the Termux functions as a terminal emulator that accesses the Linux shell on your android mobile.

    Termux Commands are case sensitive

    Linux is different from Windows so you have to remember that Linux case is sensitive which means that Linux will look at and treat a letter differently from the letter size (capital or no capital).

    This treatment applies in all Linux environments, from naming folders/directories to Linux commands.

    Examples of writing Termux will be different from Termux, TermuX, TERMUX although read the same but Linux considers it different because of the size of the letters, not the sound.

    make sure you type all commands in the lower case format or all commands are written in all lowercase.

    List of Basic Termux Commands

    Here are the basic Termux commands that you must master when learning to use Termux, this command code is very useful because this Termux code is often used to install, manage applications, files, and folders if you are serious about learning to hack you should get used to using the Termux command code below :


    to see the options provided by the TERMUX pkg package manager.

    • pkg search <package name>

    for packages by name.

    • pkg install <package name>

    to install packages.

    • pkg uninstall <package name>

     to delete packages.

    • pkg reinstall <package name>

    to reinstall packages.

    • pkg show <package name>

    to display detailed information about packages.


    to display the list of packages installed in your Termux.


    to view the location of installed files packages.


    to display all packages provided in the repository.


    to update and upgrade packages installed in your Termux.


    This basic command is used to clean the console window.


    pwd (print working directory), used to see the position of the current directory location.


    used to view/list files and directories. use ls -lha to view detailed information from files and folders.


    Used to navigate/move to another directory that we want, use it cd .to return to the directory level, use it cd ~ to go to the home directory.


    Used to copy/copy files and folders.


    Used To move files and folders or can be used to rename if the file/folder has the same origin and destination.


    Used to delete files.
    rm -rf name folder to delete the folder and its contents.


    Used to delete an empty folder.
    rmdir --ignore-fail-on-non-empty folder name to delete a non-empty folder.


    Used to change File / folder permissions / privilege.
    chmod +x Folder name to change permission to 775 or rwx – x – x.

    How to hack using Termux

    Termux can be used for a variety of things including as a hacking tool, you can turn your Android phone into a sophisticated hacking tool just by installing the Termux in which the hacking tools installed are commonly used by ethical hackers (professional penetration testers).

    I have listed some main tools which are used for hacking and penetration testing. You can install these tools on Termux:

    • Metasploit Framework: Metasploit is a very popular hacking tool, with this tool you can create, test, and run an exploit to exploit vulnerabilities on a system as an entry point to take over the system.
    • Wireshark: Wireshark is an application for analyzing packages in a network. This application is commonly used to analyze networks, troubleshooting networks, developing software and communication protocols as well as tools in teaching and learning. You can install the Wireshark application on your android mobile with Termux for hacking purposes, wherewith this tool you can get a lot of information on a network that you want to hack.
    • Nmap: Nmap is a network scanner application, Nmap is used to find computers and services on a computer network on how to send packets and analyze the responses received. Nmap provides a number of features for probing computer networks, including for finding hosts and services and detecting the operating system used. Come hurry up install Nmap on your Android cellphone if you want to scan the network and see who is on the same network as you or you want to get information from a host computer.
    • Other tools: there are hundreds or even thousands of tools that are made for specific purposes when hacking, so you can find them yourself on the internet hacking tool that suits your needs.

    Termux GUI

    Termux is a terminal emulator for accessing the Linux shell on your android, if you have a GUI based application then you will not be able to run the application/package in Termux directly and you will see a warning " TERMUX ERROR" Gtk-WARNING **: cannot open display:: 0.0 "

    This is because Termux does not find a display that will be used by the application, to overcome this you have to activate the GUI on Termux first.

    Backup and restore Termux

    After all this time you learn Termux and work with Termux on Android such as installing, trying, setting up various applications on Termux, of course, you don't want all your hard work to be lost instantly caused by a glitch/error on Termux applications or damage to your Android phone.

    Why should you Backup Termux

    To overcome and prevent this bad thing from happening, Termux has provided an application/package resticthat you can install and use to backup or restore the backup results.

    It is better if you put/save the backup file in external storage such as SD Card or OTG Flashdisk, because if you back up in internal memory then your cellphone is damaged, how do you get the backup file and try it.

    FIX storage permission denied Termux

    When learning Termux for the first time you will definitely encounter an error "storage permission denied" because Teermux does not have permission to access storage (internal and external storage).

    To overcome this, make sure your Termux has been given permission/permission to access SDCard / storage.

    If you have not run the command, Termux-setup-storage select allow/allow if a dialog popup appears.

    Or you can go to the settings menu on your android> application / apps> termux> permissions> slide / check on storage


    How to backup Termux

    To be able to backup Termux easily and safely you should use the restic application, if not you can install it first with the command pkg install restic


    • Create a directory to store backups on the Sdcard with the command mkdir -p /sdcard/termux-backups
    • Make the local directory that you have created a local repository with the command restic init -r /sdcard/termux-backups.

    In this process, you will be asked to create a password (after making it until you forget or your backup results cannot be used)

    • Start the backup process by typing the command restic backup -r /sdcard/termux-backups --tag termux $PREFIX.
    • Restic applies a single incremental backup method, so even if you back up many times the result there is only 1 backup file with a change in size according to the number of packages in your Termux.

    So it's not us worrying about full storage because of frequent backups. To do the backup again just type the command restic backup -r /sdcard/termux-backups --tag termux $PREFIX.

    How to restore Termux

    How to restore the following Termux assuming the backup file is located in "/ sdcard / termux-backups" if the backup location is different you can adjust the commands you will run.

    Make sure you have installed the Restic application first if you haven't installed it first by running the pkg install unstable-repolast command pkg install restic

    The process of restoring Termux is a bit complicated compared to how to backup Termux because we will delete the existing environment and replace it with a backup environment.

    • Copy the restic application to $ HOME, so that the restic can be run directly from the current working directory location (by default in $ HOME) by typing the command cp $PREFIX/bin/restic $HOME/restic and to make sure you are at home run the command cd ~.
    • Unset LD_PRELOAD (disable termux-exec) with the command unset LD_PRELOAD.
    • Delete the old $ PREFIX with the command rm -rf $PREFIX.
    • Restore Termux from the Termux-backups folder with the command $HOME/restic restore -r /sdcard/termux-backups --tag termux --target / latest.


    If everything is done properly you should have successfully restored the Termux from the backup file, just close the Termux application then run again and enjoy.


    Conclusion

    Termux is just an application that is used to access the Linux shell on your Android, Termux is not only used as a hacking tool, more than that it can be used for other purposes according to the user's computer expertise.

    it's true that with Termux hacking activities can be more flexible, if in the past hacking people had to bring a laptop that was installed Linux, now you can use the Android cellphone installed with Termux to do hacking activities.

    Because basically android is one variant of Linux, by installing the Termux application you can access the Linux android shell like you are using a laptop that has Linux installed.

    Sours: https://www.darkhackerworld.com/2020/05/what-is-termux-full-tutorial-with-complete-termux-commands.html


    376 377 378 379 380