Skip to content

Instantly share code, notes, and snippets.

# TOU TOC - POC
# Roy H.
# Solution for https://github.com/2S1one/vulnerable-code-snippets
# Updated for more reliability
import binascii
import copy
import socket
import struct
import sys
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/")
async def redirector(destination: str):
return RedirectResponse(destination)
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Diagnostics;
public class FileWatcher
{
static FileSystemWatcher watcher;
static Process p;
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;
namespace tcp_client_file_write
{
internal class Program
{