August 17, 2017, 04:39:07 AM
Welcome, Guest. Please login or register.

If you are not part of the solution...You are part of the precipitate.

Author Topic: BackBox 4.0 Preview - Anonymous Mode  (Read 3584 times)

Offline TeamVega

  • Enthusiast
  • **
  • Posts: 82
  • Internets: +20/-0
BackBox 4.0 Preview - Anonymous Mode
« on: August 07, 2014, 12:19:32 PM »

Offline 0E 800

  • If something can corrupt you, you're corrupted already.
  • Top Hat Member
  • Elite
  • ********
  • Posts: 961
  • Internets: +154/-0
  • ??? ???????? ?s ?? ??c?c??-???
Re: BackBox 4.0 Preview - Anonymous Mode
« Reply #1 on: August 07, 2014, 02:49:38 PM »
That must be this:
https://github.com/raffaele-forte/backbox-anonymous

Going to try running it on another distro ;)

Thanks for sharing +1
"He who passes not his days in the realm of dreams is the slave of the days."

Offline TeamVega

  • Enthusiast
  • **
  • Posts: 82
  • Internets: +20/-0
Re: BackBox 4.0 Preview - Anonymous Mode
« Reply #2 on: August 08, 2014, 03:18:14 AM »
Though Raven could use it in the Red-Team OS

Offline r3k0hu

  • Top Hat Member
  • Professional
  • ********
  • Posts: 482
  • Internets: +48/-0
Re: BackBox 4.0 Preview - Anonymous Mode
« Reply #3 on: August 08, 2014, 08:17:16 AM »
Hey OE, did you get this to work on another Distro?

I'm trying on Kali but not having much luck - probably has a lot to do with me being an idiot :)
r3k0hu
-43.9515-176.561

Offline 0E 800

  • If something can corrupt you, you're corrupted already.
  • Top Hat Member
  • Elite
  • ********
  • Posts: 961
  • Internets: +154/-0
  • ??? ???????? ?s ?? ??c?c??-???
Re: BackBox 4.0 Preview - Anonymous Mode
« Reply #4 on: August 08, 2014, 10:03:38 AM »
I tested it on RTLE - but I am unsure if it works correctly because RTLE already has a TOR implementation and I cant be sure if they interfere with eachother.

Here is what I did to make it work. (please verify)

First I think you need to have Tor already installed. I dont think the script will install it for you. Though 'apt-get install tor' will undoubtedly install Tor, the rumor is that it wont be the most updated stable version. If you want the latest and greatest review: https://www.torproject.org/docs/debian.html.en  (read option 2)

Now that you have Tor installed;

Download backbox-anonymous file from here:
https://github.com/raffaele-forte/backbox-anonymous/archive/master.zip

Extract to downloads directory [extract here]

open/edit  \Downloads\backbox-anonymous-master\etc\default\backbox-anonymous
(i know the slashes are wrong, im writing this from windows )

Change REAL_HOSTNAME="backbox" to REAL_HOSTNAME="yourhostname"
Where 'yourhostname' is your host name [to find out, type: hostname in terminal]

Save the file and copy it to /etc/default/

Next, edit: \Downloads\backbox-anonymous-master\usr\sbin\anonymous

Change REAL_HOSTNAME="backbox" to REAL_HOSTNAME="yourhostname"
(same as above)

I dont think you really need to change anything else here but some keypoints you might want to be aware of is: around line 20;

Code: [Select]
# List, separated by spaces, of destinations that you do not want to be
# routed through Tor
NON_TOR="192.168.0.0/16 172.16.0.0/12"

^ I guess this is a whitelist for sites you DONT want Tor to route. (local intranet / special websites)

Line 29:
Code: [Select]
# List, separated by spaces, of process names that should be killed
TO_KILL="chrome dropbox firefox pidgin skype thunderbird xchat"

^ you want to kill any processes already open so that they can use tor functionality. you might want to add or remove from this list.

Code: [Select]
# List, separated by spaces, of BleachBit cleaners
BLEACHBIT_CLEANERS="bash.history system.cache system.clipboard system.custom system.recent_documents system.rotated_logs system.tmp system.trash"
^ again, you can or remove other bleachbit cleaners.

When you are done making changes, save and copy to /usr/sbin

Now run it. Open terminal and type:

Code: [Select]
anonoymous start  (you may need to chmod +x /usr/sbin/anonymous if it complains)

So when you run it the first time you will get this message:
Code: [Select]
Please add the following to your '/etc/tor/torrc' and restart service:
VirtualAddrNetwork 10.192.0.0/10
TransPort 9040
DNSPort 53
AutomapHostsOnResolve 1

So edit /etc/tor/torrc and add that to the bottom. Save and exit.

Run 'anonymous start' again and it will promt you just like it shows on the video.

Follow the promts, when done, try verifying if you are able to surf the web and that tor is working. (if it does, well then awesome!)

The next step - create a desktop icon:
[nano/leafpad/gedit] /usr/share/applications/anonymous.desktop
Copy / Paste:
Code: [Select]
[Desktop Entry]
Encoding=UTF-8
Name=Anonymous Start
Comment= start backbox-anonymous script
Exec=sh -c "anonymous start; echo; bash;"
Terminal=true
Type=Application
Icon=/usr/share/icons/up.png
Categories=GNOME;GTK;System;

Change icon=/usr/share/icons/up.png to whatever icon you want.

Save and type in terminal:
Code: [Select]
cp /usr/share/applications/anonymous.desktop /root/Desktop/
To make a Anoymous Stop desktop icon:
[nano/leafpad/gedit] /usr/share/applications/anon-stop.desktop
Copy / Paste:
Code: [Select]
[Desktop Entry]
Encoding=UTF-8
Name=Anonymous Stop
Comment= stop backbox-anonymous script
Exec=sh -c "anonymous stop; echo; bash;"
Terminal=true
Type=Application
Icon=/usr/share/icons/up.png
Categories=GNOME;GTK;System;
Change icon=/usr/share/icons/up.png to whatever icon you want.

Save and type in terminal:
Code: [Select]
cp /usr/share/applications/anon-stop.desktop /root/Desktop/
Test out your desktop icons or make a menu launcher or modify the script so its automatic and doesnt prompt you for y or n - you can then make it a upstart job and have it run when the computer boots up.

Now here is what I came up against and why I cant be sure if it works or not or if its something related specifically to the distro I tested it on.

When I run the script, it disconnects my wifi to change mac addy and bla bla, but then I get a notification that wlan0 is connected to my ap but network manager shows that im disconnected. When I launch web-browser I get stuck on 'resolving host'... so i dunno if its a tor configuration error or if I need to change a IP somewhere or if it was just the distro.

Please share your results. Good luck.
"He who passes not his days in the realm of dreams is the slave of the days."

Offline taong_grasa13

  • Prospect
  • *
  • Posts: 15
  • Internets: +5/-0
Re: BackBox 4.0 Preview - Anonymous Mode
« Reply #5 on: August 09, 2014, 03:07:26 AM »
The script did not work for my kali at first.  But after scrutinizing things, i tried to edit the script.  I replaced the line TOR_UID="debian-tor" with TOR_UID="root".  And it worked.

In case network manager got stucked, i think it just needs to be restarted.