Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Not-so-hidden service
# cat /usr/local/etc/tor/torrc
#ORPort [2001:19f0:ac00:aa2:5400:ff:fe1f:5204]:443
#ORPort 443
HiddenServiceDir /usr/local/etc/tor/hidden_service/
HiddenServicePort 80 [::1]:80
#Nickname BuiltAutomatically
#RelayBandwidthRate 1024 KB
#RelayBandwidthBurst 1024 KB
#ContactInfo IThinkIWasBuiltAutomatically
ExitPolicy reject *:*
ExitPolicy reject6 *:*
# fetch -o - http://[::1]:80/ | head
- 100% of 7189 B 25 MBps 00m00s
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title> Go Beyond </title>
<link href="http://go-beyond.org/index.xml" rel="alternate" type="application/rss+xml" title="Go Beyond" />
<link href="http://go-beyond.org/css/main.css" rel="stylesheet">
</head>
# curl --socks5-hostname 127.0.0.1:9050 http://xt2prchxu3o7pujs.onion/
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (2)
# curl --socks5-hostname 127.0.0.1:9050 http://google.com/ | head -n 3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 219 100 219 0 0 156 0 0:00:01 0:00:01 --:--:-- 156
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
# curl --socks5-hostname 127.0.0.1:9050 http://zqktlwi4fecvo6ri.onion/ | head -n 3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 177 100 177 0 0 40 0 0:00:04 0:00:04 --:--:-- 40
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.