Skip to content

Instantly share code, notes, and snippets.

View fer's full-sized avatar
🏠
Working from home

fer

🏠
Working from home
View GitHub Profile
@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 / README.md
Last active June 7, 2021 11:25
Zeek IDS

filebeat boilerplate code

Zima SIEM

Fecha de Inicio: 24 de Mayo, 2021 2 meses

Ideas

  • Alertas de los twits que hablan de ti
@fer
fer / 1.json
Last active November 26, 2019 10:36
Zenklub API Simulation
{
"personalInfo": {
"name": "Name Surname",
"profession": "Professional Name",
"location": "Lisbon",
"numStars": 4,
"numReviews": 20,
"price": 160,
"currency": "R$",
"minutes": 50,
### Keybase proof
I hereby claim:
* I am fer on github.
* I am fer (https://keybase.io/fer) on keybase.
* I have a public key ASBcfkrHuB4hdBfTTuAC5mh4xhRwIuUQhizNrGupB7rmzAo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am fer on github.
  • I am fer (https://keybase.io/fer) on keybase.
  • I have a public key whose fingerprint is EF47 6AF8 0B98 940E 3937 351D 40A6 62BE 8C89 52EA

To claim this, I am signing this object:

@fer
fer / colored_bash.session
Last active June 29, 2021 09:27
My ShellScript
Script iniciado (mar 29 sep 2009 23:51:27 CEST
)]0;fer@pagafantas: ~/Escritoriofer@pagafantas:~/Escritorio$ vyes "$(seq 232 255;seq 254 -1 233)" | while read i;
do printf "\x1b[48;5;${i}m\n"; sleep .01; done



@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
# ············································································