Skip to content

Instantly share code, notes, and snippets.

@mbikovitsky
mbikovitsky / wimlib.json
Last active February 28, 2024 21:26
Scoop manifest for wimlib
{
"homepage": "https://wimlib.net/",
"description": "wimlib is an open source, cross-platform library for creating, extracting, and modifying Windows Imaging (WIM) archives.",
"version": "1.14.4",
"license": "GPL-3.0-or-later",
"architecture": {
"64bit": {
"url": "https://wimlib.net/downloads/wimlib-1.14.4-windows-x86_64-bin.zip",
"hash": "6d99e242bfbc6d36fc987d433d63772180551b7f2d8de43e9561535a3e2c16d8"
},
@mbikovitsky
mbikovitsky / uboot_patch.py
Created August 17, 2022 18:31
Script for patching a Raspberry Pi bootloader to support a larger kernel
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) 2022 Michael Bikovitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@mbikovitsky
mbikovitsky / killbutmakeitlooklikeanaccident.bat
Last active July 31, 2023 17:52 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
@"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe" -sins -y "srv*nul" -c "r rip = ntdll!NtTerminateProcess; r rcx = -1; r rdx = 0; r rsp = (@rsp & 0xFFFFFFFFFFFFFFF0) - 8; eq @rsp (-1); qd" -p %1
@mbikovitsky
mbikovitsky / PFF.bt
Created April 29, 2022 18:31
010 Editor template for Still Life 2 .PFF files
//------------------------------------------------
//--- 010 Editor v12.0.1 Binary Template
//
// File: PFF.bt
// Authors: Michael Bikovitsky
// Version: 0.1
// Purpose: Parses Still Life 2 cutscene files
// Category: Game
// File Mask: *.pff
// ID Bytes: 50 46 46 30 2E 30 00
#include <assert.h>
#include <Windows.h>
#pragma pack(push, 1)
typedef struct MAGIC_SAUCE
{
INT nHandleCount;
HANDLE hEvent;
// ==UserScript==
// @name JSONopto
// @namespace https://bikodbg.com/
// @match https://*.panopto.eu/Panopto/Pages/Viewer.aspx?id=*
// @grant GM_registerMenuCommand
// @grant GM_xmlhttpRequest
// @grant GM_setClipboard
// @version 1.0
// @author Michael Bikovitsky
// @description Extracts the Panopto video JSON
@mbikovitsky
mbikovitsky / MAKEFILE
Created August 26, 2021 09:47
Minimal Windows 98 WDM driver project
#############################################################################
#
# Copyright (C) Microsoft Corporation 1995
# All Rights Reserved.
#
# MAKEFILE for WDM device driver kit
#
#############################################################################
#

Keybase proof

I hereby claim:

  • I am mbikovitsky on github.
  • I am bikodbg (https://keybase.io/bikodbg) on keybase.
  • I have a public key ASAm9t66Hkt-A2j_XtgPlp9O3vKPK683hGwrAdNkqwCbLQo

To claim this, I am signing this object:

@mbikovitsky
mbikovitsky / keytest.py
Created May 31, 2016 22:11
Keystone test
#!/usr/bin/env python3
import struct
from keystone import *
from capstone import *
CODE = """
begin:
@mbikovitsky
mbikovitsky / Interface.acf
Created May 21, 2016 10:48
MSRPC type serialization sample
interface MyInterface
{
typedef [encode, decode] MY_STRUCT;
}