Skip to content

Instantly share code, notes, and snippets.

@2S1one
2S1one / osed-rp-helper.ps1
Created June 3, 2025 11:37
RP powershell wrapper
$max_depth = 6
$rp_exe_path = "C:\tools\rp-win-x86.exe"
$out_dir = Join-Path (Get-Location) "rp_output"
$all_prefix = "all_"
$target_files = $args
# Ensure the output directory exists
New-Item -ItemType Directory -Path $out_dir -Force -ErrorAction SilentlyContinue | Out-Null
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;
namespace tcp_client_file_write
{
internal class Program
{
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Diagnostics;
public class FileWatcher
{
static FileSystemWatcher watcher;
static Process p;
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/")
async def redirector(destination: str):
return RedirectResponse(destination)
# 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