Skip to content

Instantly share code, notes, and snippets.

View StayPirate's full-sized avatar

Gianluca Gabrielli StayPirate

View GitHub Profile
@StayPirate
StayPirate / mac-changer@.service
Last active December 9, 2019 10:04
Enable this unit to automatically change the macadd at boot. Macadd is hardcoded.
[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
@StayPirate
StayPirate / macspoof@.service
Created December 9, 2019 12:47
Change macaddr at boot using macchanger
[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 / perimeter.sh
Last active June 12, 2020 10:13
The script generates a report of the external perimeter.
#!/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

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: