|
|||||||
| BackTrack 4 Howto Tutorials and Howtos about BackTrack 4 (NOT for requesting tutorials or how to do anything) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Ok wtf is a gender-bender you ask, very simple really. Think of it like so .. you have 3 boxes. Box1 is you, Box2-server is any kind of box with a Internet IP but for this lets say its a webserver that is duel homed "having 2 nic cards" Box3 is a box thats behind the firewall that Box2-server is connected to. Think of it like so...
## YOU ## ------------## SERVER ##------------## INTERNAL## 11.11.11.11 --------> 222.222.222.222----------> 192.168.11.111 ----------------------------## FIREWALL ##--------------------------------- Get the picture? Now lets say for a moment that the server has a firewall on both sides, meaning we cant open a port whatsoever. However we have already exploited the Apache server and gained ourself root access. With a little scanning we found out that the internal host is running a unpatched smb share. So how are we going to hit it? Well one would think you could set up a netcat pipe and relay all the traffic, but remember in the post above i told you netcat can only be pipped one way ---> We could solve this by doing something like so. You Quote:
Server Quote:
Pretty cool no? .. But there is also another way to do it if you have ncat thats even shorter than that. You Quote:
Server Quote:
Now while all of that is super cool and all, and we can also use ncat's --ssl function, what happens if these are not internet IP's we are dealing with, what if we are just hopping around in a lan environment? What im trying to get at is that its not very secure. Thats why i found the socat method, and actually once you get the hang of how it works "man page NOW..subliminal" its actually fairly easy and we have allot more options. To Be Continued ...
__________________
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari. Last edited by vvpalin; 10-29-2009 at 10:43 AM. |
|
||||
|
Quote:
GREAT job you just clarified so much in such a short time keep up the good work.
__________________
One day your life will flash before your eyes. Make sure its worth watching. Last edited by Isohump; 10-29-2009 at 10:58 AM. |
|
||||
|
Good writeups so far
![]() Hopefully by pointing out that socat trumps ncat in ease and simplicity: Code:
socat TCP-LISTEN:8080,fork TCP:192.168.1.42:3389 You can also do all of this with SSH if you have a host that accepts tcp forwarding - my personal favourite is using ssh -R and keys to tunnel services *back* from behind the firewall so I can access them locally without having to be able to get to an SSH server on the inside.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Quote:
__________________
Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|