Giter Site home page Giter Site logo

Comments (9)

aaronjwood avatar aaronjwood commented on August 25, 2024

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.

lightonflux avatar lightonflux commented on August 25, 2024

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.

aaronjwood avatar aaronjwood commented on August 25, 2024

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.

lightonflux avatar lightonflux commented on August 25, 2024

Sounds great.

from portauthority.

 avatar commented on August 25, 2024

@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.

lightonflux avatar lightonflux commented on August 25, 2024

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.

 avatar commented on August 25, 2024

@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.

aaronjwood avatar aaronjwood commented on August 25, 2024

F-Droid should pick up the release automatically after a short time once the new release is made.

from portauthority.

aaronjwood avatar aaronjwood commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.