{"id":20796771,"url":"https://github.com/cpscript/termux-hotspot","last_synced_at":"2025-04-09T19:23:43.858Z","repository":{"id":225208060,"uuid":"765351683","full_name":"CPScript/Termux-Hotspot","owner":"CPScript","description":"Make a Hotspot using Termux  (Documentation \u0026 Software)","archived":false,"fork":false,"pushed_at":"2024-03-06T18:46:00.000Z","size":76,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T07:01:57.018Z","etag":null,"topics":["bash","download","hacking","hotspot","html","malware","phishing","portal","prompt","python","root","server","web"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CPScript.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-29T18:52:04.000Z","updated_at":"2025-03-14T19:52:18.000Z","dependencies_parsed_at":"2024-11-17T16:35:33.575Z","dependency_job_id":"7b70820a-888e-45ed-9333-8e5d3aea3517","html_url":"https://github.com/CPScript/Termux-Hotspot","commit_stats":null,"previous_names":["cpscript/termux-hotspot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CPScript%2FTermux-Hotspot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CPScript%2FTermux-Hotspot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CPScript%2FTermux-Hotspot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CPScript%2FTermux-Hotspot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CPScript","download_url":"https://codeload.github.com/CPScript/Termux-Hotspot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248096091,"owners_count":21046975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","download","hacking","hotspot","html","malware","phishing","portal","prompt","python","root","server","web"],"created_at":"2024-11-17T16:28:58.861Z","updated_at":"2025-04-09T19:23:43.807Z","avatar_url":"https://github.com/CPScript.png","language":"Shell","readme":"\u003e WARNING! This information can be used for phishing attacks, phone camera hacking, and malicious `apk` file downloads, please be cautious and don't download anything if asked to by a webpage when you try to connect to a internet connection!\n\n# SOFTWARE\n[Click me! To go to folder](https://github.com/CPScript/Termux-Hotspot/tree/main/software)\n\n# DO IT YOURSELF!\n\u003e ABOUT: Information on how to `host a hotspot using a network connection from a router/data for free using Termux`\n\n## Step 1: Install Termux\nFirst, ensure you have Termux installed on your Android device. If you don't have it yet, you can download it from the Google Play Store or F-Droid.\n\n## Step 2: Grant Termux Permissions\nFor Termux to create a hotspot, it needs certain permissions. Open Termux and type the following command to request root access:\n```\nsu\n``` \nYou might need to grant root permissions to Termux in your device's settings. (you will need to install the termux root repo!)\n\n## Step 3: Check for Wi-Fi Adapter\nBefore proceeding, ensure your device has a Wi-Fi adapter that supports AP (Access Point) mode. You can check this by running:\n```\nip link\n``` \nLook for a device named `wlan0` or similar, which indicates a Wi-Fi adapter.\n\n## Step 4: Create the Hotspot\nTo create a hotspot, you'll use the `hostapd` tool. First, you need to install it. Since Termux doesn't have `hostapd` in its repositories, you'll need to download and compile it from source. This process can be complex and requires a good understanding of Linux and compilation processes.\n\nAlternatively, you can use a precompiled binary if available. However, finding and using such binaries can pose security risks, especially if they're not from a trusted source.\n\n## Step 5: Configure the Hotspot\nAfter installing `hostapd`, you need to configure it. Create a configuration file, for example, `hostapd.conf`, with the following content:\n\n```conf\ninterface=wlan0\ndriver=nl80211\nssid=Your_Hotspot_Name            \u003c EDIT | numbers and letters only!\nhw_mode=g\nchannel=7\nwmm_enabled=0\nmacaddr_acl=0\nauth_algs=1\nignore_broadcast_ssid=0\nwpa=2\nwpa_passphrase=Your_Password      \u003c EDIT | numbers and letters only!\nwpa_key_mgmt=WPA-PSK\nwpa_pairwise=TKIP\nrsn_pairwise=CCMP\n```\n\nReplace `Your_Hotspot_Name` with the name you want for your hotspot and `Your_Password` with a strong password.\n\n## Step 6: Start the Hotspot\nWith the configuration file in place, you can start the hotspot by running:\n```\nhostapd hostapd.conf\n```\nThis command starts the hotspot with the settings defined in `hostapd.conf`.\n\n\n## Step 7: Enable IP Forwarding\nTo allow devices connected to your hotspot to access the internet, you need to enable IP forwarding. Run:\n```\necho 1 \u003e /proc/sys/net/ipv4/ip_forward\n```\n\n## Step 8: Configure NAT\nTo route traffic from the hotspot to the internet, you need to set up NAT (Network Address Translation). Assuming your device's internet connection is on `eth0`, run:\n```\niptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE\n```\n\n## Step 9: DHCP Server\nTo assign IP addresses to devices connecting to your hotspot, you can use a `DHCP` server. This step is optional but recommended for a fully functional hotspot.\n\n### Security Considerations\nCreating a hotspot exposes your device to potential security risks, especially if it's connected to the internet. Ensure you have strong security measures in place, such as using `WPA2` for encryption and regularly updating your hotspot's software.\n\n---\n\n### Contibutions\n\u003e If you would like to contribute to better create a pull request with your changes\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpscript%2Ftermux-hotspot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpscript%2Ftermux-hotspot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpscript%2Ftermux-hotspot/lists"}