fit-project / fit

FIT is a Python3 application for forensic acquisition of contents like web pages, emails, social media, etc. directly from the internet.
GNU General Public License v3.0
61 stars 7 forks source link

Minor fixes for use on (Parrot) Linux #42

Closed gsdefender closed 1 year ago

gsdefender commented 1 year ago

Hi, I had some troubles using the web module on (Parrot) Linux. Privileges problems aside (I needed to run fit as root to get promiscuous mode) there were some minor corrections to be done in a couple of files. fit worked OK afterwards.

gsdefender commented 1 year ago

I've added a call to get_platform. I don't know why it returns "other" rather than "lin" on Parrot, it probably should be amended somewhat.

fpollicelli commented 1 year ago

I've added a call to get_platform. I don't know why it returns "other" rather than "lin" on Parrot, it probably should be amended somewhat.

It seems that sys.platform is returning "linux" for Parrot, which is currently missing inside get_platform(): https://github.com/fit-project/fit/blob/37e1e8a980788a5fe17fc645090a9cacebb702df/common/utility.py#L33-L40

adding 'linux' : 'lin', should do the trick.

fpollicelli commented 1 year ago

@gsdefender I applied your corrections wherever needed, thank you for your contribution!