DNET(8) System Manager's Manual DNET(8) (NAME) dnet - dumb (SYNOPSIS) dnet command args [...] (DESCRIPTION) dnet dnet(3) . ( ) ( ARP ) . (Payload generation commands) addr address [...] address ( IP MAC) . hex string [...] string C ( shellcode) . rand len len . (Packet encapsulation commands) eth [type type] [src mac] [dst mac] . type `arp', `ip', . arp [op op] [sha mac] [spa host] [tha mac] [tpa host] ARP . ARP op `req', `rep', `revreq', `revrep', . ip [tos num] [id num] [off offset] [ttl num] [proto protocol] [src host] [dst dst] IP . offset ( `+' ) . protocol . icmp [type num] [code num] ICMP . tcp [sport port] [dport port] [flags flags] [seq num] [ack num] [win num] [urp num] TCP . port . TCP flags `SAFRPU' . udp [sport port] [dport port] UDP . port . (Packet transmission commands) send [device] . device IP . . (Kernel interface commands) arp show ARP . arp get host ARP host. arp add host mac ARP mac host. arp delete host ARP host. fw show . fw add|delete action direction device protocol src[:port[-max]] dst[:port[-max]] [type[/code]] . action `allow' `block' . `in' `out' . device `any' . protocol . TCP UDP port ( max) . ICMP type ( code ) . intf show . intf get device device. intf set device [alias host] [dst host] [inet host] [link mac] [up|down] [arp|noarp] device. route show . route get dst dst, IP CIDR. route add dst gw dst gw. route delete dst dst. (EXAMPLES) UDP (shellcode) : dnet hex "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89" \ "\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80" \ "\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff\xff\xff/bin/sh" | \ dnet udp sport 555 dport 666 | \ dnet ip proto udp src 1.2.3.4 dst 5.6.7.8 | dnet send ARP : dnet arp op req sha 0:d:e:a:d:0 spa 10.0.0.3 tpa 10.0.0.4 | \ dnet eth type arp src 0:d:e:a:d:0 dst ff:ff:ff:ff:ff:ff > arp.pkt dnet send fxp0 < arp.pkt dnet send fxp0 < arp.pkt : # IP ICMP echo "monkey monkey monkey monkey" | dnet icmp type 8 code 0 | \ dnet ip proto icmp src 1.2.3.4 dst 5.6.7.8 > ping.pkt # IP dd if=ping.pkt of=ping.data bs=20 skip=1 # IP split -b 24 ping.data p. # dnet ip id 1 off 0+ proto icmp src 1.2.3.4 dst 5.6.7.8 < p.aa | \ dnet send dnet ip id 1 off 24 proto icmp src 1.2.3.4 dst 5.6.7.8 < p.ab | \ dnet send (SEE ALSO) dnet(3) (AUTHORS) Dug Song Oliver Falk Linux 6.12.107+deb13-amd64 October 17, 2001 Linux 6.12.107+deb13-amd64