SprayingToolkit icon indicating copy to clipboard operation
SprayingToolkit copied to clipboard

Processing hangs/dies on larger input files

Open tatanus opened this issue 6 years ago • 2 comments

I have tried running atomizer.py several times and for input userfiles > 597, it starts behaving oddly.

  • For userfiles < 597, it appears to run and terminate as expected.
  • For userfiles > 597, it will process to around 597, then hang indefinitely.
  • For very large userfiles (>100000) it will process a few hundred then die. I am not sure what is causing the process to die, there is no error message. I have even enabled the "-d" flag to see if there was any debug messages of use. Nothing. I simply get the message "Killed".

This is the commandline I have used (obviously I actually entered my correct and ). python3.7 atomizer.py lync <domain> <password> --userfile users.txt

I have tried running this on both Kali Rolling 2018.3 and on Ubuntu 16.04.3 LTS. Same results on both.

tatanus avatar Sep 18 '18 12:09 tatanus

hmm i think i've figured this out, the only thing i can think of is possible memory exhaustion cause of the large file when we allocate the user accounts to the thread pool here: https://github.com/byt3bl33d3r/SprayingToolkit/blob/6969b143beb55225da57c020c3fbd023d6eece27/atomizer.py#L75-L78

Could you run htop/top and look at the memory consumption while running atomizer with that large userfile on your system?

Thanks!

byt3bl33d3r avatar Sep 18 '18 14:09 byt3bl33d3r

This could probably be fixed by reading the user file line by line instead of slurping it. I guess it would also have the added bonus of being able to dynamically add users to a spray session because the file would be re-read on each spray interval (when using --interval).

The same issue could occur with large password files and could be handled in the same way.

alxbl avatar Oct 05 '19 13:10 alxbl