{ "info": { "author": "Oscar Blanco Castan", "author_email": "oscarbc1996@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# Seki\n\n[![PyPI version](https://badge.fury.io/py/seki.svg)](https://badge.fury.io/py/seki)\n[![Known Vulnerabilities](https://snyk.io/test/github/oscarbc96/seki/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/oscarbc96/seki?targetFile=requirements.txt)\n[![Supported python versions](https://img.shields.io/pypi/pyversions/seki.svg)](https://github.com/oscarbc96/seki)\n[![License](https://img.shields.io/github/license/oscarbc96/seki.svg)](https://github.com/oscarbc96/seki)\n\nSeki has been created to automatically generate `drone.yml` files to run security tools in the cloud.\n\n## Related projects\n\n- [Seki Server](https://github.com/oscarbc96/seki-server): example project to deploy drone server.\n- [SecTools](https://github.com/oscarbc96/sectools): collections of public security related tools containerized.\n\n## Installation\n\n1. Install [Drone CLI](https://docs.drone.io/cli/install/)\n2. Install seki\n```bash\npip install seki\n```\n\n## Usage\n\nSome seki functions use drone cli commands. To be able to use them, `DRONE_SERVER` and `DRONE_TOKEN` must be exported in terminal. You can find them in drone web ui inside account settings.\n\n### Run\n\nThis command allows to run docker images on\n\n```\nUsage: seki run [OPTIONS] IMAGE\n```\n\n| Option | Value | Description |\n|------------|-----------------------------------------|----------------------------------|\n| --args | TEXT | Arguments for docker image. |\n| --telegram | - | Notify on telegram build result. |\n| --cron | @hourly,@daily,@weekly,@monthly,@yearly | Cron job |\n\n#### Telegram\n\nTo use the telegram option the following [secrets](#Secrets) must be set:\n`telegram_token`: telegram token from [telegram developer center](https://core.telegram.org/bots/api)\n`telegram_to`: telegram user id (can be requested from the `@userinfobot` inside Telegram)\n\n#### Examples\n\nFind subdomains for `google.com` and get results back in telegram.\n```bash\nseki run oscarbc/subfinder.subfinder --args \"subfinder -d google.com -o result.txt\" --telegram\n```\n\n### Templates\n\n```\nUsage: seki template [OPTIONS] FILE\n```\n\n| Option | Value | Description |\n|--------|-----------------------------------------|-------------|\n| --cron | @hourly,@daily,@weekly,@monthly,@yearly | Cron job |\n\n#### Parameters\n\nTemplates can have defined parameters. Parameters must be defined as a list in the first line of the template.\n\n```yaml\n# PARAMETERS: param1,param2,param3\n```\n\nAnd places to replace as follows:\n\n```\n - echo $$PARAM1 $$PARAM2 $$PARAM3\n```\n\n#### Examples\n\nFind subdomains for `google.com` and get results back in telegram. But this time using a template.\n```bash\nseki template test.yml\n```\ntest.yml\n```yml\n# PARAMETERS: domain\nclone:\n disable: true\nkind: pipeline\nname: default\nsteps:\n- name: run\n image: oscarbc/subfinder.subfinder\n commands:\n - subfinder -d $$DOMAIN -o result.txt\n\n- name: create tar\n image: alpine\n commands:\n - tar czf output.tar.gz .\n\n- name: telegram notificaton\n image: appleboy/drone-telegram\n settings:\n document:\n - output.tar.gz\n format: markdown\n message: >\n {{#success build.status}}\n {{build.number}}: \u2705 `{{commit.message}}` \ud83d\ude81 [See build]({{build.link}})\n {{else}}\n {{build.number}}: \u274c `{{commit.message}}` \ud83d\ude81 [See build]({{build.link}})\n {{/success}}\n to:\n from_secret: telegram_to\n token:\n from_secret: telegram_token\n```\n\n### Secrets\n\nSecrets have to be registered inside seki drone project settings. Inside drone project settings [Drone docs](https://docs.drone.io/user-guide/pipeline/secrets/)\n\n### Cron\n\nTo run pipelines periodically the system uses cron jobs from Drone. Seki creates a new branch and enables cron job for that new branch.\n\n## Thanks\n\nI would like to thank Drone to open source their project.\n\n## License\n\nseki is licensed under the MIT License. Take a look at the [LICENSE.md](LICENSE.md) for more information.", "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/oscarbc96/seki", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "seki", "package_url": "https://pypi.org/project/seki/", "platform": "", "project_url": "https://pypi.org/project/seki/", "project_urls": { "Homepage": "https://github.com/oscarbc96/seki" }, "release_url": "https://pypi.org/project/seki/0.3.4/", "requires_dist": null, "requires_python": ">=3.7.0", "summary": "Automated security tools made easy.", "version": "0.3.4" }, "last_serial": 4696612, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "6ac70eafb025dc1c1f9d38ee5160a517", "sha256": "9bd1f4bf41df538cef69d96ef7f877b23ae995e26ed35c4edd79815805c29acb" }, "downloads": -1, "filename": "seki-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6ac70eafb025dc1c1f9d38ee5160a517", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 2336, "upload_time": "2018-12-17T02:09:53", "url": "https://files.pythonhosted.org/packages/f7/f1/b4edd0a8a3cc4f1247813818a44a41f3e1a19ddb0c3c76ed8fe7077eb2d4/seki-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c86e4075c85d5cac03dacdd5b5b1da85", "sha256": "56e40b5e416f7d41cff67c51dad22cf7ea7198ca07335596697116d49b8bb259" }, "downloads": -1, "filename": "seki-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c86e4075c85d5cac03dacdd5b5b1da85", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 2344, "upload_time": "2018-12-17T02:11:52", "url": "https://files.pythonhosted.org/packages/cb/23/472c9a17ca1f15e2a4c6b187585e085a14eff1a0e612a15bd77f88bef997/seki-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1ac21ee56992ca960de96e1fa0292230", "sha256": "ccfb902d3011d6a4c27e16adb91c36bdec2ef695cf36914c4f82864577df2271" }, "downloads": -1, "filename": "seki-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1ac21ee56992ca960de96e1fa0292230", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 2447, "upload_time": "2018-12-30T16:50:50", "url": "https://files.pythonhosted.org/packages/e6/9a/b0e96e0483cd503d33d00710c79c904e96b33f202abd20c16005bb91af6f/seki-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "9792450ed389efed3c199fa4f8e3ac4f", "sha256": "61683d0ea276772366cc6323c9fe5db0137e582430fe7a928af2cff1dacaa43d" }, "downloads": -1, "filename": "seki-0.2.2.tar.gz", "has_sig": false, "md5_digest": "9792450ed389efed3c199fa4f8e3ac4f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 2444, "upload_time": "2018-12-31T05:09:35", "url": "https://files.pythonhosted.org/packages/29/31/d9dfcafbd49caef7df40e11cb14277b824691f7c6330a666f7ba7bd9c6aa/seki-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "33c46431cae482322b6e59e4698b27e4", "sha256": "97377f1133b3c9f1b88ba4830463b314966b6efebd34cd005132bd7b71cc51fb" }, "downloads": -1, "filename": "seki-0.2.3.tar.gz", "has_sig": false, "md5_digest": "33c46431cae482322b6e59e4698b27e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 2442, "upload_time": "2018-12-31T05:16:26", "url": "https://files.pythonhosted.org/packages/9a/8e/f6a42024d5c61a16a0617f0fd91e114189e341873670402f539e941cdaa5/seki-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "6c0d8c6c5c7d57ad6b448506c9fbe0a1", "sha256": "9943aeb523cce4a862337587a6e1895fe18995d451e99e0adda8b057b604ea30" }, "downloads": -1, "filename": "seki-0.2.4.tar.gz", "has_sig": false, "md5_digest": "6c0d8c6c5c7d57ad6b448506c9fbe0a1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 3097, "upload_time": "2018-12-31T05:20:01", "url": "https://files.pythonhosted.org/packages/ec/b6/45104e982c3f74a255639cbd9a193a9adbd3e486c7306162d8ace89fcce7/seki-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "fa5ee5ec517e3dc6d8aa477321a468e7", "sha256": "51695162758625ab6655c25a2110cf407061e5662359e4d43bd0b0fc9a0e6b68" }, "downloads": -1, "filename": "seki-0.2.5.tar.gz", "has_sig": false, "md5_digest": "fa5ee5ec517e3dc6d8aa477321a468e7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 3100, "upload_time": "2018-12-31T05:27:19", "url": "https://files.pythonhosted.org/packages/bf/bc/b28d465f63a0b34ae485417e93b9491303b97ba3d9b02b3e61ba0c59b444/seki-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "34c99afcc26e6c25e5014aa5e14e8e44", "sha256": "9b2da32b0ea04f22fe2aea2b54c06c34733ac7d0647235299300870a014ba8b3" }, "downloads": -1, "filename": "seki-0.2.6.tar.gz", "has_sig": false, "md5_digest": "34c99afcc26e6c25e5014aa5e14e8e44", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 5967, "upload_time": "2018-12-31T06:03:09", "url": "https://files.pythonhosted.org/packages/53/39/5616c2fff5ebd1546ec98203b4df397e145c4c352bf36ee19ef8f70dc76a/seki-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "ccdd25dffbf72abeea6192a6cfc8a895", "sha256": "b1232b0ed5bf602fc2e657e8a3467b43a025811acf5f239ad0a58c1acfb79c10" }, "downloads": -1, "filename": "seki-0.2.7.tar.gz", "has_sig": false, "md5_digest": "ccdd25dffbf72abeea6192a6cfc8a895", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 5967, "upload_time": "2018-12-31T06:03:25", "url": "https://files.pythonhosted.org/packages/af/44/47bbf084e712ef63393e77ab72800147da3a253ccc07b69dad5dae485779/seki-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "69293a77deef61e53c62b5d8cf45b0ea", "sha256": "5aed05df7bb0b90c938a3cd6ee556acf7b141fd8536619f12515d4e52ba4dfda" }, "downloads": -1, "filename": "seki-0.2.8.tar.gz", "has_sig": false, "md5_digest": "69293a77deef61e53c62b5d8cf45b0ea", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 5976, "upload_time": "2018-12-31T06:15:48", "url": "https://files.pythonhosted.org/packages/78/a3/9a012046579cc913db29ed103d72a22bc24090522e67c89b7abd0d3af176/seki-0.2.8.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "01580ef872243ff7debc188664b73f87", "sha256": "6026e16c572d0246f3e9d2ea03b081ec0be12cbfdb3744410f254490bc946829" }, "downloads": -1, "filename": "seki-0.2.9.tar.gz", "has_sig": false, "md5_digest": "01580ef872243ff7debc188664b73f87", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 5985, "upload_time": "2018-12-31T06:20:02", "url": "https://files.pythonhosted.org/packages/22/e0/9039c66896f6e70aa55f0769e65f3beaf2a9ca2b22d106b2adf21ffc95eb/seki-0.2.9.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1560b583b642f5d3bb62fc692370a6fd", "sha256": "4cd601a47b95224316e373ac5392a7ec2a25f5358498e65f8291709dc33fb7d0" }, "downloads": -1, "filename": "seki-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1560b583b642f5d3bb62fc692370a6fd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6494, "upload_time": "2018-12-31T10:55:43", "url": "https://files.pythonhosted.org/packages/00/a3/85573c3a31680a25f56a0c173b9605454d2503aa34e78d3b383aa4752826/seki-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "ed758cb517c2621aa2b0ca5ffd30fd24", "sha256": "51d0b5fd57e1ee9da03505ac6ec4339b9195484e4724aa8395256fffb587f3c2" }, "downloads": -1, "filename": "seki-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ed758cb517c2621aa2b0ca5ffd30fd24", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6484, "upload_time": "2018-12-31T11:01:22", "url": "https://files.pythonhosted.org/packages/72/30/854a730fba013ad5f0de48aa557014901681b8599dade67fb0cd8b078982/seki-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "53ae6ad23861c79695fb41744d0337bc", "sha256": "cc3b37e7bc2d8eaeb5ef6dfe5f8cf01ab129162791ddd5b4ed2abbb4ec2cf85f" }, "downloads": -1, "filename": "seki-0.3.2.tar.gz", "has_sig": false, "md5_digest": "53ae6ad23861c79695fb41744d0337bc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6482, "upload_time": "2018-12-31T11:01:36", "url": "https://files.pythonhosted.org/packages/d4/06/7cd3fc8e88f0f3f2e04db6abe9f7552b976f164d247e20540bf90fe78e8f/seki-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "e3011685c27cebb6ae2167b539b9b67f", "sha256": "287966bc2588216cf109ae84e96074fa08a64d588db7f1d343bd64b2d443102d" }, "downloads": -1, "filename": "seki-0.3.3.tar.gz", "has_sig": false, "md5_digest": "e3011685c27cebb6ae2167b539b9b67f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6438, "upload_time": "2018-12-31T12:09:24", "url": "https://files.pythonhosted.org/packages/3f/eb/c4c6602dc2f28e63d5aee05c96a3bb51a446328d3d2519aaaabe96975fa5/seki-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "3ac32a9bda56ffce823cfb599b5498b2", "sha256": "440b28e8318ec40e3ee98ce8c29a990cc28402c15a65ef9cd0adc2691590ea9b" }, "downloads": -1, "filename": "seki-0.3.4.tar.gz", "has_sig": false, "md5_digest": "3ac32a9bda56ffce823cfb599b5498b2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 9972, "upload_time": "2019-01-14T23:55:12", "url": "https://files.pythonhosted.org/packages/b5/48/a1d1af71a3eb642684ac83edbeed1794ce9f81556c770a9fad110874a397/seki-0.3.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3ac32a9bda56ffce823cfb599b5498b2", "sha256": "440b28e8318ec40e3ee98ce8c29a990cc28402c15a65ef9cd0adc2691590ea9b" }, "downloads": -1, "filename": "seki-0.3.4.tar.gz", "has_sig": false, "md5_digest": "3ac32a9bda56ffce823cfb599b5498b2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 9972, "upload_time": "2019-01-14T23:55:12", "url": "https://files.pythonhosted.org/packages/b5/48/a1d1af71a3eb642684ac83edbeed1794ce9f81556c770a9fad110874a397/seki-0.3.4.tar.gz" } ] }