Skip to content

Commit

Permalink
Update brute_force_detector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geeknik committed Jun 19, 2023
1 parent 1e7ffaf commit 57b3a1c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/brute_force_detector.py
@@ -1,4 +1,3 @@

import time
from collections import Counter

Expand All @@ -19,5 +18,3 @@ def main():

if __name__ == "__main__":
main()
```
This script reads a log file, counts the number of requests from each IP address, and if the number of requests from a single IP exceeds a certain threshold (100 in this case), it flags that IP as a potential source of a brute force attack.

0 comments on commit 57b3a1c

Please sign in to comment.