Skip to content

Instantly share code, notes, and snippets.

View elnappo's full-sized avatar

Fabian Weisshaar elnappo

View GitHub Profile
@elnappo
elnappo / myip.sh
Last active January 1, 2016 14:49
Get your IPv4, IPv6 and hostname
#!/usr/bin/env bash
ipv4=$(curl -s ipv4.icanhazip.com)
echo IPv4: $ipv4
hostname_ipv4=$(dig +noall +answer +short -x $ipv4)
echo rDNS: $hostname_ipv4
ipv6=$(curl -s ipv6.icanhazip.com)
echo IPv6: $ipv6
@elnappo
elnappo / gist:56512d222e180d73f6b6defc3fd41a55
Created June 10, 2017 19:39
Arch Linux install commands
loadkeys de-latin1
ls /sys/firmware/efi/efivars
ping google.de
timedatectl set-ntp true
fdisk -l
fdisk /dev/sdb
cryptsetup -s 512 luksFormat /dev/sdb2
cryptsetup open /dev/sdb2 cryptroot
mkfs.btrfs /dev/mapper/cryptroot
### Keybase proof
I hereby claim:
* I am elnappo on github.
* I am elnappo (https://keybase.io/elnappo) on keybase.
* I have a public key ASBWLm4lX4Yh4-aAAT0MpSkSxBXNQ1S65mZUe1_g0H5zcgo
To claim this, I am signing this object:
@elnappo
elnappo / band_enumeration.py
Last active June 27, 2018 13:07
Amateur Data Interchange Format (ADIF) v3.0.8 for python
band_enumeration = [
{
"band": "2190m",
"lower_freq": 0.1357,
"upper_freq": 0.1378
},
{
"band": "630m",
"lower_freq": 0.472,
"upper_freq": 0.479
@elnappo
elnappo / logstash-suricata.conf
Last active August 22, 2022 06:21
Suricata Logstash Elasticsearch
input {
file {
path => ["/var/log/suricata/eve.json"]
sincedb_path => ["/var/lib/logstash/since.db"]
codec => json
type => "SuricataIDPS"
}
}
filter {
@elnappo
elnappo / gist:34b5dae235043526b9b3
Created June 14, 2015 16:39
graph traceroutes with scapy
from scapy.all import *
hosts = ["whitehouse.gov", "mit.edu", "heise.de", "google.ru", "telekom.de", "facebook.com", "vodafone.de", "tu-berlin.de", "m-net.de", "067.cz"]
res,unans = traceroute(hosts)
res.graph(target="> traceroute_graph.svg")