During a pentest and I experienced a weird problem with connecting to the target machine which is behind a NAT network the scenario is basically,

they have a public ip :

and there are multiple machines within the network with IPs

those machines can connect to each other but cannot reach the internet basically, and through the webshell you cannot ping anything because it takes the ip of the private machine which is unreachable from the internet

So is there any way I can either use bind or reverse shell?

  • 1
    This might help: blackhat.com/presentations/bh-usa-08/Miller/… – paj28 Sep 14 '16 at 11:32
  • @Security Geek You mean the private IP's can't reach to Internet? You mean they are on air gapped gnetwork? – Sravan Sep 14 '16 at 11:50
  • Yup they can't , also they use linux os not windows – Security Geek Sep 14 '16 at 11:51
  • @Security Geek You need atleast one machine in that network to be able to reach Internet. Then you can use netcat pivoting. You can google that. – Sravan Sep 14 '16 at 12:03
  • there is no way to get a reverse w/o doing so ? there are a couple of machines in the network but it's kinda of difficult to interact with it within only a webshell – Security Geek Sep 14 '16 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.