Skip to content

Instantly share code, notes, and snippets.

View alexander-hanel's full-sized avatar
😶

Alexander Hanel alexander-hanel

😶
View GitHub Profile
@alexander-hanel
alexander-hanel / rtd.py
Created September 24, 2018 21:18
python recursive traversal disassembly using capstone and pefile
import sys
import re
import pefile
import string
import struct
from capstool import CapsTool
from capstone import *
from capstone.x86 import *
BCC = ["je", "jne", "js", "jns", "jp", "jnp", "jo", "jno", "jl", "jle", "jg",
@alexander-hanel
alexander-hanel / commpile.sh
Created July 4, 2018 02:01
compile asm using nasm and execute it
#!/bin/bash
INPUT=$1
name=${INPUT%.*}
ncmd=$(printf "nasm -f elf64 %s" "$INPUT")
eval $ncmd
ll=$(printf "ld %s.o -o %s" "$name" "$name")
eval $ll
tt=$(printf "chmod +x %s" "$name")
xx=$(printf "./%s" "$name")
eval $xx
@alexander-hanel
alexander-hanel / exercise.md
Last active October 21, 2020 16:54
Resources for Exercising

Resources for Exercising

Why Did I Write This?

Occasionally I get asked what resources I would recommend for someone who wants to get into working out or to start exercising. The following is a list of resources that I have found useful over the years.

Let's Get Started

The first resource I would recommend is the book Core Performance. It is probably the best introductory book that you can read on exercising. Its not a book about picking up weights. That is only one of the seven parts of this book. It covers movement prep (dynamic stretching), prehab, physio-ball routines (stability), elasticity, strength, cardio and regeneration. All of these topics are perfect for anyone getting into exercising or anyone who wants to prevent injuries. The book has beginner, intermediate and advanced routines in the back. TIP: download the app FitNotes. It might take a little bit of time to add your routines but it is the best app available. I st

@alexander-hanel
alexander-hanel / exercise.md
Last active January 9, 2025 00:56
Resources for Exercising

Resources for Exercising Recommendations

Why Did I Write This?

Occasionally I get asked what resources I would recommend for someone who wants to get into working out or to start exercising. The following is a list of resources that I have found useful over the years.

Let's Get Started

The first resource I would recommend is the book Core Performance. It is probably the best introductory book that you can read on exercising. Its not a book about picking up weights. That is only one of the seven parts of this book. It covers movement prep (dynamic stretching), prehab, physio-ball routines (stability), elasticity, strength, cardio and regeneration. All of these topics are perfect for anyone getting into exercising or anyone who wants to prevent injuries. The book has beginner, intermediate and advanced routines in the back. TIP: download the app FitNotes. It might take a little bit of time to add your routines but it is the best app a

@alexander-hanel
alexander-hanel / CRC.asm
Created April 28, 2018 23:42
CRC w/ comments
; English forum: http://purebasic.myforums.net/viewtopic.php?t=8957&highlight=
; Author: Wayne Diamond
; Date: 01. January 2004
; CRC32 - A relatively fast algorithm that creates a 32-bit checksum.
; CRC32 is the most commonly-used 32-bit checksum algorithm.
Procedure.l CRC32(Buffer.l, BufLen.l)
Result.l = 0
@alexander-hanel
alexander-hanel / outlook_property_id.json
Created April 9, 2018 21:49
outlook related property ids
{
"000000010040": "PidLidAttendeeCriticalChange",
"00000002001F": "PidLidWhere",
"000000030102": "PidLidGlobalObjectId",
"00000004000B": "PidLidIsSilent",
"00000005000B": "PidLidIsRecurring",
"00000006001F": "PidLidRequiredAttendees",
"00000007001F": "PidLidOptionalAttendees",
"00000008001F": "PidLidResourceAttendees",
"00000009000B": "PidLidDelegateMail",
__author__ = 'Alexander Hanel'
__date__ = '2018/02/28'
__version__ = "2.0"
__title__ = "struct creator"
import re
"""
Example:
@alexander-hanel
alexander-hanel / x64dbgp.md
Created February 23, 2018 02:32
x64dbgpy Notes
import x64dbgpy 
from x64dbgpy.pluginsdk import *

# clear breakpoints 
x64dbg.DbgCmdExecDirect("bc")
x64dbg.DbgCmdExecDirect("bphwc")
# break at entry point 
x64dbg.SetBreakpoint(x64dbg.GetMainModuleEntry())
@alexander-hanel
alexander-hanel / blobheader_parser.py
Last active October 29, 2023 22:45
parse PUBLICKEYSTRUCT and RSAPUBKEY
import struct
import sys
class BLOBHEADER:
def __init__(self, data):
self.bType = None # BYTE
self.bVersion = None # BYTE
self.reserved = None # WORD
self.aiKeyAlg = None # ALG_ID
self._parse_data(data)