Skip to content

Instantly share code, notes, and snippets.

@jpenalbae
jpenalbae / proxy_tester.sh
Created June 21, 2023 08:52
Simple proxy tester with multi-threading support using bash and curl
#!/bin/bash
#
# Simple proxy tester with multi-threading support.
# Tests socks4, socks5, and http proxies.
#
# Usage: ./proxy_tester.sh [protocol] [proxy_list] [nthread] [url] [timeout]
# Example: ./proxy_tester.sh http proxies.txt 10 https://www.google.com/ 5
# Set default values for test URL and timeout
@jpenalbae
jpenalbae / peek.sh
Last active October 9, 2024 19:45
Record desktop area on linux using slop and ffmpeg
#!/bin/bash
# Video Quality
# The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default,
# and 51 is worst quality possible. A lower value generally leads to higher
# quality, and a subjectively sane range is 17–28
QUALITY=28
# check if slop command exists
if ! command -v slop &> /dev/null
@jpenalbae
jpenalbae / black-iceprog.py
Last active November 6, 2017 07:26
Programmer for blackice
#!/usr/bin/python
import sys
import serial
def send_data(devname, filename):
wrote = 0
try:
@jpenalbae
jpenalbae / index.js
Created February 6, 2015 13:34
Quick PoC extending node.js dns module to add AXFR request support
var dns = require('dns');
var net = require('net');
var axfrReqProloge =
"\x00\x00" + /* Size */
"\x00\x00" + /* Transaction ID */
"\x00\x20" + /* Flags: Standard Query */
"\x00\x01" + /* Number of questions */
"\x00\x00" + /* Number of answers */