Capturing a packet in Linux

Posted on 2004-11-29
Last Modified: 2010-03-31
Alright, I'm not sure if this is the right place for this but here it goes.  I am working on a group project for my network security course.  The basic concept is to encrypt/decrypt NFS data packets, but outside the kernel, i.e., capture the entire NFS packet, encrypt it, put encrypted data in another packet, decrypt it, and finally give it to the kernel on the other side. Now this is mostly a proof of concept project and I know it will be slow and a host of other things are wrong here.  What I need to know is; how do I go about grabbing a packet from the network?
Question by:Mach70803
    LVL 3

    Expert Comment


    Author Comment

    Thanks for the info, but what I really needed to know was how I can utilize the libpcap and libpnet libraries provided by Linux, but using Java.  Sorry for not being more specific.
    LVL 86

    Accepted Solution

    LVL 86

    Expert Comment


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    nested interface 5 30
    java JDK Download 7 49
    powerN  challenge 3 36
    Understanding websocket example in spring 1 21
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now