Page 1 of 1
Need some help with setting up and using virtual machines with msfvenom
Posted: 16. Dec 2020, 04:12
by johnjay
Hey folks. Need some help. I'm using 2 virtual machines, one with kali and one with OWASP, im on the part about os command injection (php/meterpreter/reverse_tcp) and i can inject the php file on the server and set msfvenom to listen, but when inject the command to run the php file on owasp it doesn't connect to my kali VM, the only way i can get each VM to have a different IP is using host only adapter on both. i tried adding another host only adapter network but that didnt work either. I'm new at this and pretty much teaching myself by reading/trial/error. I've been in prison most of my life and I haven't hacked anything in almost 20 years so ALL this is new to me. there's so much information and so much i have missed. the technology is incredible. this is the first time i've had to ask for help lol basically I need both my virtual box machines to be able to connect to each other. How would I do this? i'm following some video tutorials from freecourselab.me about ethical hacking from beginner to advanced. I'm on #9 system hacking/#5 getting meterpreter with command injection if any of that helps. this probably sounds like a stupid question to those of you who have been at this for a while. But like I said, i've been gone a long time.
Re: Need some help with setting up and using virtual machines with msfvenom
Posted: 16. Dec 2020, 04:54
by scottgus1
johnjay wrote:i've been gone a long time.
Welcome back!
Virtualbox Networks: In Pictures will show what network types are available. Draw the network you need to make, and see which type comes closest.
If you have further questions, please feel free to let us know.
johnjay wrote:I need both my virtual box machines to be able to connect to each other.
If you don't need internet or access to the outside world, Internal might do it, or Host Only.
Re: Need some help with setting up and using virtual machines with msfvenom
Posted: 16. Dec 2020, 04:58
by johnjay
well i set both on a host only network on the same adapter. They both have different ip addresses. But I still cant get the OWASP machine to reverse tcp to the kali machine.
Re: Need some help with setting up and using virtual machines with msfvenom
Posted: 16. Dec 2020, 05:17
by johnjay
thanks for the replies though, much appreciated.
Re: Need some help with setting up and using virtual machines with msfvenom
Posted: 17. Dec 2020, 04:41
by scottgus1
Lets see if we can figure out the layout of the network.
For each VM, please do these two things:
1. Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab.
2. Also, please run 'ifconfig' or 'ip address' inside the VM, and post the output of the command. Label which command output comes from which VM.
For the Windows host PC, post these command outputs :
cd "C:\Program Files\Oracle\Virtualbox"
vboxmanage list hostonlyifs
ipconfig /all