Skip to content

Instantly share code, notes, and snippets.

@xusheng6
xusheng6 / cleanup.py
Created December 18, 2024 00:32
helper script to remove the obfuscation and clean up the code in Serpentine challenge in flare-on
from dataclasses import dataclass
@dataclass
class Instr:
startTime: str
instrType: str
ip: int
addr: int
size: int
value: int
import brotli
import zipfile
import os
archive_path = 'data-63cebb7cb7e3e17ed8a87d7c7a3fd1ab551cfd73.archive'
dump_root = 'dump'
with zipfile.ZipFile(archive_path) as archive:
for info in archive.infolist():
if info.compress_type != 34:
@xusheng6
xusheng6 / main.cpp
Created May 20, 2022 02:25
script to troubleshoot LLDDB hang
#include <iostream>
#include <thread>
#include "lldb/API/LLDB.h"
using namespace std;
using namespace lldb;
class Debugger
{
public: