running tcpdump from android application

180 views
Skip to first unread message

kaisar

unread,
Sep 2, 2010, 6:52:45 AM9/2/10
to android-ndk
hi,

I am trying to develop an application that will run tcpdump. can
anyone suggest me anything regarding this issue?

thanks
kaisar

David Turner

unread,
Sep 3, 2010, 12:36:19 PM9/3/10
to andro...@googlegroups.com
tcpdump requires root privileges, so won't run in an application process.


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


kaisar

unread,
Sep 4, 2010, 3:53:14 AM9/4/10
to android-ndk

thanks a lot for your reply. do u think it will be possible to run
tcpdump from a script and execute the script from an application ?


thanks
kaisar

David Turner

unread,
Sep 6, 2010, 4:10:15 AM9/6/10
to andro...@googlegroups.com
I doubt an application can launch a script with root privileges ! Otherwise, it would have these privileges already.
(that is unless the script/tcpdump is already installed on the system with setuid permissions, which is not the case
on Android production devices).



thanks
kaisar

Reply all
Reply to author
Forward
0 new messages