Jump to content

reverse_tcp on remote network?


smurfexe

Recommended Posts

Posted

hello, ive done reverse_tcps on my local network alot but is there a way to do it from a diffrent pc? lets say my friend what do i need to get a connection? and how does it work with private ip and public do i use public and tell it to route to my pc?

 

Posted

In a reverse connection, the target is connecting back to you so the have to be able to reach your listener. That means you need to set up whatever routing and NAT is required to make this happen.

Posted

so it the same as a local minecraft server i need to open my ports so they connect to me? but do they need to disable the firewall then?

 

Posted

It depends what their firewall is doing. If it allows all outbound connections then they don't need to disable anything, if it blocks things then they might need to.

Posted

okay so to set this up i would open a port on my router 8888 then make sure everything going to that port needs to be directed to my private ip. then LHOST is my public ip and LPORT would be 8888 then? right? or am i missing something

 

Posted

That sounds right.

It assumes your ISP isn't blocking things and gives you a public facing IP.

Posted

If you have problems, use netcat to set up a listener on your end and see if the other computer can connect to it with netcat. If they can't then routing is messed up.

Posted

hello so i tried to do it but when it runs i dont get a connection. when i use metasploit and do run is say handler failed to bind to (public ip):6969 and when i use my private ip there are no errors but it doesnt make a connection

 

Posted

If netcat can't connect then you've got something messed up in either NAT or routing.

Metasploit won't bind to your public IP if that isn't an IP on your local machine as it doesn't know which interface to bind to, you bind it to the IP that the NAT rule comes in to.

Forget Metasploit for now, get it working with netcat, then move back to Metasploit

Posted

so i got it to work with armatage ip i used was 0.0.0.0:6969 idk how i got the connection but it worked. im pretty sure my payload was bad since i edited it myslef

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...