This file contains hidden or 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
<!-- | |
OPFS Recursive Viewer | |
This page recursively lists all files stored in the browser's Origin Private File System (OPFS), | |
using the File System Access API. If a specific file path (defined in `targetPath`) is found, | |
its contents are read and displayed in the <pre> block. Useful for debugging or inspecting | |
OPFS contents in a human-readable form. | |
NOTE: `targetPath` should be replaced with a specific OPFS file path to auto-display its content. | |
--> |
This file contains hidden or 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
$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 |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Net.Sockets; | |
namespace tcp_client_file_write | |
{ | |
internal class Program | |
{ |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using System.Diagnostics; | |
public class FileWatcher | |
{ | |
static FileSystemWatcher watcher; | |
static Process p; |
This file contains hidden or 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
from fastapi import FastAPI | |
from fastapi.responses import RedirectResponse | |
app = FastAPI() | |
@app.get("/") | |
async def redirector(destination: str): | |
return RedirectResponse(destination) |
This file contains hidden or 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
# 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 |