Comments (3)
To install the VirtualBox SDK
download SDK from https://www.virtualbox.org/wiki/Downloads and unzip
install the sdk
cd sdk/installer
export VBOX_INSTALL_PATH=/usr/lib/virtualbox # for Ubuntu packaged installation
sudo -E python3 vboxapisetup.py install
to use the SDK
(venv) pip install virtualbox
(venv) export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk
(venv) ipython3
(venv) %run vboxinstance.py
vboxinstance.py
# don't forget to set VBOX_SDK_PATH
# otherwise fallback to /usr/bin/virualbox/sdk which doesn't make sense anyway
import sys
import os
from pathlib import Path
VBOX_SDK_PATH = Path(os.environ['VBOX_SDK_PATH'])
# we force to sys append our own install path
# otherwise /usr/bin/virtualbox is used, which doesn't make sense
sys.path.append(str(VBOX_SDK_PATH.parent))
import virtualbox
vbox = virtualbox.VirtualBox()
from libmicrovmi.
machine -> session
machine.lockMachine(session, type)
session.console
console.debugger
but console objects are non null only if VM lock type
from libmicrovmi.
It looks like this API hasn't been implemented yet
OleErrorNotimpl Traceback (most recent call last)
<ipython-input-15-207b7e87d331> in <module>
----> 1 dbg.read_physical_memory(0x0, 4)
~/local/venv/lib/python3.8/site-packages/virtualbox/library.py in read_physical_memory(self, address, size)
30013 if not isinstance(size, baseinteger):
30014 raise TypeError("size can only be an instance of type baseinteger")
> 30015 bytes_p = self._call("readPhysicalMemory", in_p=[address, size])
30016 return bytes_p
30017
~/local/venv/lib/python3.8/site-packages/virtualbox/library_base.py in _call(self, name, in_p)
198 method = self._search_attr(name)
199 if inspect.isfunction(method) or inspect.ismethod(method):
--> 200 return self._call_method(method, in_p=in_p)
201 else:
202 return method
~/local/venv/lib/python3.8/site-packages/virtualbox/library_base.py in _call_method(self, method, in_p)
226 default_msg = getattr(exc, "message", str(exc))
227 errobj.msg = getattr(exc, "msg", default_msg)
--> 228 raise errobj
229 return ret
OleErrorNotimpl: 0x80004001 (Method readPhysicalMemory is not implemented)
from libmicrovmi.
Related Issues (20)
- Build system: opportunistic drivers
- Volatility3 integration HOT 10
- libmicrovmi python bindings HOT 19
- KVM: Handle read size > 4K
- API: remove get_page_access HOT 2
- Design: refactoring read_physical API HOT 2
- Include libmicrovmi.h generated C header into the Debian package HOT 2
- xen libraries linked with libmicrovmi.so
- Add technical documentation HOT 1
- LeechCore integration HOT 34
- Design: Driver initialization argument handling HOT 6
- RUSTSEC-2020-0077: memmap is unmaintained
- Windows release
- RUSTSEC-2021-0119: Out-of-bounds write in nix::unistd::getgrouplist
- Memflow support; current state of the art
- Can't Install on Arch Based Systems HOT 4
- wrong
- Halt introspected VM on volatility execution HOT 2
- Question: Python volatility3 plugin does not work when VM is paused HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmicrovmi.