Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
#######
#
# E-scripts on DHCP.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
# An introduction to eev can be found here:
#
#   (find-eev-quick-intro)
#   http://anggtwu.net/eev-intros/find-eev-quick-intro.html
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://anggtwu.net/e/dhcp.e>
#           or at <http://anggtwu.net/e/dhcp.e.html>.
#        See also <http://anggtwu.net/emacs.html>,
#                 <http://anggtwu.net/.emacs[.html]>,
#                 <http://anggtwu.net/.zshrc[.html]>,
#                 <http://anggtwu.net/escripts.html>,
#             and <http://anggtwu.net/>.
#
#######



# «.nmap»	(to "nmap")
# «.dhcpdump»	(to "dhcpdump")

# (find-fline "~/LOGS/2024jun05.emacs" "<twb> edrx: that's probably a DHCPv4 DORA address.")



#####
#
# nmap
# 2024jun06
#
#####

# «nmap»  (to ".nmap")
# (find-status   "nmap")
# (find-vldifile "nmap.list")
# (find-udfile   "nmap/")
# (find-status   "nmap-common")
# (find-vldifile "nmap-common.list")
# (find-udfile   "nmap-common/")
# (find-fline "/usr/share/nmap/nselib/dhcp.lua")
# (find-fline "/usr/share/nmap/nselib/dhcp6.lua")
# (find-fline "/usr/share/nmap/scripts/broadcast-dhcp-discover.nse")
# (find-fline "/usr/share/nmap/scripts/broadcast-dhcp6-discover.nse")
# (find-fline "/usr/share/nmap/scripts/dhcp-discover.nse")
# (find-man "1 nmap")
# (find-sh "nmap --help")
# https://serverfault.com/questions/171744/command-line-program-to-test-dhcp-service

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
sudo nmap --script broadcast-dhcp-discover



#####
#
# dhcpdump
# 2024jun06
#
#####

# «dhcpdump»  (to ".dhcpdump")
# (find-status   "dhcpdump")
# (find-vldifile "dhcpdump.list")
# (find-udfile   "dhcpdump/")
# (find-man "8 dhcpdump")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
sudo dhcpdump -i usb0
sudo dhcpdump -i eth0



# (find-sh "apt-file search bin/dhcpd")




https://stackoverflow.com/questions/62091541/how-can-i-forge-a-dhcp-discovery-packet-using-bash




#  Local Variables:
#  coding:               utf-8-unix
#  End: