Skip to content

Instantly share code, notes, and snippets.

View thypon's full-sized avatar

Andrea Brancaleoni thypon

View GitHub Profile
@thypon
thypon / podofo
Created October 18, 2015 22:52
Podofo
From 8480597997fca956359869aecefd577a6c44b263 Mon Sep 17 00:00:00 2001
From: Luca <luca.andrea.fuse@gmx.com>
Date: Sun, 18 Oct 2015 12:43:19 +0200
Subject: [PATCH] New package: podofo-0.9.3
---
common/shlibs | 1 +
srcpkgs/podofo-devel | 1 +
srcpkgs/podofo/template | 24 ++++++++++++++++++++++++
3 files changed, 26 insertions(+)
@thypon
thypon / Vulnfinder
Last active December 17, 2015 04:18
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<script src="escape.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
//<![CDATA[
if (escapeHTML(document.url) != document.url) {
document.href = "XSS"
}
//]]>
@thypon
thypon / exceptional.rkt
Last active December 17, 2015 15:59
Racket Exception Implementation
#lang racket
(define *handlers* (list))
(define (push-handler proc)
(set! *handlers* (cons proc *handlers*)))
(define (pop-handler)
(let ((h (car *handlers*)))
(set! *handlers* ( cdr *handlers*))
@thypon
thypon / gist:8476260
Created January 17, 2014 16:21
I Need Dynamics
import lombok.NonNull;
import java.lang.reflect.Method;
public class Dynamics {
@SuppressWarnings("unchecked")
public static <T> T send(
@NonNull final Class<?> clazz,
@NonNull final String method,
final Object... args) {
@thypon
thypon / gogs-panic.log
Created March 26, 2016 08:25
gogs panic
gogs * panic: template: admin/auth/list:37: function "DateFormat" not defined
gogs *
gogs * goroutine 1 [running]:
gogs * html/template.Must(0x0, 0x7f93f8300028, 0xc8204b9100, 0x0)
gogs * /usr/lib/go/src/html/template/template.go:330 +0x4b
gogs * gopkg.in/macaron%2ev1.compile(0xc82023d4c0, 0x13, 0xc820424bb0, 0x1, 0x1, 0x0, 0x0, 0xc82023d520, 0x2, 0x2, ...)
gogs * /tmp/go/src/gopkg.in/macaron.v1/render.go:281 +0x97e
gogs * gopkg.in/macaron%2ev1.(*templateSet).Set(0xc82022b680, 0x10a46a0, 0x7, 0xc820461ef0, 0x0)
gogs * /tmp/go/src/gopkg.in/macaron.v1/render.go:306 +0x4d
gogs * gopkg.in/macaron%2ev1.renderHandler(0xc82023d4c0, 0x13, 0xc820424bb0, 0x1, 0x1, 0x0, 0x0, 0xc82023d520, 0x2, 0x2, ...)
@thypon
thypon / Makefile
Last active November 9, 2016 09:43
make america great again
%:
@echo -n 'Make $@ '
great:
@echo -n 'Great '
again:
@echo 'Again'
#!/bin/sh
echo "$ uname -a"
uname -a
echo "$ ifconfig"
echo ifconfig
echo "$ kubectl get pod --all-namespaces -o wide"
kubectl get pod --all-namespaces -o wide
echo "$ kubectl get services --all-namespaces -o wide"
kubectl get services --all-namespaces -o wide
echo "$ iptables -L"
@thypon
thypon / qpwn.sh
Created December 17, 2019 09:47
Small (non fully original) script to randomize IMEI and unlock LTE bands
#!/system/bin/busybox sh
# Usage: qpwn.sh [sim number] [new IMEI - 15 decimals]
# Use SIM number 9 to switch to band unlocking mode instead
rnd_imei() {
echo -n $((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))$((RANDOM%10))
}
OPDIR=$(mktemp -d)
@thypon
thypon / italianize.cpp
Last active January 7, 2021 21:22
Italianize ZNC Module
/*
* Copyright (C) 2021 Andrea Brancaleoni ( @nJoyneer / https://github.com/thypon )
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@thypon
thypon / burp.sh
Created May 23, 2021 15:20
Run BURP Within Your JVM
#!/bin/sh
APP_PACKAGE="/Applications/Burp Suite Professional.app/"
exec java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.desktop/javax.swing=ALL-UNNAMED -Dinstall4j.launcherId=70 -Dinstall4j.swt=false -Dexe4j.moduleName="$APP_PACKAGE" -Dfile.encoding=UTF-8 -cp "$APP_PACKAGE/Contents/Resources/app/.install4j/i4jruntime.jar:$APP_PACKAGE/Contents/java/app/burpsuite_pro.jar" -Duser.dir="$APP_PACKAGE/Contents/Resources/app/./." com.install4j.runtime.launcher.MacLauncher