{ "info": { "author": "Thomas D.", "author_email": "tdebize@mail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Information Technology", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Topic :: Security" ], "description": "snspoliciestocsv\n================\n\nDescription\n-----------\nA simple script to extract policies from a Stormshield Network Security device configuration file to CSV\n\nOptions\n-------\n```\n$ python3 snspoliciestocsv.py -h\nUsage: snspoliciestocsv.py [options]\nVersion: 1.11\n\nOptions:\n -h, --help show this help message and exit\n\n Main parameters:\n -i INPUT_FILE, --input-file=INPUT_FILE\n Partial or full Stormshield Network security appliance\n configuration file. Ex: filter.cfg\n -o OUTPUT_FILE, --output-file=OUTPUT_FILE\n Output csv file (default ./policies-out.csv)\n -s, --skip-header Do not print the csv header\n -d DELIMITER, --delimiter=DELIMITER\n CSV delimiter (default \";\")\n```\n\nExamples\n--------\n#### exemple.txt\n```\n[Filter]\nseparator color=\"000000\" comment=\"Allow VPN A to B\" collapse=\"1\"\npass inspection firewall log ipproto vpn-esp proto none from A to B\t# Cr\u00e9\u00e9e le 1970-01-01 00:00:01, par Serge (1.2.3.4)\nseparator color=\"000000\" comment=\"Block B to C\" collapse=\"1\"\nblock from B to C port ssh\t# Prenez un chewing-gum EmileCr\u00e9\u00e9e le 1970-01-01 00:00:02, par Odile (1.2.3.5)\nblock from A to G port ssh\t# \u00e0lol\u00e9Cr\u00e9\u00e9e le 1970-01-01 00:00:02, par L\u00e9on (1.2.3.5)\n```\n\n#### policies-out.csv\n```\ntype;log;from;to;ipproto;proto;port;comment;creation_date;user;ip_user\nAllow VPN A to B;;;;;;;;;;\npass;log;A;B;vpn-esp;none;; ;1970-01-01 00:00:01;Serge;1.2.3.4\nBlock B to C;;;;;;;;;;\nblock;;B;C;;;ssh; Prenez un chewing-gum Emile;1970-01-01 00:00:02;Odile;1.2.3.5\nblock;;A;G;;;ssh; \u00e0lol\u00e9;1970-01-01 00:00:02;L\u00e9on;1.2.3.5\n```\n\nDependencies and installation\n-----------------------------\n* Python 3 or superior (sorry but Python 2 is a pain with csv unicode stuff)\n* The **easiest way** to setup everything: `pip install snspoliciestocsv` and then directly use `$ snspoliciestocsv`\n* Or git clone that repository\n\nChangelog\n---------\n* version 1.12 - 08/13/2018: Fixing the README layout on PyPI\n* version 1.11 - 07/22/2017: Fixing some utf-8 issues, and adding the log column\n* version 1.0 - 07/14/2017: Initial commit\n\nDisclaimer and license\n---------------------\n* **I don't own anything on the Stormshield brand and am not affiliated with organization**\n* snspoliciestocsv is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. \n * snspoliciestocsv is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n * See the GNU Lesser General Public License for more details: http://www.gnu.org/licenses/ \n\nContact\n-------\n* Thomas Debize < tdebize at mail d0t com >", "description_content_type": "text/markdown; charset=UTF-8;", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/maaaaz/snspoliciestocsv", "keywords": "stormshield network security configuration csv", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "snspoliciestocsv", "package_url": "https://pypi.org/project/snspoliciestocsv/", "platform": "", "project_url": "https://pypi.org/project/snspoliciestocsv/", "project_urls": { "Homepage": "https://github.com/maaaaz/snspoliciestocsv" }, "release_url": "https://pypi.org/project/snspoliciestocsv/1.12/", "requires_dist": null, "requires_python": ">=3", "summary": "A simple script to extract policies from a Stormshield Network Security device configuration file to CSV", "version": "1.12" }, "last_serial": 4166273, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "977386ed5438634a1f267354ab6324f7", "sha256": "c88f15d696ab3288972dc459576739a17ecef96d4c758998f23ecfe6a7619e65" }, "downloads": -1, "filename": "snspoliciestocsv-1.0.tar.gz", "has_sig": false, "md5_digest": "977386ed5438634a1f267354ab6324f7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4791, "upload_time": "2017-07-14T20:33:38", "url": "https://files.pythonhosted.org/packages/88/2c/9201abd51aa23bb219d2e08ad394f2e3c3af79166c64052d2724d60fbb4e/snspoliciestocsv-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "b07a0f018b3ba55cfa32ddbdcbd518ed", "sha256": "1c1312887e2932dcaf7cec878be40ca716bb69d99dd5059fd8e5076c71746fb7" }, "downloads": -1, "filename": "snspoliciestocsv-1.1.tar.gz", "has_sig": false, "md5_digest": "b07a0f018b3ba55cfa32ddbdcbd518ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4992, "upload_time": "2017-07-22T10:34:59", "url": "https://files.pythonhosted.org/packages/d8/bd/07028c8461bd06546fddb77979d55b52dd45c602101b9d77f425a4240d15/snspoliciestocsv-1.1.tar.gz" } ], "1.11": [ { "comment_text": "", "digests": { "md5": "676c2367fb14c49c6c5a3b0e02e6ce70", "sha256": "e3c930db09614493034e0c6c55e3e876e97fa088744b4512d149fcb3b12e47ba" }, "downloads": -1, "filename": "snspoliciestocsv-1.11.tar.gz", "has_sig": false, "md5_digest": "676c2367fb14c49c6c5a3b0e02e6ce70", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4997, "upload_time": "2017-07-22T10:56:18", "url": "https://files.pythonhosted.org/packages/9e/e9/dccbd799a66bdf72f642cf21d0bcada826b30c94328220399f39a326a574/snspoliciestocsv-1.11.tar.gz" } ], "1.12": [ { "comment_text": "", "digests": { "md5": "d5b70222f787cda42fb522423b856c2b", "sha256": "978d57d27e8e20c9028fe2b8fe5e306d4dea5464476949951c6d014c6999b69b" }, "downloads": -1, "filename": "snspoliciestocsv-1.12.tar.gz", "has_sig": false, "md5_digest": "d5b70222f787cda42fb522423b856c2b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5087, "upload_time": "2018-08-13T17:01:24", "url": "https://files.pythonhosted.org/packages/14/38/5cf32ca87c65c3b5769c2b6143a26f722e8fe846a1640dceb805e3ef4a8e/snspoliciestocsv-1.12.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d5b70222f787cda42fb522423b856c2b", "sha256": "978d57d27e8e20c9028fe2b8fe5e306d4dea5464476949951c6d014c6999b69b" }, "downloads": -1, "filename": "snspoliciestocsv-1.12.tar.gz", "has_sig": false, "md5_digest": "d5b70222f787cda42fb522423b856c2b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5087, "upload_time": "2018-08-13T17:01:24", "url": "https://files.pythonhosted.org/packages/14/38/5cf32ca87c65c3b5769c2b6143a26f722e8fe846a1640dceb805e3ef4a8e/snspoliciestocsv-1.12.tar.gz" } ] }