Skip to content

Instantly share code, notes, and snippets.

View VoidSec's full-sized avatar
🐲
Developing an exploit

Paolo Stagno VoidSec

🐲
Developing an exploit
View GitHub Profile
@stefansundin
stefansundin / requests_api.py
Last active November 8, 2024 06:59
Reusable class for Python requests library.
# http://docs.python-requests.org/en/master/api/
import requests
class RequestsApi:
def __init__(self, base_url, **kwargs):
self.base_url = base_url
self.session = requests.Session()
for arg in kwargs:
if isinstance(kwargs[arg], dict):
kwargs[arg] = self.__deep_merge(getattr(self.session, arg), kwargs[arg])
@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active November 14, 2024 03:57
Cheatsheet for IDAPython
@olamotte
olamotte / Binary SD to human readable DACL
Created January 12, 2020 16:45
Windows Registry conversion from binary Security Descriptor to SDDL DACL
#Example: Which users can access the SMB Session information on a Windows 10 computer (NetCease status)
#Retrieve the binary value
$acl=Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\DefaultSecurity -Name SrvsvcSessionInfo
#Use WMI helper to obtain a converter
$converter = new-object system.management.ManagementClass Win32_SecurityDescriptorHelper
#Do the conversion to SDDL
$outsddl = $converter.BinarySDToSDDL($acl.SrvsvcSessionInfo)
@wumb0
wumb0 / delta_patch.py
Last active October 30, 2024 14:53
a script for applying MS patch deltas
import base64
import hashlib
import zlib
from ctypes import (
CDLL,
POINTER,
LittleEndianStructure,
c_size_t,
c_ubyte,
c_uint64,
@VoidSec
VoidSec / idapython_cheatsheet.md
Created October 18, 2021 14:44 — forked from icecr4ck/idapython_cheatsheet.md
Cheatsheet for IDAPython
@noseratio
noseratio / reset-twitter-interest.md
Last active October 21, 2024 17:41
Reset Twitter interests