Language Selection

English French German Italian Portuguese Spanish

Monitoring network traffic with Ruby and Pcap

Filed under
HowTos

There are many situations where the ability to monitor network traffic can save a lot of time and effort. If you want to reverse engineer a network protocol, keep an eye on junior's browsing habits, or blackmail your evil boss, Ruby and libpcap can make it easy! Libpcap is a packet sniffing library originally designed by the Lawrence Berkeley National Laboratory for use with their tcpdump utility. With this excellent Ruby binding for libpcap, you can monitor traffic all over your network with only a few simple lines of code. Let's start with a simple script that will display the URLs of remote files accessed by local network users via web browser.

Full Article.

More in Tux Machines

Putin's New Internet Czar Wants Apple and Google to Pay More Taxes

Microsoft, Google and other U.S. companies “reached the point of no return” when they complied with sanctions over Putin’s annexation of Crimea by halting all business with the peninsula, according to Klimenko. As a result, it’s “inevitable” Russia will switch state networks from Windows to an open-source system based on Linux, a move 22,000 municipal governments are prepared to make immediately, he said. Read more

FOSS Licensing

  • Confused by license compatibility? A new article by Richard Stallman may help
    Richard Stallman has published a new guide on gnu.org titled License compatibility and relicensing. Gnu.org is home to a whole host of resources on free software licensing, including frequently asked questions about GNU licenses and our list of free software licenses. Our license list contains information on which licenses are compatible with the GNU General Public License as well as a brief description of what it means to be compatible. This latest article by Stallman provides a more in–depth explanation of what compatibility means and the different ways in which it is achieved.
  • The most important part of your project might not even be a line of code
    What is licensing? Why does it matter? Why should you care? There are many reasons that licensing is an important part of a project you are working on. You are taking the time to write code and share it with the world in an open way, such as publishing it on GitHub, Bitbucket, or any number of other code-hosting services. Anyone might stumble across your code and find it useful. Licensing is the way that you can control exactly how someone who finds your code can use it and in what ways.

Smoother Scrolling in Firefox 46