1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Using Termux to have your own free VPS (technical)

Discussion in 'BlackHat Lounge' started by Hints404, Aug 4, 2019.

  1. Hints404

    Hints404 Junior Member

    Apr 4, 2018
    Likes Received:
    I use Android phones and love them. With any new Android phone the first thing I do is root it. Rooting simply means I become the administrator of the phone's processes instead of the policies set there.

    If you use Windows, you know sometimes when you want to Install or launch a software, Windows will prompt you to run as admin, admin is the highest level of authority in the OS.

    If you use Unix/Linux based system. You already know what i'm talking about.

    After rooting your phone. You can do a lot of things with it. You can spoof your GPS to always appear in a particular country so you can do some registration that would not normally be possible, you can change your phone DNS to get better internet speed, you can remove all the bloatware (apps installed on the phone by the manufacturer) so your Android is lighter. There is so much you can do.

    What i always do is install Termux. This is simply a command line based app that interfaces directly with your Android phone to give you better controls and optimization. I do not need to describe it a lot because you need to be rooted first to enjoy all it has to offer.

    I can't provide a specific guide as phones are different however I can drop tips .

    1. Root your phone

    2. Ensure your Android is at least 5.0

    3. If your Android is below 5.0, search for custom ROMs, most will upgrade your OS but have a few tradeoffs (battery problems, call, audio or overheating problems)

    4. You need to understand some basics of Linux env. This is crucial as there is no community to hold your hand. For example in Linux we have cron, which allows you to schedule tasks. Termux doesn't have a cron that autostarts, so I had to write a script to do that for me.

    5. Termux will give you API access to your phone. You can write scripts that launch Instagram and take screenshots, or monitor time and send emails. Anything is possible.

    6. You can build and configure bots to work on Termux. Examples of bots I have are instabot, instabot.py, Twitter follower bot, I'm also building a bot that fetches me the front pages of major news sites I visit.

    7. Using python, you can setup a server that will host your pages. When I'm building mobile sites, I simple spin a simple server with python and navigate to my phone browser to view my WIP. If your electricity and internet access is good you can simply build sites that you can host on your phones (requires knowledge of proxy and domain handling)