{ "info": { "author": "Zach \"theY4Kman\" Kanzler", "author_email": "they4kman@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# suricata-prettifier\n\nSnake-powered pipe cleaner eats single-line Suricata rules and poops out pleasantly-spaced, vibrantly-coloured delicacies straight to your plate. Examine this exemplary example:\n\n```\nalert tcp $HOME_NET any -> 94.242.238.242 6565 (msg:\"EmergingThreats:Indicator-2405101\"; flow:to_server,established; flags:S; reference:url,doc.emergingthreats.net/bin/view/Main/BotCC; reference:url,www.shadowserver.org; threshold: type limit, track by_src, seconds 360, count 1; classtype:trojan-activity; flowbits:set,ET.Evil; flowbits:set,ET.BotccIP; sid: 533; rev:4991;)\n```\n\nNow watch as the snake-babies devour such fine a morsel \u2013 the last food for winter \u2013 then travel northward to return to their mates, leaving behind their season's work:\n\n![Snake poop](https://user-images.githubusercontent.com/33840/40883915-2600beee-66d6-11e8-9e94-97b7730ebb62.png)\n\n```\nalert tcp $HOME_NET any -> 94.242.238.242 6565 ( \\\n msg: \"EmergingThreats:Indicator-2405101\"; \\\n flow: to_server,established; \\\n flags: S; \\\n reference: url,doc.emergingthreats.net/bin/view/Main/BotCC; \\\n reference: url,www.shadowserver.org; \\\n threshold: type limit, track by_src, seconds 360, count 1; \\\n classtype: trojan-activity; \\\n flowbits: set,ET.Evil; \\\n flowbits: set,ET.BotccIP; \\\n sid: 533; \\\n rev: 4991; \\\n)\n```\n\nNote: options with line continuations tested working with Suricata 4.0.4\n\n\n# Installation\n\n```bash\npip install suricata-prettifier\n```\n\n\n# Usage\n\nHighlight and format right in your console. Wow.\n\n```bash\nprettify-suricata input.rules\n```\n\nUse it to generate sweet posts for your LiveJournal (Netscape Navigator required to view)\n\n```bash\nprettify-suricata -f html input.rules input.formatted.html style=vim full=True\n```\n\nRead from stdin and write to stdout to create your own pipe dream\n\n```bash\nhead -n 50 input.rules | prettify-suricata -f html - - style=vim full=True | tee input.formatted.html\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/theY4Kman/suricata-prettifier", "keywords": "", "license": "BSD 2-Clause", "maintainer": "", "maintainer_email": "", "name": "suricata-prettifier", "package_url": "https://pypi.org/project/suricata-prettifier/", "platform": "", "project_url": "https://pypi.org/project/suricata-prettifier/", "project_urls": { "Homepage": "https://github.com/theY4Kman/suricata-prettifier" }, "release_url": "https://pypi.org/project/suricata-prettifier/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Format and syntax highlight Suricata rules", "version": "0.0.4" }, "last_serial": 4703845, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2acc1d0f25ab835765bf02922052dfb1", "sha256": "11e91f05054606a942b9a02bc18a977ab146f31828a746fc8cf5435305445cfc" }, "downloads": -1, "filename": "suricata-prettifier-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2acc1d0f25ab835765bf02922052dfb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2018-06-03T07:17:41", "url": "https://files.pythonhosted.org/packages/aa/a8/62f80dfc42e5fc34697ca5f1890608aec282ebcaa28668b33517a66bc12d/suricata-prettifier-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d5a171f76adf3bde00a7ff8a32bd5363", "sha256": "f49bb098242b6dbdc1a773e2f35116881e9411259c22c35d1e0059103e52ae1c" }, "downloads": -1, "filename": "suricata-prettifier-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d5a171f76adf3bde00a7ff8a32bd5363", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4497, "upload_time": "2018-06-03T07:19:30", "url": "https://files.pythonhosted.org/packages/8c/1e/954e95a5208e5b2bb6aecba5b1648c2262b0700c5526c6749941694ef962/suricata-prettifier-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f0b13f4355bf2343da48ad561bb1c6dc", "sha256": "3a74bb309efbb102768021a4f7f8e9647e30ff27e270fb0dc38d7d195ab4e369" }, "downloads": -1, "filename": "suricata-prettifier-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f0b13f4355bf2343da48ad561bb1c6dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4444, "upload_time": "2018-06-03T07:36:51", "url": "https://files.pythonhosted.org/packages/d6/44/cf555db024bc422730bd20ba69bbf8f64b8786c294ca4e4c0f61bf4a1be2/suricata-prettifier-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8bd5a99548bb5c1a9fde573ae0601fc4", "sha256": "325fd67398721e9d9e017c34dfbab3e2bfb96f32a150e9e7ff547d87d378a056" }, "downloads": -1, "filename": "suricata-prettifier-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8bd5a99548bb5c1a9fde573ae0601fc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4618, "upload_time": "2018-06-05T14:44:33", "url": "https://files.pythonhosted.org/packages/fa/06/b5ed578788f0b4e71a98a8995d1bc7d29004d42fad2112785d5a1970bc91/suricata-prettifier-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8bd5a99548bb5c1a9fde573ae0601fc4", "sha256": "325fd67398721e9d9e017c34dfbab3e2bfb96f32a150e9e7ff547d87d378a056" }, "downloads": -1, "filename": "suricata-prettifier-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8bd5a99548bb5c1a9fde573ae0601fc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4618, "upload_time": "2018-06-05T14:44:33", "url": "https://files.pythonhosted.org/packages/fa/06/b5ed578788f0b4e71a98a8995d1bc7d29004d42fad2112785d5a1970bc91/suricata-prettifier-0.0.4.tar.gz" } ] }