Skip to content

Instantly share code, notes, and snippets.

@katzurki
katzurki / catch22.sh
Last active August 29, 2025 13:08
Reflector is a Linux bash script that listens for malicious connections on port 22 and redirects them back to the attacker's port 22 to hack as they please.
#!/usr/bin/env bash
# HOW IT WORKS:
# sudo apt install -y ncat nftables curl
# It listens for an incoming connection on port 22 and drops it, while noting the connecting IP.
# It sets up an nftable tcp stream forward back to the connecting IP's own port 22, so that
# on a repeat connection (since they didn't get the message) and if they try anything funny,
# they're suddenly hacking themselves. Persists for 10 minutes, handes multiple connections.
# For example, shodan now proudly lists its own ssh server info on my ip:22
set -euo pipefail
@katzurki
katzurki / socks5.php
Last active July 13, 2025 08:40
Socks5/HTTP Proxy (LeProxy) in php, with --allow-unprotected enabled by default without authorization
#!/usr/bin/env php
<?php
/**
* LeProxy is the HTTP/SOCKS proxy server for everybody!
* Full credits to the author, I just enabled unprotected mode by default.
* LeProxy should be run from the command line. Assuming this file is
* named `leproxy.php`, try running `$ php leproxy.php --help`.
*
@katzurki
katzurki / AutoQC_Sep06.js
Created September 6, 2020 17:24
AutoQC for SRT files or Originator tasks
javascript: (function () {
var LANG = "EN"
var outOfTheBox
var qcMeta = {}
qcMeta.lang = LANG
if(document.location.href.includes(
"originator.backlot.netflix.com")) {
var our_clq = document.location.href
.split(":")[3]
if(our_clq) {
<?php
/**
* This file is part of the PHP Video Toolkit v2 package.
*
* @author Oliver Lillie (aka buggedcom) <[email protected]>
* @license Dual licensed under MIT and GPLv2
* @copyright Copyright (c) 2008-2014 Oliver Lillie <http://www.buggedcom.co.uk>
* @package PHPVideoToolkit V2
* @version 2.1.7-beta
/*
v12.12.2012
- bumped the container's z-index to 64000 per @jeremymeyers
v03.31.2008
- fixed display issues in IE7 courtesy of Frank Mantje @ cosbo.nl
*/
#modiContainer {
position:absolute !important;
/*
v12.12.2012
- bumped the container's z-index to 64000 per @jeremymeyers
v03.31.2008
- fixed display issues in IE7 courtesy of Frank Mantje @ cosbo.nl
*/
#modiContainer {
position:absolute !important;
// prevent IE from making tons of requests to background images
if(document.execCommand && document.all && !window.opera) document.execCommand("BackgroundImageCache",false,true);
var d=document;
var mObj,cssObj;
var isActive = false;
var activeObj = null;
var pause = false;
var treeIndex = 0;
// prevent IE from making tons of requests to background images
if(document.execCommand && document.all && !window.opera) document.execCommand("BackgroundImageCache",false,true);
var d=document;
var mObj,cssObj;
var isActive = false;
var activeObj = null;
var pause = false;
var treeIndex = 0;
// prevent IE from making tons of requests to background images
if(document.execCommand && document.all && !window.opera) document.execCommand("BackgroundImageCache",false,true);
var d=document;
var mObj,cssObj;
var isActive = false;
var activeObj = null;
var pause = false;
var treeIndex = 0;
// prevent IE from making tons of requests to background images
if(document.execCommand && document.all && !window.opera) document.execCommand("BackgroundImageCache",false,true);
var d=document;
var mObj,cssObj;
var isActive = false;
var activeObj = null;
var pause = false;
var treeIndex = 0;