1. Download our Official Android App: Forums for Android!

Apps Android Development with tcpdump.

Discussion in 'Android Development' started by warriorz, May 3, 2012.

  1. warriorz

    warriorz Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    May 3, 2012

    May 3, 2012
    1
    0
    5
    Hi everyone, l'm having trouble finding information online, mainly due to my naivety with programming, and l'd really appreciate any sort of advice.

    I'm creating an android application that will sniff the entire network and display the results to screen. I'm aware of similar applications in the market however from my research l have found them to only monitor the packets on the device itself, not including the other traffic on the network (caused by other devices).

    make sense? It is possible to tap into the network and intercept every packet right? l believe this is known as "monitor mode"? I'm using a Transformer Prime.

    well anyway, l've created my UI, and have root access, installed TCPDUMP and works well through the terminal emulator.

    Now to my question, How would I go about implementing TCPDUMP into my application to compute the necessary commands? Once I've created the strings to send, how would I actually send them to TCPDUMP and relay the information across to my app?

    I hope this makes sense, once again l'm sorry for my noobness.
    Thanks
     

    Advertisement

  2. wubbzy

    wubbzy Well-Known Member
    Rank:
    None
    Points:
    63
    Posts:
    109
    Joined:
    Dec 19, 2011

    Dec 19, 2011
    109
    32
    63
    *nix kernel's by day
    Silicon Valley
    Due to speed of thing (or not) I would not recommend a java level tcpdump, though I'm sure it should be possible. Though I can say that you can use NDK to do that.
     

Share This Page

Loading...