intentionet / netconan

netconan - a Network Configuration Anonymizer
Apache License 2.0
146 stars 12 forks source link

-d argument does not seem to work #164

Closed Yoo33 closed 3 years ago

Yoo33 commented 3 years ago

Hi,

am I the only one having trouble with the -d args ? The dump file is created but it is always empty.

Awesome tool beside that :)

sfraint commented 3 years ago

Hey @Yoo33 ! It is not just you, -d is busted, and thanks for filing the issue!

In the meantime, what are you trying to accomplish with the dumped map? If you just want to determine the original addresses from an anonymized file, you can try the --undo option (with the same --salt from the original anonymization).

Or, if you're okay with anonymizing host bits of IP addresses, you could try -d along with --preserve-host-bits=0. That should get around the current bug and create the IP-map-dump.

Yoo33 commented 3 years ago

Hi sfraint, sorry for the late answer and thanks for the quick fix ! As a workaround I was using grep with the debug option on

I just tested the new master and it is working fine.

Thanks again, I am going to anonymise every single file I find from now on.