|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
com.wjholden.nmap.Nmap
public class Nmap
Field Summary | |
---|---|
static String |
bindir
this is where the nmap/nping/ncat compiled binaries should be stored. |
static boolean |
canGetRoot
tells us if "su" command is available |
static boolean |
DEBUG
This variable is set by the user with the context menu. |
static Handler |
h
handler for inter-thread communication |
static boolean |
hasRunOneScan
tells us whether one or more scans have been executed |
static boolean |
installationVerified
if "verifyInstallation()" method has run this should be set to true |
private EditText |
mArguments
Input area where command-line arguments (other than target IP) |
private Spinner |
mCommandSpinner
Command spinner switches between Nmap, Nping, and Ncat |
private Button |
mHelp
Help button, shows result of [command] --help |
private Spinner |
mOutputSpinner
Switches between Nmap, XML, and Grepable Nmap output |
private TextView |
mResults
Text area where results are shown |
private Button |
mShare
Share button, launches Compose Email activity with message body of any data in mResults |
private Button |
mStart
Start button initiates scan |
private EditText |
mTarget
Input area where user supplies scan target |
static NmapError |
ne
Instance of my custom error logging utility, designed to store (instead of just stream) debugging output for troubleshooting. |
static String |
outputArgs
the command to be executed (nmap, nping, ncat) and optional (and mandatory) command line arguments from mArguments |
static ProgressDialog |
pd
Static so that the other classes can turn it off after it runs. |
private SharedPreferences.Editor |
preferencesEditor
Use this to save application and user settings into the SharedPreferences. |
static int |
scanType
tells the scanning engine what command is to be executed (nmap, nping, ncat) |
private SharedPreferences |
settings
Store both user and application settings in here. |
static String |
sh
location of the 'su' command, if present, otherwise 'sh'. |
private |
sTask
scanning engine thread |
private |
vTask
verify installation thread |
private WifiInfo |
wifiInfo
Provides methods for getting IP address and SSID. |
private WifiManager |
wifiManager
Only used get get IP address and SSID. |
Fields inherited from interface com.wjholden.nmap.Nmap_Constants |
---|
BUFFER_SIZE, INSTALL_ERROR, INSTALL_GOOD, INSTALL_NO_ROOT, MENU_GROUP_DEBUG, MENU_GROUP_EXTRA_OPTIONS, MENU_ITEM_DEBUG_EMAIL, MENU_ITEM_DEBUG_ENABLE, MENU_ITEM_EXIT, MENU_ITEM_MORE_HELP, MENU_ITEM_REINSTALL, RUN_COMPLETE, RUN_ERROR, RUN_LINE, SCANTYPE_NCAT, SCANTYPE_NDIFF, SCANTYPE_NMAP, SCANTYPE_NPING, TAG, THREAD_ERROR |
Constructor Summary | |
---|---|
Nmap()
|
Method Summary | |
---|---|
void |
onCreate(Bundle savedInstanceState)
|
protected void |
onDestroy()
|
boolean |
onMenuItemSelected(int featureId,
MenuItem item)
|
protected void |
onPause(Bundle outState)
|
boolean |
onPrepareOptionsMenu(Menu menu)
|
protected void |
onResume(Bundle savedInstanceState)
|
private void |
saveUserEntry()
|
static void |
setBinDir(String b)
|
static void |
setSh(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String bindir
public static boolean canGetRoot
public static boolean DEBUG
public static Handler h
public static boolean hasRunOneScan
public static boolean installationVerified
private EditText mArguments
private Spinner mCommandSpinner
private Button mHelp
private Spinner mOutputSpinner
private TextView mResults
private Button mShare
private Button mStart
private EditText mTarget
public static NmapError ne
public static String outputArgs
public static ProgressDialog pd
private SharedPreferences.Editor preferencesEditor
public static int scanType
private SharedPreferences settings
public static String sh
privatesTask
privatevTask
private WifiInfo wifiInfo
private WifiManager wifiManager
Constructor Detail |
---|
public Nmap()
Method Detail |
---|
public void onCreate(Bundle savedInstanceState)
protected void onDestroy()
public boolean onMenuItemSelected(int featureId, MenuItem item)
protected void onPause(Bundle outState)
public boolean onPrepareOptionsMenu(Menu menu)
protected void onResume(Bundle savedInstanceState)
private void saveUserEntry()
public static void setBinDir(String b)
public static void setSh(String s)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |