mailing list archives
Re: Nmap On Android
From: William John Holden <wjholden () gmail com>
Date: Sun, 06 Feb 2011 19:30:53 -1000
-----BEGIN PGP SIGNED MESSAGE-----
- develop official Nmap Android frontend to Nmap binary. In this case
Android GUI would execute Nmap binary and parse results. Maybe John
Holden is willing to donate some of his interface code?
Take all, take none - it's all GPL.
Key lessons learned:
- I never attempted JNI because root is difficult to obtain in Android.
- Traditional setuid techniques are not reliable. The easiest, albeit
error-prone, method of obtaining root access is to call 'su' through
- If you decide to bundle binaries with your Android app be aware that
Android (Java?) restricts files in R.res.raw to 1MB. I had to implement
a split-like algorithm to reassemble larger files.
- I used android.os.AsyncTask for thread management. Sometimes I
regret that decision and wish I'd stuck with java.lang.Thread.
- android.os.Handler is surprisingly efficient and easy to use for
- com.wjholden.nmap supports Android 1.5 and above, but it appears this
is a waste of time as <11% of Android users use API level <4. See
and http://nmap.wjholden.com/data.php. I'm planning to end support for
API <7 in com.wjholden.nmap version 0.5.0.
I was interested in what Jon Svede said about Nmap4J parsing XML. Don't
have the time or motivation to implement such an interface right now but
it sounds extremely robust.
I'm thrilled to donate code, time, and feedback if there is interest in
an official Nmap.Org Android application. For months I've made a real
effort to clean up my code, follow best practices, and write effective
William John Holden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/