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

New Projects from the Ever-Protean World of Open Source

In my previous column, I pointed out that free software was now so successful, and in so many fields, that people might wonder whether there's anything left to do. The question was rhetorical, of course, of course: the ingenuity of the open source community means that people there will always find new and exciting projects. And not just the big one that I suggested of baking strong crypto into all our communication tools. There are countless other novel uses for open source, as these three very different examples below indicate. Read more

Microsoft 'loves' Linux? Then stop attacking open source

According to Satya Nadella, Microsoft loves Linux. He said as much, complete with pictures -- and his team backs him up. In itself, it's a remarkable statement. Nadella's predecessor, Steve Ballmer, described open source in the darkest terms, characterizing it (with the GNU GPL) as a commercial cancer and never retracting the slur. In many ways, that dark prophecy has come true for Microsoft, which has seen its rent-seeking business model steadily eroded by open source. Though it still has a cash cow to milk, Microsoft's monopolies no longer frighten anyone. Read more

Window and Desktop Switcher moved to Look’n’Feel Package

Today we did an important change in how KWin will distribute its assets in the upcoming 5.2 release. When we started our thoughts about the Look’n’Feel Package and how we want to have meta themes for the complete Plasma workspace we also wanted to have this for the Window and Desktop switcher provided by KWin. So the structure of the Look’n’Feel Package already has all the pieces for including the Window and Desktop Switcher, but it was not used. Now we finally addressed this for the 5.2 release and moved the default switcher into the Look’n’Feel Package and KWin can locate the switchers from the Look’n’Feel Package. Read more

Today in Techrights