orjail is under development, use at your own risk.
if you find a bug, please create an issue.
we've tried to deanonimize a program executed in torsocks environment and that was not so difficult as torsocks use LD_PRELOAD, so you only need to statically compile your stuff. as whonix is sometimes too much, the idea is to experiment with linux namespaces and learn by doing something usefull (at least for us).
- a linux kernel supporting namespaces (you have it since 2008)
- tor installed
- firejail (optional)
it creates a separated network namespace (using ip netns
) with its own network
interface and a link to the host interface with some iptables rules (on host)
that force traffic generated from inside orjail to only exit via tor (including dns).
inside orjail you'll be in another pid namespace (this way you cannot switch
namespace), and another mount namespace (we use this to show a different /etc/resolv.conf).
if you find a way to deanonimize a program running inside orjail (also a shell with root privileges) would be nice to share it with us
orjail
needs root permission to runorjail
runs your program as your userorjail
will launch a tor instance bound to orjail interface
$ sudo orjail ifconfig
out-orjail: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.200.1.2 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::6439:afff:febc:c9b5 prefixlen 64 scopeid 0x20<link>
ether 66:39:af:bc:c9:b5 txqueuelen 1000 (Ethernet)
RX packets 6847 bytes 7488116 (7.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6809 bytes 915088 (893.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
run an hidden service inside orjail (you'll find your address inside examples/hostname
)
sudo orjail -v -H 8080 -d examples "python -m SimpleHTTPServer 8080"
sudo orjail curl autistici.org > autistici.org
sudo orjail -u another_user curl autistici.org
sudo orjail dig wi7qkxyrdpu5cmvr.onion
sudo orjail curl wi7qkxyrdpu5cmvr.onion
sudo orjail firefox -P /tmp/tmpprofile
firefox has a flag that blocks .onion resolution by default, change it in about:config/network.dns.blockDotOnion.
running a browser inside orjail is not safe, please use Tor Browser instead
sudo orjail -s
sudo orjail -v pidgin
sudo orjail -k ls
sudo orjail -f thunderbird
Made with ❤️ by _TO*hacklab