{"id":13846197,"url":"https://github.com/wgpsec/whohk","last_synced_at":"2025-04-04T21:07:57.439Z","repository":{"id":41064404,"uuid":"297237111","full_name":"wgpsec/whohk","owner":"wgpsec","description":"whohk，linux下一款强大的应急响应工具  在linux下的应急响应往往需要通过繁琐的命令行来查看各个点的情况，有的时候还需要做一些格式处理，这对于linux下命令不是很熟悉的人比较不友好。本工具将linux下应急响应中常用的一些操作给集合了起来，并处理成了较为友好的格式，只需要通过一个参数就能代替繁琐复杂的命令来实现对各个点的检查。","archived":false,"fork":false,"pushed_at":"2024-01-13T14:21:33.000Z","size":5566,"stargazers_count":530,"open_issues_count":2,"forks_count":67,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-28T20:07:25.747Z","etag":null,"topics":["python","yara"],"latest_commit_sha":null,"homepage":"","language":"YARA","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wgpsec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-09-21T05:26:07.000Z","updated_at":"2025-03-26T08:59:19.000Z","dependencies_parsed_at":"2024-01-13T15:53:42.668Z","dependency_job_id":"3ba18f61-30d2-47b2-ab7b-ede3eb3910da","html_url":"https://github.com/wgpsec/whohk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpsec%2Fwhohk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpsec%2Fwhohk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpsec%2Fwhohk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpsec%2Fwhohk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgpsec","download_url":"https://codeload.github.com/wgpsec/whohk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249525,"owners_count":20908212,"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":["python","yara"],"created_at":"2024-08-04T17:04:36.094Z","updated_at":"2025-04-04T21:07:57.423Z","avatar_url":"https://github.com/wgpsec.png","language":"YARA","funding_links":[],"categories":["YARA"],"sub_categories":[],"readme":"# whohk\n\nwhohk，linux下一款强大的应急响应工具\n\n\u003ca href=\"https://github.com/wgpsec/whohk\"\u003e\u003cimg alt=\"Release\" src=\"https://img.shields.io/badge/python-3.x-9cf\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wgpsec/whohk\"\u003e\u003cimg alt=\"Release\" src=\"https://img.shields.io/badge/whohk-1.1-ff69b4\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wgpsec/whohk\"\u003e\u003cimg alt=\"Release\" src=\"https://img.shields.io/badge/LICENSE-GPL-important\"\u003e\u003c/a\u003e\n![GitHub Repo stars](https://img.shields.io/github/stars/wgpsec/whohk?color=success)\n![GitHub forks](https://img.shields.io/github/forks/wgpsec/whohk)\n![GitHub all release](https://img.shields.io/github/downloads/wgpsec/whohk/total?color=blueviolet)  \n\n在linux下的应急响应往往需要通过繁琐的命令行来查看各个点的情况，有的时候还需要做一些格式处理，这对于linux下命令不是很熟悉的人比较不友好。本工具将linux下应急响应中常用的一些操作给集合了起来，并处理成了较为友好的格式，只需要通过一个参数就能代替繁琐复杂的命令来实现对各个点的检查。\n\n支持主流的Linux，包含centos、redhat、ubuntu、debian、opensuse。\n\n## 使用指南\n```\noptional arguments:\n  -h, --help            show this help message and exit\n  -user                 用于查看系统可登录账户和空口令账户（无参数）\n  -history              用于查看所有用户的敏感历史命令（无参数）\n  -cron                 用于查看所有用户的定时任务（无参数）\n  -ip                   用于查看外连ip（无参数）\n  --pid 1234            用于定位进程物理路径（参数为pid号）\n  --ssh-fip             用于查看ssh登录失败的ip和次数（无参数）\n  --ssh-fuser           用于查看ssh登录失败的用户和次数（无参数）\n  --ssh-sip             用于查看ssh登录成功的ip和次数（无参数）\n  --ssh-sinfo           用于查看ssh登录成功的用户详情（无参数）\n  --file-cron 7         用于查看系统各个级别定时任务目录中，n天内被修改的文件（参数为天数）\n  --file-starup 7       用于查看系统启动项目录中，n天内被修改的文件（参数为天数）\n  --file-os 7           用于查看系统重要目录中，n天内被修改的文件（参数为天数）\n  --file-change /www 7 php\n                        用于查看在n天内指定目录中指定后缀的被修改的文件（参数为物理路径、天数、后缀）\n  --file-perm /www jsp 777\n                        用于查看指定目录下指定后缀指定权限的文件（参数为物理路径、后缀、天数）\n  --s-backdoor /home    用于检测指定路径下的恶意样本（参数为物理路径）\n  --s-webshell /var/www\n                        用于检测指定路径下的webshell（参数为物理路径）\n```\n\n## 细节\n\n由于懒得重新截图，所以就直接放公众号之前发的图了\n- whohk，一款强大的linux应急响应辅助工具：[点击跳转](https://mp.weixin.qq.com/s?__biz=MzIyNDkwNjQ5Ng==\u0026mid=2247484224\u0026idx=1\u0026sn=616be624b7936abef282c5611f710a6a\u0026chksm=e8069f2fdf71163973a712de55de80b042fb6224fa9179b4a655b5fe2e5be647f63d7f038e60\u0026token=1653316416\u0026lang=zh_CN#rd)\n\n- [更新]Linux下应急响应工具whohk v1.1版本：[点击跳转](https://mp.weixin.qq.com/s?__biz=MzIyNDkwNjQ5Ng==\u0026mid=2247485371\u0026idx=1\u0026sn=8f6a32e28bf06e100edcd9241a8923e4\u0026chksm=e8069bd4df7112c28a416e740b6025982d1d4a920906f9e3aa2f6244c5a691af6cf9a96bb55d#rd)\n\n- 如何打造一款自己的恶意样本检测工具：[点击跳转](https://mp.weixin.qq.com/s?__biz=MzIyNDkwNjQ5Ng==\u0026amp;mid=2247484475\u0026amp;idx=1\u0026amp;sn=7180cb7a18335c71ef561f9ec468f601\u0026amp;chksm=e8069854df7111425708634704d07832764f02545065717fd45424abb960938cbc121a417eb5\u0026token=393884268\u0026lang=zh_CN#rd)\n\n## 碎碎念\n- 2020-09-21 \n\u003e  在历次的Linux系统下应急中感受到了敲命令的繁琐，以及有些太长记不住的命令当着客户面去百度的尴尬，决定把Linux下应急检查的一些点的命令用工具来集合到一起。在这个工具之前其实还做过一个windows/Linux系统下的安全巡检小工具，但由于对我的工作意义不大，所以最后经过一顿操作，有了`whohk`这一款小工具。\n\n- 2021-08-26\n\u003e 在过去的近一年里应急的次数不那么频繁了，基本无视这个工具。不过有一次登录公众号后，发现有一些粉丝私信提新功能以及反馈了一些问题（原谅我半年登一次公众号），所以这次根据之前的反馈，进行了一些更新。\n\n- 2022-04-30\n\u003e 发现这个工具居然成为了我GitHub stars最多的一个项目，或许真的帮助到了一些人。\n\u003e 决定开源。代码写的很简单，也可以说比较烂，本次上传的是2021.08.26的版本，也是目前最新版（因为只要没有新的需求就不会更新，以及我~~没有时间~~懒也不会更新🐶）。\n\u003e \n\u003e ~~不会摆烂。目前有一些新的想法，但是很模糊，大家有好的建议欢迎提issue。~~ 摆烂中...\n\n## TODO\n- [ ] 重构，代码写的优雅点\n- [ ] Windows支持\n- [ ] server端\n- [ ] 多台主机数据聚合分析\n\n## 交流\n\n![](img/taixiayanshu.png)\n![](img/wgpsec.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgpsec%2Fwhohk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgpsec%2Fwhohk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgpsec%2Fwhohk/lists"}