Skip to content

Instantly share code, notes, and snippets.

@ShyftXero
Last active May 2, 2021 13:00
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 ShyftXero/ce33c2f37df96f4c525c1f931b718958 to your computer and use it in GitHub Desktop.
Save ShyftXero/ce33c2f37df96f4c525c1f931b718958 to your computer and use it in GitHub Desktop.

Super slick commands for virutalbox machine management

Start / Stop a pcap at the VM level for a guest machine. (not having to route traffic through another box to capture; works in NAT)

  • Start pcap
    • vboxmanage controlvm "vm_name_here" nictrace1 on
  • Stop pcap
    • vboxmanage controlvm "vm_name_here" nictrace1 off

A file VBox-<5_hex_digits>.pcap will be created. don't know the significance of the digits. They don't seem to be the mac

Saving to a specific file via nictracefile1 some.pcap isnt't working on my machine (kubuntu 20.10 vbox 6.1.18r142142 on 02MAY21)

Other useful items

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