noptrix / sshprank

A fast SSH mass-scanner, login cracker and banner grabber tool using the python-masscan and shodan module.
http://www.nullsecurity.net/
161 stars 44 forks source link

[Feature Request] Remove addresses that sshprank can't connect to. #3

Closed BroHowAreYou closed 4 years ago

BroHowAreYou commented 4 years ago

SSHPrank wastes a lot of time on brute force runs if one or more of the IP addresses in the list fails to connect. It iterates through all username/password combinations on those addresses even if it can't connect.

It would be great if there was an optional flag to only run brute forcing on IP addresses that are actually online, saving the time wasted on offline servers.

BroHowAreYou commented 4 years ago

the -r option has this issue too.

noptrix commented 4 years ago

@BroHowAreYou thanks a lot dude. i never noticed that :) i will work on this and let the progress know.

noptrix commented 4 years ago

@BroHowAreYou feel free to reopen if i broke something or something is fucked due to my last changes.

mr-459 commented 4 years ago

@BroHowAreYou feel free to reopen if i broke something or something is fucked due to my last changes.

now i most use options to remove invalid hosts? or its on by default?