how to hack a layer 2 network- DTP and VTP attack

src
fig1: simple network topology

You must be root to run yersinia 0.8.2

┌──(root💀kali)-[/home]
└─# yersinia -h
۲�۲��
�������۲�
۲��������۲�
�����۱����������
����۱������������
����۱������������� Yersinia…
������������������۲��
۲���۱��������������۲�� The Black Death for nowadays networks
������۱�����������������
�������۱���������������۲� by Slay & tomac
۲�����۱�������������������
�����۱������������������� http://www.yersinia.net
۲����۱���������������۲ yersinia@yersinia.net
۲�����۱���������������
�������۱����������۲�
�۲���������۱������� Prune your MSTP, RSTP, STP trees!!!!
�������������۲�
Usage: yersinia [-hVGIDd] [-l logfile] [-c conffile] protocol [protocol_options]
-V Program version.
-h This help screen.
-G Graphical mode (GTK).
-I Interactive mode (ncurses).
-D Daemon mode.
-d Debug.
-l logfile Select logfile.
-c conffile Select config file.
protocol One of the following: cdp, dhcp, dot1q, dot1x, dtp, hsrp, isl, mpls, stp, vtp.
Try ‘yersinia protocol -h’ to see protocol_options helpPlease, see the man page for a full list of options and many examples.
Send your bugs & suggestions to the Yersinia developers <yersinia@yersinia.net>
MOTD: Having lotto fun with my Denon AVC-A11XVA… :)
┌──(root💀kali)-[/home]
└─# yersinia -G
fig2: DTP packets sent from attacker
fig3: access port converted to a trunk port
fig: attacker sending VTPpackets to switch
fig: the VLAN20 removed from the switch

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
0xdom

I'm a cybersecurity aspirant currently working on my skills, wannabe hacker.