Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research: Running vulnhub boxes in the cloud #3

Open
iokiwi opened this issue Mar 16, 2020 · 2 comments
Open

Research: Running vulnhub boxes in the cloud #3

iokiwi opened this issue Mar 16, 2020 · 2 comments
Labels
question Further information is requested

Comments

@iokiwi
Copy link
Member

iokiwi commented Mar 16, 2020

Vulnhub boxes are downloaded as Virtual Box ova's.

Should be able to grab the disk file and convert to raw using qemu image-convert. Simon has some docs and limited experience with this.

Then should be able to upload the volume as an image.

Only question is whether it needs cloud-init in order to be run on the cloud.

Simon's assumption bus that it would need cloud-init in order to run properly.

Need to verify this as it's an important detail which will dictate how we set other things up

@iokiwi iokiwi added the question Further information is requested label Mar 16, 2020
@iokiwi
Copy link
Member Author

iokiwi commented Mar 19, 2020

[WIP] Try and upload mrRobot vulnhub vm to cloud as an image

# Unpack ova
# https://opentox.github.io/installation/2012/08/02/converting-ova-images-to-kvm
tar -xvf mrRobot.ova

# Convert vmdk to raw disk
# https://docs.openstack.org/image-guide/convert-images.html
qemu-img convert -f vmdk -O raw mrRobot-disk1.vmdk mrRobot.raw

# Create image
openstack image create \
  --container-format bare \
  --disk-format raw \
  --private \
  --file mrRobot.raw \
  mrRobot

@iokiwi
Copy link
Member Author

iokiwi commented Mar 20, 2020

Success!

http://103.197.62.216/
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant