Skip to content

Instantly share code, notes, and snippets.

Gianluca Gabrielli StayPirate

Block or report user

Report or block StayPirate

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@StayPirate
StayPirate / perimeter.sh
Last active May 31, 2020
The script generates a report of the external perimeter.
View perimeter.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "In order to exploit required nmap functionalities, this script must be run as root."
exit 1
fi
_temp_csv_file="/tmp/DA_temp_csv_file.csv"
_dns_server="172.16.61.2"
# Add CSV Header
#echo "Domain,IP,IP Owner,Host Alive,Webserver" > $_temp_csv_file
@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
You can’t perform that action at this time.