Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does someone has any script that can "CAM attack" a switch/router, so that it will act as a HUB? Are there any tools for it in the repositories?

share|improve this question
Why do you want to know these things? – Keith Jun 17 '11 at 7:26
for testing purposes. if i would be a "bad" person i would rather use firesheep, etc. but i'm not. – LanceBaynes Jun 17 '11 at 10:19
This kind of topic is fine as an educational question. But @Lance, please try to improve your question and show that you've done some research. If you really want to understand security, you need to try the exploits and the defenses. You must do this on your own equipment, not on systems belonging to other people, or on systems belonging to your employeer (Unless your employeer gives you permission, or want you to try vulnerability tests). Also, this question really belongs on another forum like security.stackexchange.com or ServerFault.com, since this is not really a Unix-specific question. – Stefan Lasiewski Jun 23 '11 at 17:42
up vote 2 down vote accepted

The application you are looking for is macof which is part of the dsniff toolkit. You'll find that ettercap is also quite useful when doing any sort of network auditing on a switched network.

Warning: I'm a firm believer that you need to understand the threat to defend against it, but you best be using these tools in your own lab on your own equipment. If that is not the case, I guarantee someone much smarter than the both of us will bring down a righteous hammer on you. Play nice!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.