Dtpscan
Detects Cisco DTP modes for VLAN Hopping (passive detection)
Install / Use
/learn @commonexploits/DtpscanREADME
DTPScan
Detects DTP modes for VLAN Hopping (passive check)
DTPscan will passively sniff the network and detect which switchport mode the switch is configured in to assist with VLAN hopping attacks.
Frogger script can be used to actively attack DTP in an attempt to VLAN hop, but until now the only real way to tell was to review the Cisco switch config file to see how the port is configured to know if it is possible.
This will detect the hex code from DTP and know which mode the switch port is in and give you a result to say if VLAN hopping is possible. As this is passive (does not attack DTP) this is very useful to know it advance.
- This will be a feature of Frogger version 2 soon - releasing DTPscan for now. Frogger 2 will have major changes and will support passive gathering, active attacks and will support ISL as well as 802.1Q.
Developed by Daniel Compton
https://github.com/commonexploits/dtpscan
Released under AGPL see LICENSE for more information
Installing
git clone https://github.com/commonexploits/dtpscan.git
How To Use
./dtpscan.sh
Features
- Passively detects the DTP mode of a Cisco switch for VLAN hopping
- Reports if switch is in Default mode, trunk, dynamic, auto or access mode
Screen Shots



Change Log
- Version 1.3 - Small message typo in output fixed.
- Version 1.2 - Fixed script. Updates to tshark caused script to break.
- Version 1.1 - Updated working
- Version 1.0 - First release. * it may need to work on some of the DTP codes/modes with more testing.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
