Esse artigo é dedicado aos 20 anos da WWW :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
#!/usr/bin/python2 | |
#-*-coding:utf8-*- | |
#qpy:console | |
""" SimpleServer.py -h | |
Original Version By InunxLABS 1.00.10 - 22/07/13 | |
Mail : inunxlabs@gembox.us | |
Paypal : inunxelex@yahoo.com | |
Payza : inunxlabs@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import SocketServer | |
import socket | |
import logging | |
import select | |
import threading | |
import signal | |
import argparse |
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
- Download the source:
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"net/http" | |
"strings" | |
) | |
func main() { | |
p := &proxy{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
OlderNewer