Skip to content

Instantly share code, notes, and snippets.

View safebuffer's full-sized avatar
🎩
Going to release some tools soon ..

H*s*m safebuffer

🎩
Going to release some tools soon ..
View GitHub Profile
@ophirharpaz
ophirharpaz / get_call_flows_from_exports.py
Created February 22, 2020 15:19
The script generates and prints a graph of all function-call flows that start in exported functions and end in the function being pointed at in IDA. This functionality is useful when you need to trigger a function in a DLL and wish to know which exported function leads to it.
"""
The script generates and prints a graph of all function-call flows that start in exported functions and end
in the function being pointed at in IDA.
This functionality is useful when you need to trigger a function in a DLL and wish to know which exported function
leads to it.
"""
import idaapi
import idautils
import idc
@eybisi
eybisi / remove_app.sh
Created February 12, 2020 12:32
bash script to remove apps easily
arr=($(adb shell "ls /data/app" | tr "\r\n" " " | sed 's/-[0-9]//g') "Quit")
echo "It's time to choose"
select opt in "${arr[@]}";do
case $opt in
"Quit")
break
esac
re='^[0-9]+$'
if ! [[ $REPLY =~ $re ]]; then
@safebuffer
safebuffer / decorator.py
Created September 22, 2019 13:26
IDOR protection Django
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from functools import wraps
from django.core.exceptions import PermissionDenied
from django.core.exceptions import ObjectDoesNotExist
def door_safe(view=None,model=None):
def decorator(func):
@wraps(func)
def inner(request, *args, **kwargs):
@101t
101t / python-cheatsheet.md
Last active March 30, 2024 06:57
Python Cheatsheet
@guitarrapc
guitarrapc / Get-EtwTraceProvider.ps1
Last active October 23, 2024 18:49
ETW (Event Tracing for Windows) Providers and their GUIDs for Windows 10 x64
#Requires -RunAsAdministrator
#Requires -Version 5.0
# requires Windows 10
Get-EtwTraceProvider | Select-Object SessionName, Guid | sort SessionName
# as Markdown
<#
#Requires -RunAsAdministrator
$result = Get-EtwTraceProvider | sort SessionName
$result | %{"|Name|GUID|";"|----|----|";}{"|$($_.SessionName)|$($_.Guid)|"}
#>