Comments (9)
This is a good idea and I'd certainly be open to supporting scanning hosts on other subnets.
I'm a bit surprised that the host scan didn't work for you. I don't have 192.168. hardcoded anywhere in the source. In fact if you look here you can see that I am getting the first three segments from the network you're on but only scanning hosts 1-255 on that segment https://github.com/aaronjwood/PortAuthority/blob/master/app/src/main/java/com/aaronjwood/portauthority/runnable/ScanHostsRunnable.java#L30
How did you find that it's only working with 192.168.x.x networks?
from portauthority.
Sorry that my post wasn't clear enough. English is not my first language (as you probably noticed).
It scanned in the 10.… network. But it stopped after the first 255 hosts. So there is no bug or failure, it just didn't scan all the possible host. It didn't fail to scan, but it "failed" to scan the whole network.
I think the best approach would be to detect the network class (A, B, C) and scan for appropriate amount of hosts. And it would be helpful if it was possible to enter an address range, just as the port range.
from portauthority.
No worries at all. I thought you meant that there was an actual error :)
I see what you're saying now. I still agree and will work on implementing this sometime soon. I could have an area to enter an address range to scan but I'm not sure how I feel about automatically scanning all hosts in the various classes. I think I would feel the need to put up a warning to the user beforehand since it would be fairly noisy on a network. If I ran a scan like that on my company's network I would certainly be contacted by the security team right away :)
Maybe the best solution would be to keep the functionality the way it is now so it still scans the network segment that you're on by default but also add a box for users to enter in an address range if they want to do a more in-depth scan.
from portauthority.
Sounds great.
from portauthority.
@lightonflux @aaronjwood This is implemented by pull request #48. Unfortunately I do not have a router that supports anything beyond a /24, but using mock data it was able to scan smaller subnets of hosts (/25, /26 etc). There isn't support for defining you subnet, by rather it dynamically find the subnet you're on and determines the number of possible hosts.
from portauthority.
Any ETA for the fdroid release of the next version with this feature?
I could try to spawn a bigger and smaller net with my openwrt router (gl.inet 6416A).
from portauthority.
@lightonflux I have a few things to work out on the pull request, I'm aiming to finish the code by this coming weekend. @aaronjwood not sure how long it takes to push this out to f-droid.
from portauthority.
F-Droid should pick up the release automatically after a short time once the new release is made.
from portauthority.
This will be in the next release (thanks to @thanset for adding this #58)
I'll open another issue to address your request for a user specified range scan.
from portauthority.
Related Issues (20)
- Screenshots for F-Droid HOT 1
- Android 11 Host Scan HOT 2
- another IP for the DNS server
- google force targeted SDK to 30 | Host scan do not work on Android 11 HOT 4
- Not finding every device HOT 6
- Difference in detection android 9 vs 11 HOT 1
- ip neighbor command throws exception on android 11 HOT 14
- Fing like features
- Cryptographic APIs misuses HOT 1
- [Enhancements] Add a DB of previously know hosts & editing for friendly names HOT 1
- Open Ports screen enhancement: launch clients for SSH, RDP, VNC, similar to existing HTTP/HTTPS support
- Is it possible to side-load the databases? (Install the databases offline) HOT 2
- "Couldn't get your external IP" Error HOT 2
- Add stop button when scanning
- [Enhancement] Add option to scan your own device for open ports
- Android 13 - not working HOT 3
- F-Droid build failed for V2.4.3 HOT 5
- Host scans break when targeting Android 12/13 (SDK versions 32/33 respectively) due to SELinux blocking nlmsg_getneigh HOT 3
- Storing MAC addresses for future WOL use
- [suggestion] Fixing version name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portauthority.