Skip to content

Instantly share code, notes, and snippets.

View mzpqnxow's full-sized avatar
🙈
Look at all this free stuff!

AG mzpqnxow

🙈
Look at all this free stuff!
View GitHub Profile
@mzpqnxow
mzpqnxow / _.md
Created August 1, 2022 14:14 — forked from korniltsev/_.md
C/C++ header to IDA

Usage

In IDAPython,

execfile('<path>/cxxparser.py')
parse_file('<path>/a.cpp',[r'-I<path>\LuaJIT-2.0.5\src', '-D__NT__', '-D__X64__', '-D__EA64__'])
parse_file('<path>/malloc.c',['-target=x86_64-linux-gnu'])
@mzpqnxow
mzpqnxow / ActionChainResult.class.java
Last active June 3, 2022 22:25
Diff between decompiled class files for xwork-1.0.3-atlassian-7 and xwork-1.0.3-atlassian-10 (CVE-2022-26134)
// For context, the full "old" version of the class
// Taken from a decompiled xwork-1.0.3-atlassian-7-m08.jar
// - AG
//
package com.opensymphony.xwork;
import com.opensymphony.xwork.util.OgnlValueStack;
import com.opensymphony.xwork.util.TextParseUtil;
import java.util.HashMap;
import java.util.HashSet;
diff --git i/conn.go w/conn.go
index ef701c8..f8cfb29 100644
--- i/conn.go
+++ w/conn.go
@@ -5,7 +5,9 @@ import (
"errors"
"io"
"net"
+ "os"
"time"
@mzpqnxow
mzpqnxow / networkmap1.png
Created April 30, 2022 15:07 — forked from adrianmihalko/networkmap1.png
wireguard edgerouter mullvad config
!!!NOT WORKING!!!
configure
set interfaces wireguard wg0 address 10.xx.xxx.253/32
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 route-allowed-ips false
set interfaces wireguard wg0 peer JuE+ endpoint mullvadserverip:51820
set interfaces wireguard wg0 peer JuE+ allowed-ips 0.0.0.0/0
@mzpqnxow
mzpqnxow / sources.list
Last active April 30, 2022 13:11
EdgeRouter 1.x firmware APT source configurations (4/2022)
#
# APT Configuration for EdgeRouter/EdgeOS 2.x
#
# Vanilla APT configuration can be problematic since VyattaOS is a fork
# of Debian with enhancements, but is not aggressively kept up to date
# with Debian releases. Not all mirrors have "old" packages and not all
# mirrors have all architectures (e.g. very few have older MIPS architecture
# platforms
#
# - AG
@mzpqnxow
mzpqnxow / idapython_cheatsheet.md
Created April 19, 2022 21:56 — forked from icecr4ck/idapython_cheatsheet.md
Cheatsheet for IDAPython
@mzpqnxow
mzpqnxow / install_quartus17.sh
Created March 27, 2022 22:06 — forked from arthurbeggs/install_quartus17.sh
Install Quartus Prime Lite 17.0 in Ubuntu
#!/bin/bash
################################################################################
### Install Quartus and ModelSim ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Based on https://github.com/jessebarreto/ConfigureWorkspace script. #
# #
@mzpqnxow
mzpqnxow / template.manifest
Last active March 14, 2022 17:59
Using rsync --exclude-from / --include-from / --backup-dir to facilitate safely and fully templating "projects"
# For very basic cases, you shouldn't need to worry about such an extensive / granular
# inclusion file, unless you're actually *using* the "template"; if you are, you should
# probably stop doing that :>
- __pycache__
- *.py[cod]
- *$py.class
- *.pyc
- .git
- README.md
# Exclude template script itself...
@mzpqnxow
mzpqnxow / roll.sh
Created January 26, 2022 15:40
Bash function to roll log files (or any other file) with a maximum keep
#!/bin/bash
#
# Function to roll files in the way that logrotate rolls log files
# Keeps up to the specified amount of files
#
#
# (C) 2022, AG
#
set -eu
# Globals, optional
@mzpqnxow
mzpqnxow / README.md
Last active October 18, 2023 04:27
Patch to statically link OpenSSL into Python3.8

Statically Linking OpenSSL Into Python3.8

EDIT/NOTE: Please see the comment below from @oferchen, this is supported properly in the build system now

Get the patch file (python3-static-link-openssl.patch) and put it in your working directory

$ wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz
$ tar -xvf Python-3.8.12.tar.xz && cd Python-3.8.12
$ patch -p1 &lt; ../python3-static-link-openssl.patch