-
Notifications
You must be signed in to change notification settings - Fork 146
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
draklib/draksh: refactored replacement for Drakvuf utilities and draksetup #824
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
psrok1
force-pushed
the
refactor/draklib
branch
from
September 25, 2023 13:43
cc1ce99
to
e199d03
Compare
psrok1
force-pushed
the
refactor/draklib
branch
from
September 25, 2023 13:58
6b1a668
to
9e82bcc
Compare
psrok1
force-pushed
the
refactor/draklib
branch
from
September 25, 2023 17:56
d73de3f
to
3073e36
Compare
psrok1
force-pushed
the
refactor/draklib
branch
from
September 25, 2023 18:03
8c79e93
to
02814ac
Compare
Well this was nice experiment, similar changes have been already included in existing codebase. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During Drakvuf Sandbox debugging, I'm getting really frustrated by lack of utilities that will allow me to perform specific lower-level actions without copying long Drakvuf command line from my .bash_history.
Drakrun should help me in that process but I noticed that lots of things in this toolset has mixed responsibilities:
draksetup
leaves machine in a state that was not predicted by command creator (e.g. command is expecting machine to be running but because of failure it's actually paused/destroyed) and we need to help ourselves withdrakplayground
that wasn't created for that purpose. Good example is regenerating profiles withdraksetup postinstall
that needsdrakplayground 0
to be run and then killed because VM is already destroyed.That's why I think that things need to be cleaned-up a bit. This PR introduces:
draklib
that provides a common library and Python binding for interacting with whole machinery: networking, storage, Xen, Drakvuf toolset and configuration management. Draklib should be simple Python package that relies on native tools but doesn't install them.drakshell
/draksh
as a CLI component that allows to both setup Drakvuf and make some lower-level actions needed during debugging or maintenance.drakrun
would be higher-level component that integrates Drakvuf with Karton and runs analyses usingdraklib
As a part of this PR I would also like to experiment with "profiles" feature (I can't find better name for that right now, Request For Comments! 😄) that will allow to manage multiple VM snapshots like Win7x86, Win7x64, Win10 without moving files back and forth.