Need some help with setting up and using virtual machines with msfvenom
Need some help with setting up and using virtual machines with msfvenom
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.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Need some help with setting up and using virtual machines with msfvenom
Welcome back!johnjay wrote:i've been gone a long time.
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.
If you don't need internet or access to the outside world, Internal might do it, or Host Only.johnjay wrote:I need both my virtual box machines to be able to connect to each other.
Re: Need some help with setting up and using virtual machines with msfvenom
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
thanks for the replies though, much appreciated.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Need some help with setting up and using virtual machines with msfvenom
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
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