Skip to content

Instantly share code, notes, and snippets.

#include <android/log.h>
#include <jni.h>
#include <binder/Binder.h>
#include <binder/Parcel.h>
#include <binder/IServiceManager.h>
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@gavz
gavz / fwd55.go
Created November 5, 2023 23:11 — forked from yunginnanet/fwd55.go
basic one file socks5 server (no auth) - example of output: https://tcp.ac/i/TE4Vj
package main
// ▄─▄ ▄ ▄ ▄ ──▄ ▄─▄ ▄─▄
// ▓─ ▓ ▓ ▓ ▓ ▓ ▀─▄ ▀─▄
// ▀ ▀─▀─▀ ──▀ ▀─▀ ▀─▀
// f w d --> 5 5
//
// simple rfc1928 proxy server
//
//
@gavz
gavz / Get-LoggedOn.py
Created November 3, 2023 23:06
Stupid simple script copied and pasted from reg.py/lookupsid and inspired from itm4n's session enum via registry
#!/usr/bin/python3
from __future__ import division
from __future__ import print_function
import re
import codecs
import logging
import time
import argparse
import sys
from impacket import version
@gavz
gavz / pfx2john.py
Created October 16, 2023 20:44 — forked from tijme/pfx2john.py
Python3 version of `pfx2john.py` from John the Ripper
#!/usr/bin/env python
# coding: utf-8
"""
Modified for JtR by Dhiru Kholia in July, 2016
Copyright (c) 2015 Will Bond <will@wbond.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@gavz
gavz / perfect-loaders.md
Created October 9, 2023 21:40 — forked from EvanMcBroom/perfect-loaders.md
Perfect Loader Implementations

Perfect Loader Implementations

Thank you to SpecterOps for supporting this research and to Lee and Sarah for proofreading and editing! Crossposted on the SpecterOps Blog.

TLDR: You may use fuse-loader or perfect-loader as examples for extending an OS's native loader to support in-memory libraries.

Some software applications require the ability to load dynamic libraries from the memory of the application's own process. The majority of desktop OSes do not support this use case, so a number of developers have reimplemented the process of loading a library to overcome this limitation.

@gavz
gavz / how-to-use.md
Created September 19, 2023 20:16 — forked from itewqq/how-to-use.md
GDB python script to print the memory layout of structures.

Features

  1. Make sure you build the binary with debug symbols. For example: RUSTFLAGS=-g cargo build --release
  2. Use rust-gdb to start the binary and load the script: rust-gdb rust_binary -x memlayout-rust.py
  3. Break anywhere you like, and use the command mem-layout VARIABLE_NAME to print the layout of that variable:

image

  1. Custom structures are also supported:
@gavz
gavz / GetSxsPath.cs
Created September 12, 2023 20:28 — forked from rxwx/GetSxsPath.cs
Determine redirection path for SxS DotLocal DLL Hijacking
using System;
using System.IO;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
using static GetSxsPath.NativeMethods;
namespace GetSxsPath
{
internal class NativeMethods
@gavz
gavz / headersPentest
Created June 25, 2023 20:49 — forked from momenbasel/headersPentest
HTTP headers is the language that all web servers speaks, it can be golden gem for security researcher.
X-Forwarded-Host
X-Forwarded-Port
X-Forwarded-Scheme
Origin: null
Origin: [siteDomain].attacker.com
X-Frame-Options: Allow
X-Forwarded-For: 127.0.0.1
X-Client-IP: 127.0.0.1
Client-IP: 127.0.0.1
---For injecting BXSS(blind XSS) || SQLI payloads---
@gavz
gavz / dfview.py
Created June 24, 2023 22:11
dfview.py
"""
this script is based on vds12 of the hexrays sdk.
author: de
"""
import ida_pro
import ida_hexrays
import ida_kernwin
import ida_funcs
import ida_bytes
@gavz
gavz / Instructions.md
Created June 17, 2023 19:10 — forked from NotMedic/Instructions.md
Headless Remote Chrome Debugging - Ichabod Chrome :)

Target

Start Chrome with the following flags:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

--remote-debugging-port=9222

--remote-debugging-address=0.0.0.0