{"id":19755723,"url":"https://github.com/fofapro/vulfocus-py","last_synced_at":"2025-04-30T11:33:05.888Z","repository":{"id":45618582,"uuid":"430959386","full_name":"fofapro/vulfocus-py","owner":"fofapro","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-04T13:32:40.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:17:16.665Z","etag":null,"topics":["vulfocus"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fofapro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-23T04:35:01.000Z","updated_at":"2022-05-25T09:20:23.000Z","dependencies_parsed_at":"2022-08-25T20:00:55.618Z","dependency_job_id":null,"html_url":"https://github.com/fofapro/vulfocus-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Fvulfocus-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Fvulfocus-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Fvulfocus-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Fvulfocus-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fofapro","download_url":"https://codeload.github.com/fofapro/vulfocus-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691522,"owners_count":21628335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vulfocus"],"created_at":"2024-11-12T03:12:54.242Z","updated_at":"2025-04-30T11:33:05.637Z","avatar_url":"https://github.com/fofapro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vulfocus-py\n\n[![GitHub (pre-)release](https://img.shields.io/github/release/fofapro/vulfocus-py/all.svg)](https://github.com/fofapro/vulfocus-py/releases) [![stars](https://img.shields.io/github/stars/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/stargazers) [![license](https://img.shields.io/github/license/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/blob/master/LICENSE)\n\n[Chinese document](https://github.com/fofapro/vulfocus-py/blob/master/README_zh.md)\n\n## Vulfocus API\n\n[`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) is the `RESUFul API` interface provided by [`Vulfocus`](http://vulfocus.io/) for development, allowing Developers integrate [`Vulfocus`](http://vulfocus.io) in their own projects.\n\n## Vulfocus SDK\n\nThe `Python` version of `SDK` written based on the [`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) makes it easy for `Python` developers to quickly integrate [`Vulfocus`](http://vulfocus.io/)  into their projects.\n\n## Install\n\npip install vulfocus\n\n## USE\n\n|field|description|\n| ---- | ---- |\n|`username`|User login [`Vulfocus`](http://vulfocus.io/) userbox `username`|\n|licence|Please go to the [`personal center`](http://vulfocus.fofa.so/#/profile/index) to view `API licence`|\n\n### Pull Images\n\n```python\nfrom vulfocus.vulfocusClient import VulfocusClient\nclinet = VulfocusClient(username=\"xxxx\",licence=\"xxxxxx\")\nimages = clinet.get_images()\nprint(images)\n```\n\n#### Response\n\nImageEntity(image_name='vulfocus/webmin-cve_2020_35606:latest', image_vul_name='Webmin 命令执行漏洞 （CVE-2020-35606）', image_desc='Webmin是Webmin社区的一套基于Web的用于类Unix操作系统中的系统管理工具。\\nWebmin 1.962版本及之前版本存在安全漏洞，该漏洞允许执行任意命令。任何被授权使用Package Updates模块的用户都可以使用根权限通过包含和的向量执行任意命令。\\n账户密码：root:password')\n\n### Start\n\n```python\nfrom vulfocus.vulfocusClient import VulfocusClient\nclinet = VulfocusClient(username=\"xxxx\",licence=\"xxxxx\")\nimages = clinet.get_images()\nprint(clinet.start_container(images[0].image_name))\n```\n\n#### Response\n\nHostEntity(host=x.x.x.x:57581,port={'10000': '57581'})\n\n### Stop\n\n```python\nfrom vulfocus.vulfocusClient import VulfocusClient\nclinet = VulfocusClient(username=\"xxxx\",licence=\"xxxxx\")\nimages = clinet.get_images()\nprint(clinet.stop_container(images[0].image_name))\n```\n\n#### Response\n\n停止成功\n\n### Delete\n\n```python\nfrom vulfocus.vulfocusClient import VulfocusClient\nclinet = VulfocusClient(username=\"xxxx\",licence=\"xxxxx\")\nimages = clinet.get_images()\nprint(clinet.delete_container(images[0].image_name))\n```\n#### Response\n\n删除成功\n\n## Update Log\n\n2021-11-29\n\n```\nRelease\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofapro%2Fvulfocus-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffofapro%2Fvulfocus-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofapro%2Fvulfocus-py/lists"}