Skip to content

Leproide/Rogue-DHCP-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Rogue DHCP Detector

A lightweight PowerShell script that detects rogue DHCP servers on your network using tshark (from Wireshark).
It continuously monitors DHCP OFFER and ACK packets and alerts when the responding server is not in your list of trusted DHCP servers.


Features

  • Detects unauthorized DHCP servers in real time
  • Logs suspicious activity to a file
  • Highlights rogue servers in red, trusted ones in green
  • Easy to configure with your own trusted DHCP server IPs

Requirements

  • Windows with PowerShell
  • Wireshark (for tshark.exe)
  • Administrative privileges (required to capture network traffic)

Configuration

At the top of the script you can configure:

  • Authorized DHCP server
  • LOG file path
  • tshark path
  • Interface number (you can find it with tshark.exe -D)

Testing

You can test the script with the following utilities:


Screenshot

immagine

About

Find a rogue DHCP server with wireshark and powershell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors