PACKETFORGE-NG(1)

πŸ“¦
version 1.7+git20230807.4bf83f1a Β· 2 versions
  • 1.7+git20230807.4bf83f1a Β· alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.6+git20210130.91820bc Β· ubuntu jammy
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– PACKETFORGE-NG(1) β€” the packet-forging bestie πŸ’–

okay so bestie, welcome to packetforge-ng, a General Commands Manual page and honestly? it's giving legend behaviour. sit down, grab a strawberry πŸ“, we're building packets.


✨ NAME ✨

packetforge-ng β€” forge packets: ARP, UDP, ICMP or custom packets. πŸ’…


🌸 SYNOPSIS 🌸

packetforge-ng <mode> <options>

like. that's it. that's the whole vibe. a mode, some options, and you're off. πŸ¦‹


πŸŽ€ DESCRIPTION πŸŽ€

so packetforge-ng is the tool you call when you need to create encrypted packets that you can then use for injection. no cap, that's literally its whole job and it eats every time.

you can make lots of different packet types:

  • arp requests πŸ’–
  • UDP 🌈
  • ICMP ⭐
  • custom packets 🧚

but the most common use β€” the main character move, iykyk β€” is creating ARP requests for subsequent injection. that's the one everybody's obsessed with.

πŸ’€ important lore drop: to create an encrypted packet you MUST have a PRGA (pseudo random generation algorithm) file. that's the thing that encrypts the packet you're building. no PRGA, no packet, periodt.

where do you get a PRGA file tho? bestie, you typically get it from aireplay-ng chopchop or fragmentation attacks. that's the plug. 🫢


πŸ‘‘ OPTIONS πŸ‘‘

here's the full menu, no skips, no summaries, every single one. πŸ’œ

  • -H, --help β€” shows the help screen. your lil safety net. πŸ™ˆ
  • -p <fctrl> β€” set frame control word (hex)
  • -a <bssid> β€” set Access Point MAC address
  • -c <dmac> β€” set Destination MAC address
  • -h <smac> β€” set Source MAC address
  • -j β€” set FromDS bit
  • -o β€” clear ToDS bit
  • -e β€” disable WEP encryption
  • -k <ip:[port]> β€” set destination IP (and port)
  • -l <ip:[port]> β€” set source IP (and port)
  • -w <file> β€” write packet to this pcap file
  • -r <file> β€” read packet from this pcap file
  • -y <file> β€” read PRGA from this file
  • -t <ttl> β€” set Time To Live in IP-Header
  • -s <size> β€” set size of the generated null packet.
  • -0, --arp β€” forge an ARP packet
  • -1, --udp β€” forge an UDP packet
  • -2, --icmp β€” forge an ICMP packet
  • -3, --null β€” forge a llc null packet
  • -9, --custom β€” build a custom packet, requires -r to read an unencrypted frame out of a pcap file. 🫑

πŸ”₯ EXAMPLE πŸ”₯

here's the moment you've been waiting for, the demo, the slay:

packetforge-ng -y test.xor -a 00:09:5b:12:40:cc -h 00:10:2a:cb:30:14 -k 192.168.1.100 -l 192.168.1.1 -w arp-request.cap

look at that. PRGA from test.xor, AP MAC 00:09:5b:12:40:cc, source MAC 00:10:2a:cb:30:14, dest IP 192.168.1.100, source IP 192.168.1.1, and out pops arp-request.cap. ate. πŸ’…βœ¨


🧚 AUTHOR 🧚

this manual page was written by Thomas d'Otreppe. 🫢

permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.

on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. πŸ“œ


πŸ’« SEE ALSO πŸ’«

the whole friend group, the entire squad, the group chat if you will:


and that's the page bestie!! 🌈⭐

this was Version 1.7.0, dated May 2022 β€” and it's still PACKETFORGE-NG(1) in this house. πŸ’–

bye ily, go forge something iconic. πŸ‘‘πŸ¦‹