Skip to content

Instantly share code, notes, and snippets.

Avatar

Gianluca Gabrielli StayPirate

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am staypirate on github.
  • I am crazybyte (https://keybase.io/crazybyte) on keybase.
  • I have a public key ASAafxmFT8aeaQyYgtTaYtLfHNCBC8qXMs0CVrmlaCeRIgo

To claim this, I am signing this object:

@StayPirate
StayPirate / perimeter.sh
Last active Jun 12, 2020
The script generates a report of the external perimeter.
View perimeter.sh
#!/bin/bash
###
### To get a fresh list of FQDNs go to [repo]/module/route53 and run
### cat * | grep -E "\s*name\s*=" | awk '{print $3}' | cut -d"\"" -f2 | grep -Ev "^#" | rev | cut -c2- | rev | sort -u
###
if [ ! -n "$1" ]; then
echo "Usage:"
echo -e "\t${0} domains_list.txt [--alive] [--webserver]"
exit 1
fi
@StayPirate
StayPirate / macspoof@.service
Created Dec 9, 2019
Change macaddr at boot using macchanger
View macspoof@.service
[Unit]
Description=macchanger on %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
ExecStart=/usr/bin/macchanger -m 54:e1:ad:9b:71:e4 %I
Type=oneshot
@StayPirate
StayPirate / mac-changer@.service
Last active Dec 9, 2019
Enable this unit to automatically change the macadd at boot. Macadd is hardcoded.
View mac-changer@.service
[Unit]
Description=MAC Address Change %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set dev %i address 54:e1:ad:9b:71:e4