LionSec / katoolin

Automatically install all Kali linux tools
https://lionsec.net
GNU General Public License v2.0
4.75k stars 1.33k forks source link

Completely removing the sources.list file #218

Open pramodhrachuri opened 5 years ago

pramodhrachuri commented 5 years ago

You are completely removing the sources.list file instead for "Remove all kali linux repositories".

https://github.com/LionSec/katoolin/blob/0fcf38b5ad16968e46014e8db0609b4d2af305f0/katoolin.py#L63

Anacron-sec commented 5 years ago

Yes, but it actually loads the file in memory before deletion: https://github.com/LionSec/katoolin/blob/0fcf38b5ad16968e46014e8db0609b4d2af305f0/katoolin.py#L62-L68

then it deletes the kali repo lines and stores it in the output file (and then writes it to disk)