Get Firefox profile directory with Python (Linux and Windows)


Notice: A non well formed numeric value encountered in /home/t00mlabs/blog.t00mlabs.net/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/t00mlabs/blog.t00mlabs.net/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Piece of code used in Basico (util.py module) to get the default user’s Firefox profile directory. This profile must have the SAP Passport imported in the Certificate store.