onionsweep

package module
v0.0.0-...-6f56bb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 10 Imported by: 0

README

onionsweep

Onionsweep

A fast way to check for live .onion URLs.

Installation

After cloning this repo, run

make

onionsweep will be built in the current directory.

Usage (CLI)

Pass a newline separated list of .onion URLs into onionsweep. For example,

cat onions.txt | ./onionsweep -workers 3 -torlistenaddr 127.0.0.1:9050 -timeout 10 > results.txt

Results tab separated list of URLs, status codes, live/dead, and error messages (if any).

http://l7....onion  403 live
http://vx....onion  403 live
http://me....onion  0   dead   Get "http://me....onion": socks connect tcp 127.0.0.1:9050->me....onion:80: unknown error host unreachable
http://wc....onion  403 live
http://ne....onion  200 live
http://to....onion  200 live
http://to....onion  200 live
Useful CLI Flags
Usage of onionsweep:
  -timeout int
        Timeout in seconds (default 10)
  -torListenAddr string
        Tor listen address (default "127.0.0.1:9050")
  -workers int
        Number of workers to use (default 10)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(onionSweepConfig *OnionSweepConfig)

Types

type OnionSweep

type OnionSweep struct {
	Config  *OnionSweepConfig
	Jobs    chan string
	Results chan string
	Client  *http.Client
	Wg      sync.WaitGroup
}

type OnionSweepConfig

type OnionSweepConfig struct {
	Workers          int
	TimeOutInSeconds int
	TorListenAddr    string
}

type Worker

type Worker struct {
	ID         int
	OnionSweep *OnionSweep
}

func NewWorker

func NewWorker(id int, onionSweep *OnionSweep) *Worker

func (*Worker) Run

func (w *Worker) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL