USAGE:(1)

πŸ’– USAGE:(1) πŸ’–

okay bestie, welcome to the USAGE: page, manual section 1, from the User Commands corner of the world 🫢 this one is literally just called Usage: and it's here to help you send arbitrary IP packets ✨


✨ NAME ✨

Usage: β€” send arbitrary IP packets πŸ’Œ


🌸 SYNOPSIS 🌸

sendip [-v] [-d data] [-h] [-f datafile] [-p module] [module options]
hostname

πŸŽ€ DESCRIPTION πŸŽ€

so basically, here's the tea on every flag πŸ‘‡

  • -d data β€” tack this data onto the end of the packet as a string. and the data can be any of these vibes: rN to generate N random(ish) data bytes; 0x or 0X followed by hex digits; 0 followed by octal digits; or literally any other stream of bytes πŸ“
  • -s options β€” set socket options. the valid ones are: b (SO_BROADCAST) which lets you send packets to broadcast addresses; i (IP_HDRINCL) which is ON BY DEFAULT and includes IP headers (expert use only! πŸ’€); and 6 (IPV6_*) also ON BY DEFAULT, which is various options for setting ipv6 headers ✨
  • -f datafile β€” read packet data from a file πŸ“‚
  • -h β€” print this message πŸ—’οΈ
  • -p module β€” load the specified module (see below, bestie, it's right there πŸ‘€)
  • -v β€” be verbose πŸ—£οΈ

modules load in the order the -p option shows up. the headers from each module get put immediately inside the headers from the previous model (yes it says "model", we love a typo, no cap) in the final packet 🧚 for example, to embed bgp inside tcp inside ipv4, you'd do sendip -p ipv4 -p tcp -p bgp ....

Modules available at compile time: πŸ‘‘

ipv4 ipv6 icmp tcp udp bgp rip ntp

πŸ’… DESCRIPTION (the sequel, it's giving dΓ©jΓ  vu) πŸ’…

not me repeating myself but fr fr the page does it so we do it πŸ’– here's the whole rundown again:

  • -d data β€” add this data as a string to the end of the packet. Data can be: rN to generate N random(ish) data bytes; 0x or 0X followed by hex digits; 0 followed by octal digits; any other stream of bytes 🌈
  • -s options β€” set socket options. Valid options are: b (SO_BROADCAST) allow sending packets to broadcast addresses; i (IP_HDRINCL) (ON BY DEFAULT) include IP headers (expert use only!); 6 (IPV6_*) (ON BY DEFAULT) various options for setting ipv6 headers πŸ’œ
  • -f datafile β€” read packet data from file πŸ“
  • -h β€” print this message 🫢
  • -p module β€” load the specified module (see below) 🌟
  • -v β€” be verbose 😌

Modules are loaded in the order the -p option appears. The headers from each module are put immediately inside the headers from the previous model in the final packet. For example, to embed bgp inside tcp inside ipv4, do sendip -p ipv4 -p tcp -p bgp .... πŸ”₯

Modules available at compile time: πŸ¦‹

ipv4 ipv6 icmp tcp udp bgp rip ntp
heads up bestie: IP_HDRINCL is flagged as expert use only! so pls don't go wild with it unless you know exactly what you're doing, mwah πŸ’‹

and that's the whole page, you ate it, periodt πŸ‘‘ the bottom of the original was giving Usage: ./sendip [-v] [-d data... and it's dated September 2020, so shoutout to that September 2020 moment for bringing us this iconic little manual, and to USAGE:(1) for being the moment itself πŸ’– bye bestie, go send some packets responsibly 🌸✨

πŸ“¦ where this page comes from