Skip to content

Instantly share code, notes, and snippets.

View voidfyoo's full-sized avatar

Voidfyoo voidfyoo

View GitHub Profile
@voidfyoo
voidfyoo / Request.java
Last active January 15, 2020 16:36
An example of SSRF defence in Java.
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.*;
import java.nio.ByteBuffer;
public class Request {
public static void main(String[] args) throws Exception {
URL url = new URL(args[0]); // e.g. http://httpbin.org/get
#!/usr/bin/python
# Filename s5.py
# Python Dynamic Socks5 Proxy
# Usage: python s5.py 1080
# Background Run: nohup python s5.py 1080 &
# Email: [email protected]
import socket, sys, select, SocketServer, struct, time
class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass