Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm pen-testing a Windows 7 machine, and have access to a limited remote shell.

I can see there's a vulnerable SMB service running on the machine's loopback, but it's not available externally.

Is there any way I can run a metasploit exploit over the session I already have, to access this service?


share|improve this question
up vote 1 down vote accepted

Yes you can. type in metasploit use post/windows/manage/autoroute then set SESSION 1 (1 is the session that you have meterpreter on) SET subnet (your pen-test subnet) type run check if it works with route print.This makes the traffic goes internally .

If all it's ok, you can use your session of "Victim 1" to send commands internally to "Victim 2" the packets would be like this: You > Victim 1 > Victim 2

Remember to set LHOST in next exploit to be your Victim 1 Address.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.