changeme icon indicating copy to clipboard operation
changeme copied to clipboard

Option to stop bruteforcing after at least one valid creds pair for each target was found

Open Celestial-intelligence opened this issue 5 years ago • 3 comments

Add a parameter to disable continuous bruteforcing when using two or more default credentials to speed up scans.

hi again @ztgrace i am very impressed by this project cuz it is in python and easy to be grown by community. i believe this project have much more perspectives even than famous "hydra". i will introduce your tool to netstalking community in my paper-guide very soon. besides creatings an issues i would like to make some pull requests too by myself. at least some new creds profiles and improving the screenshoting function by "camera" category, to grab a video-channel jpeg snaphots just by python requests. (i.e. http://admin:[email protected]:80/cgi-bin/net_jpeg.cgi/?ch=1) thank u for ur great work!

Celestial-intelligence avatar Aug 27 '19 21:08 Celestial-intelligence

could u please give me dirty and easy solution for this main issue just for now?

Celestial-intelligence avatar Aug 27 '19 21:08 Celestial-intelligence

Right now there's no configuration option to stop as the scanner was designed to be more of a vulnerability auditor vs a pen testing tool. It would be possible to implement this feature, however it might not behave as expected.

All scanner objects are placed into a queue: https://github.com/ztgrace/changeme/blob/master/changeme/scan_engine.py#L146 and to terminate the scanning, you'd just have to empty out the queue here https://github.com/ztgrace/changeme/blob/master/changeme/scan_engine.py#L121 with something like the code below (I haven't tested). One thing to think about is that this would stop all queued scans for all hosts. If the desired feature is to only stop scans for the host that has valid creds, it will require more code and thought around how to handle it.

while not self.scanners.empty():
  self.scanners.get()

ztgrace avatar Aug 28 '19 02:08 ztgrace

thank u for fast response! i'll try to figure out the best way to implement this feature

Celestial-intelligence avatar Aug 28 '19 11:08 Celestial-intelligence