Skip to content

Instantly share code, notes, and snippets.

@pigscanflyyyy
pigscanflyyyy / Static python executable.txt
Created January 15, 2021 02:33 — forked from 0xhexmex/Static python executable.txt
How to turn a python script into a statically linked executable with pyinstaller and staticx
// Example below is with mitm6 (https://github.com/fox-it/mitm6/)
// Note: Adding the '--add-binary' option here is specific to mitm6, not required in all cases.
# pip install pyinstaller
# pyinstaller --clean -F --add-binary="/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0:." ./mitm6.py
// The step above will create a single binary in the ./dist/ directory called mitm6
// Install staticx and dependencies
@pigscanflyyyy
pigscanflyyyy / proxy.go
Created January 3, 2021 10:48 — forked from fiorix/proxy.go
proxy that can handle/modify html responses
package main
import (
"io"
"net/http"
"strings"
)
func main() {
p := &proxy{}
@pigscanflyyyy
pigscanflyyyy / raspbian-chroot.sh
Created December 22, 2020 15:36 — forked from oznu/raspbian-chroot.sh
Create a Raspbian Chroot Environment Emulating ARM
#!/bin/bash
CHROOT_DIR=/tmp/raspbian-chroot
MIRROR=http://archive.raspbian.org/raspbian
VERSION=jessie
CHROOT_ARCH=armhf
sudo apt-get install -y debootstrap qemu-user-static binfmt-support sbuild
sudo mkdir -p $CHROOT_DIR
Debian
apt-get install build-essential gcc-arm-linux-gnueabi ca-certificates
mkdir /home/source /home/openvpn
LZO
cd /home/source
wget https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz
tar xvzf lzo-2.10.tar.gz
@pigscanflyyyy
pigscanflyyyy / README.md
Created December 3, 2020 15:06 — forked from Anubisss/README.md
How to compile statically linked OpenVPN client for ARMv5

How to compile statically linked OpenVPN client for ARMv5

You need to install ARMv5 gcc cross compiler: apt-get install gcc-arm-linux-gnueabi

You have to define a directory (via --prefix) where all of your binaries will be installed (copied). In the guide I use the following: /home/user/vpn_compile

OpenSSL

  1. Download the source: wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz

Perl Assíncrono

Introdução

Esse artigo é dedicado aos 20 anos da WWW :)

@pigscanflyyyy
pigscanflyyyy / proxy-tunnel.py
Created November 25, 2020 16:09 — forked from tsing/proxy-tunnel.py
create tunnel through http proxy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import SocketServer
import socket
import logging
import select
import threading
import signal
import argparse
@pigscanflyyyy
pigscanflyyyy / SimpleHttpClient.py
Created November 5, 2020 19:26 — forked from moisespsena/SimpleHttpClient.py
Python Simple HTTP Client
#!/usr/bin/env python
'''
SimpleHttpClient: Python Simple HTTP Client
Author: Moises P. Sena <moisespsena AT gmail.com>
CONNECT AND CLOSE:
>>> host, port = 'localhost', 80
>>> c = SimpleHttpClient((host, port), host)
@pigscanflyyyy
pigscanflyyyy / main.go
Created October 3, 2020 06:20 — forked from afdalwahyu/main.go
golang dynamic port forward ssh socks5 tunnel
package main
import (
"context"
"fmt"
"net"
"os"
"os/signal"
"syscall"
@pigscanflyyyy
pigscanflyyyy / HTTPInjector.py
Created September 28, 2020 01:25 — forked from vitouXY/HTTPInjector.py
HTTP Injector ; QPython
#!/usr/bin/env python2
#!/usr/bin/python2
#-*-coding:utf8-*-
# coding=utf-8
#qpy:console
"""
HTTP Injector Python
https://stackoverflow.com/questions/43341946/injector-python-http-proxy-basic-proxy-authentication
+++ Inject Payload