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
use IO::Socket::INET; | |
use IO::Select; | |
use POSIX; | |
print "starting on $ARGV[0]\n"; | |
$| = 1; | |
my $select = new IO::Select; | |
my $socket = new IO::Socket::INET( | |
LocalAddr => '0.0.0.0', | |
LocalPort => $ARGV[0], |
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
*nat | |
:PREROUTING ACCEPT [6:2126] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [17:6239] | |
:POSTROUTING ACCEPT [6:408] | |
-A PREROUTING ! -i lo -p udp -m udp --dport 53 -j REDIRECT --to-ports 5353 | |
-A PREROUTING ! -i lo -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j REDIRECT --to-ports 9040 | |
-A OUTPUT -o lo -j RETURN | |
--ipv4 -A OUTPUT -d 192.168.0.0/16 -j RETURN |
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
$file = $ARGV[0]; | |
open my $fh, '<:raw', $file or die "Could not open $file: $!"; | |
%opcodes = (0x00, 'STOP', 0x01, 'ADD', 0x02, 'MUL', 0x03, 'SUB', 0x04, 'DIV', 0x05, 'SDIV', 0x06, 'MOD', 0x07, 'SMOD', 0x08, 'ADDMOD', 0x09, 'MULMOD', 0x0a, 'EXP', 0x0b, 'SIGNEXTEND', 0x10, 'LT', 0x11, 'GT', 0x12, 'SLT', 0x13, 'SGT', 0x14, 'EQ', 0x15, 'ISZERO', 0x16, 'AND', 0x17, 'OR', 0x18, 'XOR', 0x19, 'NOT', 0x1a, 'BYTE', 0x20, 'SHA3', 0x30, 'ADDRESS', 0x31, 'BALANCE', 0x32, 'ORIGIN', 0x33, 'CALLER', 0x34, 'CALLVALUE', 0x35, 'CALLDATALOAD', 0x36, 'CALLDATASIZE', 0x37, 'CALLDATACOPY', 0x38, 'CODESIZE', 0x39, 'CODECOPY', 0x3a, 'GASPRICE', 0x3b, 'EXTCODESIZE', 0x3c, 'EXTCODECOPY', 0x40, 'BLOCKHASH', 0x41, 'COINBASE', 0x42, 'TIMESTAMP', 0x43, 'NUMBER', 0x44, 'DIFFICULTY', 0x45, 'GASLIMIT', 0x50, 'POP', 0x51, 'MLOAD', 0x52, 'MSTORE', 0x53, 'MSTORE8', 0x54, 'SLOAD', 0x55, 'SSTORE', 0x56, 'JUMP', 0x57, 'JUMPI', 0x58, 'PC', 0x59, 'MSIZE', 0x5a, 'GAS', 0x5b, 'JUMPDEST', 0x60, 'PUSH1', 0x61, 'PUSH2', 0x62, 'PUSH3', 0x63, 'PUSH4', 0x64, |
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
# usage ./yt.sh <https://youtube.com/watch?v=....> | |
urldecode() { | |
local url_encoded="${1//+/ }" | |
printf '%b' "${url_encoded//%/\\x}" | |
} | |
video_url="$1" | |
raw_url=$(curl \ | |
-H 'Upgrade-insecure-requests: 1' \ | |
-H 'Cache-control: max-age=0' \ | |
-H 'Accept-language: en-US,en;q=0.8,bn;q=0.6' \ |
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
#!/bin/bash | |
usage() { | |
cat <<EOF | |
Usage: $0 [options] | |
Options: | |
-h print this usage | |
-u url to check | |
-p proxy to use |
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
// _ _ _ | |
// (_) | | (_) | |
// __ _ _ __ _ _ __ ___| |__ _ ___ | |
// / _` | '__| | '_ \ / __| '_ \ | / __| | |
//| (_| | | | | | | | (__| | | |_| \__ \ | |
// \__, |_| |_|_| |_|\___|_| |_(_| |___/ | |
// __/ | _/ | | |
// |___/ |__/ by Silur | |
// removes all christmas related shit from facebook wall | |
var list = document.getElementsByTagName("p"); |
NewerOlder