Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viproy VoIP Pen-Test Kit - Cisco CDP Testing Module #4061

Closed
wants to merge 9 commits into from

Conversation

fozavci
Copy link
Contributor

@fozavci fozavci commented Oct 23, 2014

This modules is developed to send custom Cisco CDP packets. It can be used to attack Cisco VLAN environment or voice VLANs. This was ported from Viproy (http://www.viproy.com)

Validation

  • Use the module with default options as non-root. It should fail gracefully
  • Use the module with default options as root. It should send properly formed CDP packets (validate with wireshark)
  • Use the module as root, changing the various options. It should send properly formed CDP packets (validate with wireshark) that reflect the set options.

@jhart-r7
Copy link
Contributor

I'm not sure about the sniff functionality in this module. It needs a lot of cleanup and does less than what tcpdump/wireshark could already do for you. I'm going to just remove it unless there are any objections.

@jhart-r7 jhart-r7 removed their assignment Nov 10, 2014
@jhart-r7
Copy link
Contributor

My most recent push completes the almost complete rewrite of this module. Someone else will need to handle landing this.

@fozavci
Copy link
Contributor Author

fozavci commented Nov 12, 2014

I agree with all the changes, it may be improved when it lands. Thanks for the corrections.

@jhart-r7
Copy link
Contributor

I discussed this (and #4067) with @todb-r7 and it is OK to land. I walked through the validation steps and everything checks out. As an added bonus, where I happened to be when I tested this is a Cisco environment with CDP enabled -- when I ran the module, the Cisco switch I was connected to responds to my CDP messages with useful information, which proves that the CDP messages sent by this module are sound.

Thanks for the contribution, @fozavci!

@jhart-r7
Copy link
Contributor

Also, I am not sure why this didn't auto-close, but you can see in 31b366d that this was merged OK.

@jhart-r7 jhart-r7 closed this Nov 19, 2014
@fozavci
Copy link
Contributor Author

fozavci commented Nov 19, 2014

Thanks for your assistance.

@todb-r7
Copy link

todb-r7 commented Nov 24, 2014

@jhart-r7 looks like there was no merge commit for this module, which is why you never saw the autoclose.

git log --merges modules/auxiliary/spoof/cisco/cdp.rb

Incidentally, none of the commits are signed, either. Not sure how you got in this position. I'm sure it's all okay and it was really you, but I bet there was some rebasing going on, as the commit history on this file doesn't appear to match up with this PR. (See how commit 7e93d89 has a different timestamp from c80dc39).

@todb-r7
Copy link

todb-r7 commented Nov 24, 2014

My guess is that you merged, rebased, got a change from upstream, then pushed. The rebase will remove signatures and rewrite commit history.

@todb-r7
Copy link

todb-r7 commented Nov 24, 2014

By the way, what's the purpose of this module, @fozavci ? The description isn't all that descriptive of why anyone would do this. As far as I can tell, you're sending the discovery packets, sleep for a minute, but then you don't do anything with any response.

I'd love to have some more whys and wherefores in the description. Like mentioning, for starters, that the user should be watching for responses with an external packet sniffer.

todb-r7 pushed a commit to todb-r7/metasploit-framework that referenced this pull request Nov 24, 2014
Fixes the grammar on the SMTP enumeration module and the Cisco CDP
module, and adds a more informative description and reference for the
CDP module introduced on PR rapid7#4061.
@todb-r7 todb-r7 mentioned this pull request Nov 24, 2014
@todb-r7
Copy link

todb-r7 commented Nov 24, 2014

#4258 takes a stab and making the description on this more accurate and useful.

todb-r7 pushed a commit to todb-r7/metasploit-framework that referenced this pull request Nov 24, 2014
From rapid7#4061, please don't decorate author names with URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants