Skip to content

Instantly share code, notes, and snippets.

View hshrzd's full-sized avatar

hshrzd

View GitHub Profile
@hshrzd
hshrzd / readme.md
Created June 4, 2021 17:36 — forked from lancejpollard/readme.md
System Call List for Windows, Mac, and Linux
@hshrzd
hshrzd / pe_file.cpp
Last active June 29, 2023 16:36
Common structs for IDA
typedef struct _IMAGE_DOS_HEADER
{
_WORD e_magic;
_WORD e_cblp;
_WORD e_cp;
_WORD e_crlc;
_WORD e_cparhdr;
_WORD e_minalloc;
_WORD e_maxalloc;
_WORD e_ss;
@hshrzd
hshrzd / scrdec18-VC8.exe
Created February 17, 2021 23:04 — forked from bcse/scrdec18-VC8.exe
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@hshrzd
hshrzd / strref.py
Created August 6, 2020 16:11
IDA script to fetch string references
import idautils
sc = idautils.Strings()
for s in sc:
curr_str = str(s)
str_offset = s.ea
for xref in idautils.XrefsTo(s.ea):
func = idaapi.get_func(xref.frm)
if not func:
@hshrzd
hshrzd / immunity_list_calls_via_reg.py
Created April 18, 2020 20:27
Immunity PyCommand: list calls via registry
#!/usr/bin/env python
"""
(c) hAsh, 2015 run via ImmunityDbg
"""
__VERSION__ = '0.3.1'
__AUTHOR__ = 'hAsh'
import immlib
import pefile