Host Onion services in dark web using Heroku CLI

Overview

Tor Onion Service On Heroku

image image

FOSSA Status Version Licence issues stars

Host Tor v3 Hidden Service in dark web using heroku

Try my another repository built with php https://github.com/sumithemmadi/tor-hidden-service-on-heroku/

Ouick Deploy to heroku

  • 1 . To host your website in dark web with one click and run server on heroku.

  • 2 . Click below Deploy to Heroku button.

    Deploy

    Note : Deploy with heroku Deploy button will host a demo webpage, you can not use your html file.To host your own webpage goto Manually Deploy to Heroku Session

  • 3 . You will be navigated to Heroku Dashboard. Enter app name in App name field and click Deploy app button.

  • 4 . Now your app is accessible over Tor.

    Note :- Since,heroku has an ephemerals file system that is destroyed every time when your app restart's.so your application will generate a new .onion link everytime when your app restarts.To use your custom permanent onion link go down to Manually Deploy to Heroku.

  • 5 . To know you .onion address click here

Manually Deploy to Heroku

Prerequisites

image image image image

  • 1 . nodejs
  • 2 . tor - v3
  • 3 . php
  • 4 . git
  • 5 . Heroku CLI

Install Heroku

image

heroku --version
  • 3 . Connect the Heroku CLI to your account by writing the following command in your terminal and follow the instructions on the command line.
heroku login

Quick Start

  • 1 . Create a new project, for example in my case Project and go to that directory.

  • 2 . Clone this repository with below command

git clone https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku.git
cd Tor-Onion-Service-On-Heroku
  • 3 . Create a heroku application
heroku apps:create App-Name
  • heroku apps:create App-Name this command creates the application as well as a git remote, that you can use to push your code to Heroku.

    Note: replace App-Name with any other name.

 $ heroku apps:create tor-onion
 Creating ⬢ tor-onion... done
 https://tor-onion.herokuapp.com/ | https://git.heroku.com/tor-onion.git
  • 4 . Now add three buildpacks heroku/nodejs ,heroku/php and heroku-community/apt to you application.

    • heroku/nodejs
heroku buildpacks:set heroku/nodejs
    • heroku-community/apt
heroku buildpacks:add --index 1 heroku-community/apt
    • heroku/php
heroku buildpacks:set heroku/php
  • Sometimes adding 2nd buildpack will remove 1st one (or) adding 3rd buildpack will remove 2nd one ,try adding all three buildpacks again and again one by one untill you see three buildpacks added as shown in below picture.

image

  • 6 . Copy your website file's to the folder site
    eg :- index.html,index.php [default=index.html]

  • 7 . Copy the following files to temp/var/lib/tor/hidden_service dir

    • hostname
    • hs_ed25519_public_key
    • hs_ed25519_secret_key

    If you don't know where these files stored refer to https://2019.www.torproject.org/docs/tor-onion-service

  • 8 . Deploy your changes to heroku

git add .
git commit -am "Updated"
git push heroku
  • Now your app is accessible over Tor

To know your .onion address

  • Run below command to know your onion address.
heroku run cat temp/var/lib/tor/hidden_service/hostname

Image

Get onion link on heroku app

  • If you still can't find your .onion link.
    Open your heroku app
    https://App-Name.herokuapp.com and click on show my .onion link.

    Note : Due to herokus policies, a single web dyno is sent to sleep after 30 minutes of inactivity. This means if your application has not served any requests for 30 minutes, it is forced to sleep by heroku and has to wake up prior to serve a new request, which easily can take up to 30–40 seconds. Generally free dynos will sleep (shut down) after 30 minutes of inactivity. This is actually a feature to avoid using up your free dyno hours. To prevent Heroku app from idling add New Relic add-on. It has an availability monitor feature that will ping your site twice per minute, thus preventing the dyno from idling (Or) add Uptimerobot it is free and offers 5 min interval site checking.

  • Here is my app https://tor-onion.herokuapp.com/

License

FOSSA Status

You might also like...
PHP CLI project to get an appointment from https://vacunacovid.catsalut.gencat.ca

covid_vaccine_bcn PHP CLI project to get an appointment from https://citavacunacovid19.catsalut.gencat.cat/Vacunacio_Covid/Vacunacio/VacunacioCovidRes

PHP CLI to add latest release notes to a CHANGELOG

changelog-updater A PHP CLI to update a CHANGELOG following the "Keep a Changelog" format with the latest release notes. Want to automate the process

WP-CLI Trait Package Command

WP-CLI Trait Package Command Generate plugin or php model files e.g. post-type or taxonomy for WP-Trait Package in Develop WordPress Plugin. Installat

A CLI program that helps you check your endpoints by requesting the given servers and send a report message in any supported channel like Telegram

API Monitor A CLI program that help you check your endpoints by requesting the given servers and send a report message in any supported channel ( Tele

Termage provides a fluent and incredibly powerful object-oriented interface for customizing CLI output text color, background, formatting, theming and more.
Termage provides a fluent and incredibly powerful object-oriented interface for customizing CLI output text color, background, formatting, theming and more.

Termage provides a fluent and incredibly powerful object-oriented interface for customizing CLI output text color, background, formatting, theming and

A CLI starter pack for developing a package with Laravel 5

Laravel PackMe Laravel PackMe is a project starter pack which combine all basic stuff (src, tests) in order to develop a package for Laravel 5.*. It t

PHPFusion CLI

PHPFusion CLI Installation Source Add path\to\PF-CLI\bin to your system PATH .phar file Download pf.phar Check the Phar file to verify that it's worki

Drupal.org Git CLI
Drupal.org Git CLI

doGit Drupal.org + Git CLI application. doGit assists in making the transition to merge requests, and general Git operations, easier for Drupal develo

A Magento 2 module that adds a CLI bin/magento cms:dump to dump all CMS pages and CMS blocks to a folder var/cms-output.

A Magento 2 module that adds a CLI bin/magento cms:dump to dump all CMS pages and CMS blocks to a folder var/cms-output.

Comments
Releases(v1.0.3)
  • v1.0.3(Nov 10, 2021)

  • v1.0.2(Oct 31, 2021)

    Tor Onion Service On Heroku - v1.0.2

    What's Changed

    • Add license scan report and status by @fossabot in https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku/pull/2

    New Contributors

    • @fossabot made their first contribution in https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku/pull/2

    Full Changelog: https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku/compare/v1.0.0...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Oct 3, 2021)

Owner
Emmadi Sumith Kumar
Emmadi Sumith Kumar
unofficial cli built using php which can be used to upload and download files from anonfiles.com

Anonfiles CLI Table of Contents Introduction Features Screenshots Installation Contributing License Introduction Anon Files CLI can upload and downloa

Albin Varghese 8 Nov 21, 2022
Image Optimize Command - Easily optimize images using WP CLI

Image Optimize Command is a WP CLI wrapper for spatie/image-optimizer which optimize gif, jpeg, jpg, png, svg, webp images by running them through a chain of various image optimization tools.

Typist Tech Limited 157 Dec 13, 2022
🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.

Contents Minimum Requirements Installation Upgrading Usage Quick Setup Examples API Appearance Menu Title Colour Width Padding Margin Borders Exit But

PHP School 1.9k Dec 28, 2022
An Elegant CLI Library for PHP

Commando An Elegant PHP CLI Library Commando is a PHP command line interface library that beautifies and simplifies writing PHP scripts intended for c

Nate Good 793 Dec 25, 2022
Cilex a lightweight framework for creating PHP CLI scripts inspired by Silex

Cilex, a simple Command Line Interface framework Cilex is a simple command line application framework to develop simple tools based on Symfony2 compon

null 624 Dec 6, 2022
PHP Version Manager for the CLI on Windows

This package has a much more niche use case than nvm does. When developing on Windows and using the integrated terminal, it's quite difficult to get those terminals to actually listen to PATH changes.

Harry Bayliss 49 Dec 19, 2022
Library for creating CLI commands or applications

Console Motivation: this library purpose is to provide a lighter and more robust API for console commands and/or applications to symfony/console. It c

Théo FIDRY 16 Dec 28, 2022
PHP CLI tool which allows publishing zipped MODX extra to modstore.pro marketplace

MODX Extra Publisher PHP CLI tool which allows publishing zipped MODX extra to modstore.pro marketplace. Installation global? local? To install packag

Ivan Klimchuk 3 Aug 6, 2021
A handy set of Stringable mixins for CLI text.

Laravel Colorize A mixin for Laravel's Stringable to easily apply colors and styles to CLI text. Installation You can install the package via Composer

James Brooks 47 Oct 30, 2022