Comments (7)
That comment is specifically meant for that section in __main__.py
as we will only cycle through the passed credentials a single time instead of looping like we do with a password set. The lockout handling is still observed and handled (when applicable) by the sprayer handler itself as you can see for example here:
https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer.py#L295
from o365spray.
Still, the count parameter is not used when the --paired
option is used. The help text shows the following:
-c COUNT, --count COUNT
Number of password attempts to run per user before resetting the lockout account
timer. Default: 1
I take this to mean that it will do one password per user and then wait for the lockout timer (15 min in my case). However, when I run the attack with --paired
on a dataset like the above example. It will happily execute all the guesses for bob in a single run (verified using Burp suite proxy), thereby possibly locking out the account for bob. I've looked a bit in the code, but a fix for this is not trivial I think.
from o365spray.
Ah okay - I now understand what you are referring to. Yes, the way the code is built is if a --paired
file is passed the tool is somewhat 'dumb' and assumes that it's a single password attempt for each user (when I originally wrote this handling I seem to have ignored the idea of duplicate users with different passwords...). I will look into a solution for handling this and try to get something pushed up to a dev-branch for testing.
from o365spray.
I have pushed some changes/fixes (v2.0.4) to the paired-updates
branch that should resolve this issue. Once I stress test the updates a bit more I will get them merged into the master branch
from o365spray.
Thank you for working on this!
from o365spray.
Hello, anyway to get out the Account locked when we do the password spraying? I tried --safe 3 --sleep 30 with 1 password, but the accounts are still locked.
from o365spray.
Paired updates have been written into the dev branch with several other fixes/updates. Once things have been tested a bit more it will be merged into the master branch.
from o365spray.
Related Issues (13)
- Feature Request: Safe Mode HOT 8
- Doesn't work with Python 3.9+ HOT 3
- Add additional code indicating Password was fine, but Conditional Access Policy thwarted attempt HOT 2
- AttributeError: module 'o365spray' has no attribute '__version__' HOT 2
- Setup install broken HOT 3
- Spraying doesn't start due to UnicodeDecodeError HOT 2
- Problems with running Domain Validation HOT 1
- Run_in_executor pattern over the userlist in enumeration module eats up memory unpredictably with large lists HOT 10
- ModuleNotFoundError: No module named 'o365spray' HOT 2
- Validate username and password files on start
- Ignore comment lines in user file
- Object\Attribute Error HOT 1
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 o365spray.