Skip to content

Instantly share code, notes, and snippets.

@hortinstein
Created November 3, 2017 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hortinstein/3927272a3827cf9143ac1b1abaf22f13 to your computer and use it in GitHub Desktop.
Save hortinstein/3927272a3827cf9143ac1b1abaf22f13 to your computer and use it in GitHub Desktop.

capstone

VM within a VM within...a...?

Contents

-Scenario

-Setup

-Tips

-References

Scenario

There is some strange network traffic eminating from a logging server used by services within the enterprise...probably worth a look.

Setup

  • Download the Capstone2017 ISO here

  • Untar and Add to Virtualbox (untested w/ VMware)

  • Ensure port forwarding is configured as follows instructions for port forwarding

  • Tweak hardware settings if you would like to dedicate more horsepower to the box. The scenario runs fine on 512MB of Ram and a Single core.

  • Startup the box in VirtualBox, wait for a few then curl and get the private key to SSH into the box

curl localhost:2224
  • Copy the key portion including headers into a file called capstone_idand then chmod 0600 capstone_id. Finally you can ssh into the logging server victim.

STOP Once you are here stop and shutdown the VM. Do not spend time prior to 26 June working on the Capstone. The key will persist between reboots.

for serious stahp

Tips

A few Tips:

  • The hosts you are operating on internal to this VM DO NOT save state. Reccomend prototyping work on another VM or host computer then transfering to the hosts. Scripting is heavily encouraged so you can easily get back to your past location if you crash a box.
  • All tools you need to traverse the capstone are on the victim box, though there are some pretty common packages that might make it easier.
  • There isn't one way/order to solve it.
  • Don't try to do forensics on the VM's bare drive. All source used to build scenario has been rm'd.

References

man netstat printing connection information

man lsof listing open files

man ps getting current processes

man who seeing who is logged on

man ls listing directory contects

man grep printing lines matching a pattern

man gdb debugging

man nc swiss army knife

man tcpdump dumps...tcp

man sshfs allows you to mount remote ssh as a filesystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment