โ— PHANTOM
๐Ÿ‡ฎ๐Ÿ‡ณ IN
โœ•
Skip to content

anubhavanonymous/HostOnion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


๐Ÿง… HostOnion v2.5

  • HostOnion Enables users to Host A Hidden Service on TOR with an Onion Address !
  • This tool uses your device as a server and hosts your PHP webpage on the Deepweb temporarily with a unique onion URL

๐Ÿš€ About HostOnion

HostOnion allows you to instantly host your website as a Tor Hidden Service directly from your device.

It automatically:

  • Starts a local PHP server
  • Configures Tor hidden service
  • Generates a unique .onion address
  • Routes traffic securely through Tor network

Your device becomes a temporary Deep Web server while the script is running.


๐Ÿ”„ What Changed

๐Ÿ Current Version (v2.5)

  • Fully rewritten in Python 3
  • Cleaner process handling
  • Custom site folder support
  • Full PHP support (not just static sites)
  • Optional custom port selection (--port)
  • Auto free-port detection
  • Easy onion reset (--new)
  • More stable and lightweight
  • Works on Termux + Linux

๐Ÿ“ฆ Requirements

  • Python 3
  • PHP
  • Tor

Install on Termux

pkg install python php tor

โš™๏ธ Installation

git clone https://github.com/anubhavanonymous/HostOnion
cd HostOnion

๐Ÿ–ฅ Usage

Basic Usage

python3 hostonion.py your_site_folder

I've added an example template

python3 hostonion.py examplesite

Custom Port

python3 hostonion.py your_site_folder --port 8080

Generate New Onion Address

python3 hostonion.py your_site_folder --new

Press CTRL+C to stop the service

๐Ÿ”น Example Output

๐Ÿง… HostOnion v2.5 - PHP + CLI + Reset

Author: Anubhav Kashyap                                                                 GitHub: github.com/anubhavanonymous | Telegram: @anubhavanonymous

[+] Starting PHP server on port 9000 (folder: example_site)...
[+] Starting Tor hidden service...

[+] Onion URL: http://xxxxxxxxxxxxxxxx.onion
[+] PHP running on port 9000
[+] Press CTRL+C to stop.

๐Ÿง  How It Works

  1. Starts PHP built-in server on localhost

  2. Creates Tor configuration (torrc)

  3. Generates hidden service directory

  4. Launches Tor

  5. Waits for onion address

  6. Displays your unique . onion URL

Once stopped, the hidden service becomes unavailable.

โš ๏ธ Disclaimer

This tool is for educational purposes only ! I will not be responsible for any misuse

๐Ÿ“Œ Note

โ€ข Originally made for Termux users.

โ€ข Now works on Termux, Linux, and other POSIX systems.

โ€ข Designed to run even on low-end Android devices.

โ€ข Service runs temporarily while script is active

๐Ÿ‘จโ€๐Ÿ’ป Author

Anubhav Kashyap

โ€ข Github : https://github.com/anubhavanonymous

โ€ข Telegram : https://t.me/anubhavanonymous