MilindPurswani / Syborg

Recursive DNS Subdomain Enumerator with dead-end avoidance system (BETA)
142 stars 22 forks source link

Unable to write data to file with -w option or to log file #11

Open MilindPurswani opened 4 years ago

MilindPurswani commented 4 years ago

It seems that whenever a file is not closed properly and the script is terminated with with ctrl+z, the script gets killed but python still runs in the background. The file variables are not destroyed thereby new scripts cannot access old files generated for logging and writing data.

MilindPurswani commented 4 years ago

I suggest for now the best way to ensure that required files are generated, we can simply execute

killall python3

This is a temporary fix and a permanant fix will be deployed soon.

MilindPurswani commented 4 years ago

This was caused due to a commit that was made last night covering up the overhead of opening and closing the file https://github.com/MilindPurswani/Syborg/commit/e7b323a6f02a2aa27beb867fd7c48b8c2541dadc.

yashrs commented 4 years ago

You can try https://stackoverflow.com/a/1112350

MilindPurswani commented 4 years ago

As always, that's a good observation @yashrs. We should let the script run its course and focus on capturing such events. However, I am not sure if the same is applicable to ctrl + z

Thanks,

-Milind