├── .classpath ├── .gitignore ├── .project ├── AndroidManifest.xml ├── README.md ├── build.properties ├── build.xml ├── default.properties ├── gpl-2.0.txt ├── libs └── org.apache.http.legacy.jar ├── local.properties-example ├── res ├── drawable-hdpi │ └── icon.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── drawable │ ├── arrow_right.png │ ├── back.png │ ├── btn_bg.xml │ ├── btn_donate.png │ ├── cancel.png │ ├── closed.png │ ├── computer.png │ ├── computer_down.png │ ├── connect.png │ ├── disabled.png │ ├── discover.png │ ├── drawer_bg.xml │ ├── export.png │ ├── icon.png │ ├── install.png │ ├── open.png │ ├── router.png │ ├── settings.png │ └── wifi.png ├── layout-land │ └── portscan.xml ├── layout │ ├── dialog_edittext.xml │ ├── discovery.xml │ ├── help.xml │ ├── list_host.xml │ ├── list_port.xml │ ├── main.xml │ ├── portscan.xml │ └── scan_single.xml ├── raw │ ├── saves.bin │ └── services.bin ├── values-de │ └── strings.xml ├── values-es │ └── strings.xml ├── values-fr │ └── strings.xml ├── values-zh-rCN │ └── strings.xml ├── values-zh-rTW │ └── strings.xml ├── values │ ├── arrays.xml │ ├── colors.xml │ ├── strings.xml │ └── styles.xml └── xml │ └── preferences.xml ├── scripts ├── create-nic-db.py ├── create-probes-db.py ├── create-services-db.py └── make-native.sh └── src └── info └── lamatricexiste └── network ├── AbstractDiscovery.java ├── ActivityDiscovery.java ├── ActivityMain.java ├── ActivityNet.java ├── ActivityPortscan.java ├── AsyncPortscan.java ├── DefaultDiscovery.java ├── DnsDiscovery.java ├── Network ├── Banner.java ├── DownloadFile.java ├── HardwareAddress.java ├── HostBean.java ├── NetInfo.java ├── OsFingerprint.java ├── Ping.java ├── RateControl.java └── SendSmbNegotiate.java └── Utils ├── Db.java ├── DbUpdate.java ├── Export.java ├── Help.java ├── Prefs.java ├── Save.java └── UpdateNicDb.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | gen 2 | bin 3 | .settings 4 | network.kpf 5 | scripts/db-to-gz.py 6 | local.properties 7 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | NetworkDiscovery 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 13 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 33 | 37 | 38 | 39 | 40 | 48 | 49 | 50 | 51 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Network Discovery 2 | ================= 3 | 4 | Machines discovery/mapping (over Wifi) and port scan (over 3G/Wifi) utility for Android devices. 5 | 6 | Features 7 | -------- 8 | 9 | - Discover Machines on a LAN (connect/ping discovery, dns discovery) 10 | - TCP Port Scanner (connect() scan) 11 | - NIC vendor database 12 | - Export results to your sdcard in XML 13 | - Fast access to Wifi Settings 14 | - Adaptive scanning rate (slow start, then adaptive to network latency) 15 | - Open Source, available at http://github.com/rorist/android-network-discovery 16 | 17 | Build 18 | ----- 19 | git clone https://github.com/rorist/android-network-discovery.git 20 | cd android-network-discovery; 21 | cp local.properties-example local.properties 22 | vim local.properties #add path to the Android SDK 23 | ant debug install 24 | 25 | Todo 26 | ---- 27 | 28 | - Save all scan in DB, open previous scan, export previous scan, etc 29 | - Settings: prevent phone from sleeping 30 | - NMAP build script (ARM and other arch (using AOSP?)) 31 | - Add new info such as Hops (using MTR?) 32 | - Support of other protocol: UDP, SCTP 33 | - Send custom packets (shell codes, exploits, probes, ...) 34 | - Nat Traversal 35 | - Proxy (auto)support 36 | 37 | Credits 38 | ------ 39 | 40 | - Design: oblivioncreations.se 41 | - Icons: Crystal and Oxygen projects 42 | - German translation, bugfixes: SubOptimal 43 | - Spanish translation: ghiki 44 | - Chinese translation: goapk.com 45 | 46 | GPLv2 License 47 | ------- 48 | 49 | Copyright (C) 2009-2011 Aubort Jean-Baptiste (Rorist) 50 | 51 | This program is free software; you can redistribute it and/or 52 | modify it under the terms of the GNU General Public License 53 | as published by the Free Software Foundation; either version 2 54 | of the License, or (at your option) any later version. 55 | 56 | This program is distributed in the hope that it will be useful, 57 | but WITHOUT ANY WARRANTY; without even the implied warranty of 58 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 59 | GNU General Public License for more details. 60 | 61 | You should have received a copy of the GNU General Public License 62 | along with this program; if not, write to the Free Software 63 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 64 | 65 | Copy of the license can be found in gpl-2.0.txt 66 | 67 | -------------------------------------------------------------------------------- /build.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | 3 | # The name of your application package as defined in the manifest. 4 | # Used by the 'uninstall' rule. 5 | application-package=info.lamatricexiste.network 6 | 7 | # The name of the source folder. 8 | source-folder=src 9 | 10 | # The name of the output folder. 11 | out-folder=bin 12 | 13 | jar.libs.dir=libs 14 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Indicates whether an apk should be generated for each density. 11 | split.density=false 12 | # Project target. 13 | target=android-26 14 | -------------------------------------------------------------------------------- /libs/org.apache.http.legacy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/libs/org.apache.http.legacy.jar -------------------------------------------------------------------------------- /local.properties-example: -------------------------------------------------------------------------------- 1 | sdk-location=/opt/android-sdk 2 | sdk.dir=/opt/android-sdk 3 | target=android-26 4 | 5 | key.store=/home//.android/my-release-key.keystore 6 | key.alias= 7 | -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /res/drawable/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/arrow_right.png -------------------------------------------------------------------------------- /res/drawable/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/back.png -------------------------------------------------------------------------------- /res/drawable/btn_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 10 | 11 | 15 | 18 | 20 | 21 | 22 | 24 | 25 | 29 | 32 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /res/drawable/btn_donate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/btn_donate.png -------------------------------------------------------------------------------- /res/drawable/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/cancel.png -------------------------------------------------------------------------------- /res/drawable/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/closed.png -------------------------------------------------------------------------------- /res/drawable/computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/computer.png -------------------------------------------------------------------------------- /res/drawable/computer_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/computer_down.png -------------------------------------------------------------------------------- /res/drawable/connect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/connect.png -------------------------------------------------------------------------------- /res/drawable/disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/disabled.png -------------------------------------------------------------------------------- /res/drawable/discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/discover.png -------------------------------------------------------------------------------- /res/drawable/drawer_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /res/drawable/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/export.png -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/icon.png -------------------------------------------------------------------------------- /res/drawable/install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/install.png -------------------------------------------------------------------------------- /res/drawable/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/open.png -------------------------------------------------------------------------------- /res/drawable/router.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/router.png -------------------------------------------------------------------------------- /res/drawable/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/settings.png -------------------------------------------------------------------------------- /res/drawable/wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rorist/android-network-discovery/a64b8a6018fddabd7d8d94fd97f899b1cd8e8d80/res/drawable/wifi.png -------------------------------------------------------------------------------- /res/layout-land/portscan.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 14 | 21 | 29 | 44 | 53 | 61 |