murder_face Posted October 11, 2012 Share Posted October 11, 2012 I have been hunting on google for awhile and can't seem to find an answer. Before I type 'sudo msfconsole' I disable my wired ethernet, and connect to the network I want via my wireless. I use %L in my .rc script and my prompt shows the network that I am expecting. I then reconnect my wired connection. After that metasploit falls back to the wired network but still shows the IP for the wireless. Is there some way that I can force metasploit to only use my wireless connection? Quote Link to comment Share on other sites More sharing options...
bobbyb1980 Posted October 12, 2012 Share Posted October 12, 2012 In whatever exploit your using, typing '0.0.0.0' as RHOST/LHOST will run it on all interfaces. Enter the IP of your wireless adaptor to have it run only on that interface. Quote Link to comment Share on other sites More sharing options...
murder_face Posted October 12, 2012 Author Share Posted October 12, 2012 (edited) Awesome. Thank you. So I'm guessing that the 'set PROMPT %L' is kind of pointless to use if I am switching between different networks and interfaces constantly? Edited October 12, 2012 by murder_face Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.