Ok this is a basic tutorial. (Needs TOR to run.)
Now if you don't know already proxychains allows tunneling TCP or DNS trough proxies. It supports HTTP, socks4 and socks5 proxy servers that can be chained together.
Proxychains is used to:
-hide your ip
-run programs trough proxy servers
-acces your home network from the outside trought reverse proxy.
Ok now Backtrack already has it installed so we are going to skip that part and go the the configuration.
To configure Proxychains just open a terminal and type in : "nano /etc/proxychains.conf" as you can see we have some features about how the program chains proxies:
-dynamic_chain: takes the proxies in the order you added them and skips dead proxies.
-random_chain: takes the proxies from the list in a random order.
-strict_chain: takes the proxies in the order you added them like the dynamic_chain except this chaining option does not skip dead proxies.
Ok after you pick up the chain option you need to add proxies, if you scrool down proxychains.conf you will find something like this :
This tells you how the proxies should be added to the list, you can separate type from host and the rest just by adding a black space or by hitting the "tab" key.Code:# ProxyList format # type host port [user pass] # (values separated by 'tab' or 'blank')
Than you will see the proxylist where we can add our proxies:
Ok after the last line "socks4 127.0.0.1 9050" (do not DELETE that!) we add our proxies. We can find those with a simple search on google.Code:[ProxyList] # add proxy here ... # meanwile # defaults set to "tor" socks4 127.0.0.1 9050
After we finished our configuration, we save the file. Now it's time to run the program.
(this command is used to resolve host names via proxy or tor)Code:proxyresolv targethost.com
(this command tells the proxychains program that after he passed trough the proxies you added in the proxychains.conf file to connect to the "site.com" via firefox)Code:proxychains firefox site.com
(same as previous definition, only this time it connects trought telnet to the target)Code:proxychains telnet target
Well as I specified at the beginning it is a basic tutorial. Hope you like it!
P.S. Sorry if I didn't type all the words correct, I was in a hurry.
Last edited by sickness; 08-14-2010 at 01:12 PM.
Just to sort of echo what Archangel.Ameal has said, there is no need or reason to be in a hurry when writing a "How To". I do appreciate the time you have taken to research and document these subjects however when writing a tutorial you need to make sure of a few things:
1. Everything is spelled right
2. Everything works
3. You did not leave out any steps (no matter how dumb you think they are)
4. All code is properly formatted so lazy people can copy and paste
5. Everything works
When we write tutorials they are copied and hot linked all over the internet and sometimes these little pieces of writing are our "reputation" so its important to be as thorough, clear and proffesional as possible.
I second Archangel.Amael's advice about the code boxes. It will make the tutorial easier to read and give it a more organized aspect.
Last edited by Snayler; 02-26-2010 at 06:31 PM.
Is an SSH Chain possible with this procedure?
I don't think so, from what I have read it supports socks4, socks5, http so I'm not sure about ssh.
Still not underestimating the power...
There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.
nice tut.
Easy to read, easy to understand. Good for introduction to tunneling w bt4
Last edited by Archangel-Amael; 02-23-2010 at 03:17 PM.
Dear all,
thank you,
can you make more details because i don't understand.
make it with live example.
best regards,
Personally i would never use ProxyCommand, if you take a look at how it works youll notice that its just using netcat to get the job done, this can be usefull in some situations, but for the most part i wouldn't trust it, especially if your using keys etc etc.
As for tunneling via proxychains there are a few things to note.
#1 being that if your using a socks5 you dont need to resolve, as proxychains will do a remote resolve for you.
#2 being if i have a remote host running all i need to do is this "ssh -D 9000 me@whatever.com" .. then i change the proxychains.conf to "socks5 127.0.0.1 9000" .. and then i can do this "proxychains telnet google.com" .. or even........ "proxychains ssh -w 0:0 me@nexthost.com" and all will work fine. "-w 0:0 is vpn fyi"
#3 being that if you make a new directory and copy the proxychains.conf to it whatever you change it to will override the /etc/proxychains.conf which is VERY useful if you intend to chain a bunch of things but dont want to write it into your config.
Hope that helped a little.