Skip to content

Instantly share code, notes, and snippets.

View fer's full-sized avatar
馃悁
This ain鈥檛 a debut

fer

馃悁
This ain鈥檛 a debut
View GitHub Profile
@fer
fer / usb_password.ino
Last active October 18, 2025 21:06
USB Password Injector with ATmega32U4 (CJMCU / Pro Micro / Leonardo)
/*
USB Password Injector with ATmega32U4 (CJMCU / Pro Micro / Leonardo)
-------------------------------------------------------------------
HOW TO CREATE AND USE THIS PROJECT WITH ARDUINO-CLI
===================================================
1. Create a new sketch folder:
arduino-cli sketch new usb_password
cd usb_password
@fer
fer / terminator.md
Created March 27, 2022 21:54
kali tricks
@fer
fer / thm-launcher.sh
Created July 27, 2021 20:59
THM Room Launcher
#!/bin/bash
# Rooms length
# jq -r '.rooms | length' thm-rooms.json
# Rooms titles
# ROOM_TITLES=`jq '.rooms[].title' thm-rooms.json | tr '\n' ' '`
# ROOM_TITLES=`jq '.rooms[] | [.difficulty, .title]' thm-rooms.json`
# ROOM_TITLES=`jq -r '.rooms[] | [.difficulty, .title] | @csv' thm-rooms.json | tr '\n' ' ' | tr ',' ' '`
# ROOM_TITLES=`jq -r '.rooms[] | [.difficulty, .title] | @tsv' thm-rooms.json`
#!/bin/sh
#
# nmap2md.sh 路 create a simple nmap report on markdown on the fly
#
# By http://github.com/fer
#
# Usage:
#
# 1. Check alive Hosts, grab IP addresses and run scanner:
#
@fer
fer / ls.php
Created October 7, 2012 16:27
PHP FileSystem using Composite Pattern
<?php
# 路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路
# Filename: ls.php
# Syntax: php ls.php -d=directory -s
# Options:
# -d=directory (required) input directory to show (default=current)
# -s displays size in bytes (default=disabled)
# Description: Builds a hierarchical representation of the filesystem using
# a composite design pattern http://en.wikipedia.org/wiki/Composite_pattern
# 路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路