{"id":13844715,"url":"https://github.com/QAX-A-Team/WeblogicEnvironment","last_synced_at":"2025-07-12T00:31:20.967Z","repository":{"id":49364864,"uuid":"200028122","full_name":"QAX-A-Team/WeblogicEnvironment","owner":"QAX-A-Team","description":"Weblogic环境搭建工具","archived":false,"fork":false,"pushed_at":"2020-04-23T07:36:58.000Z","size":3724,"stargazers_count":759,"open_issues_count":7,"forks_count":98,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-05T17:42:55.193Z","etag":null,"topics":["docker","vul-environment","weblogic-server"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/QAX-A-Team.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":"2019-08-01T10:15:59.000Z","updated_at":"2024-07-29T04:04:59.000Z","dependencies_parsed_at":"2022-08-28T18:34:17.710Z","dependency_job_id":null,"html_url":"https://github.com/QAX-A-Team/WeblogicEnvironment","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/QAX-A-Team%2FWeblogicEnvironment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QAX-A-Team%2FWeblogicEnvironment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QAX-A-Team%2FWeblogicEnvironment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QAX-A-Team%2FWeblogicEnvironment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QAX-A-Team","download_url":"https://codeload.github.com/QAX-A-Team/WeblogicEnvironment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225772735,"owners_count":17521880,"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":["docker","vul-environment","weblogic-server"],"created_at":"2024-08-04T17:02:53.398Z","updated_at":"2024-11-21T17:30:43.232Z","avatar_url":"https://github.com/QAX-A-Team.png","language":"Shell","funding_links":[],"categories":["Shell (473)","DevOps","Shell"],"sub_categories":[],"readme":"# Weblogic环境搭建工具\n\nWeblogic环境搭建过程很繁琐，很多时候需要测试各种Weblogic版本和各种JDK版本的排列组合，因此我写了一个脚本级别的Weblogic环境搭建工具，用于安全研究时节省大家搭建环境的时间。\n此环境搭建工具使用Docker和shell脚本，因此需要本机安装Docker才可以使用。经测试漏洞搭建工具可以在3分钟内构建出任意JDK版本搭配任意Weblogic版本，包含一个可远程调试的已启动的Weblogic Server域环境。\n\n## 需求\n- 自动化安装任意版本JDK\n- 自动化安装任意版本Weblogic Server\n- 自动化创建域\n- 自动打开远程调试\n- 自动启动一个Weblogic Server域\n\n## 流程\n\n![](./images/2019-08-01-21-05-32.png)\n\n## 使用方法：\n\n### 下载JDK安装包和Weblogic安装包\n\n下载相应的JDK版本和Weblogic安装包，将JDK安装包放到`jdks/`目录下，将Weblogic安装包放到`weblogics/`目录下。**此步骤必须手动操作，否则无法进行后续步骤。**\n\n![](./images/2019-08-01-16-34-18.png)\n\n![](./images/2019-08-01-16-35-18.png)\n\nJDK安装包下载地址：https://www.oracle.com/technetwork/java/javase/archive-139210.html\nWeblogic安装包下载地址：https://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html\n\n### 构建镜像并运行\n\n回到根目录，执行Docker构建镜像命令：\n\n```plain text\ndocker build --build-arg JDK_PKG=\u003cYOUR-JDK-PACKAGE-FILE-NAME\u003e --build-arg WEBLOGIC_JAR=\u003cYOUR-WEBLOGIC-PACKAGE-FILE-NAME\u003e  -t \u003cDOCKER-IMAGE-NAME\u003e .\n```\n镜像构建完成后，执行以下命令运行：\n```plain text\ndocker run -d -p 7001:7001 -p 8453:8453 -p 5556:5556 --name \u003cCONTAINER-NAME\u003e \u003cDOCKER-IMAGE-NAME-YOU-JUST-BUILD\u003e\n```\n\n以Weblogic12.1.3配JDK 7u21为例，构建镜像命令如下：\n```plain text\ndocker build --build-arg JDK_PKG=jdk-7u21-linux-x64.tar.gz --build-arg WEBLOGIC_JAR=fmw_12.1.3.0.0_wls.jar  -t weblogic12013jdk7u21 .\n```\n镜像构建完成后，执行以下命令运行：\n```plain text\ndocker run -d -p 7001:7001 -p 8453:8453 -p 5556:5556 --name weblogic12013jdk7u21 weblogic12013jdk7u21\n```\n\n运行后可访问`http://localhost:7001/console/login/LoginForm.jsp`登录到Weblogic Server管理控制台，默认用户名为`weblogic`,默认密码为`qaxateam01`\n\n### 远程调试\n\n如需远程调试，需使用`docker cp`将远程调试需要的目录从已运行的容器复制到本机。\n\n也可以使用`run_weblogic1036jdk6u25.sh`、`run_weblogic12013jdk7u21sh`、`run_weblogic12021jdk8u121.sh`这三个脚本进行快速环境搭建并复制远程调试需要用到的目录。执行前请赋予它们相应的可执行权限。\n\n### 示例\n以JDK 7u21配合Weblogic 12.1.3为例，自动搭建效果如下：\n![](./images/weblogic_env.gif)\n\n## 兼容性测试\n已测试了如下环境搭配的兼容性：\n\n- 测试系统：macOS Mojave 10.14.5\n- Docker版本：Docker 18.09.2\n\n- [x] Weblogic 10.3.6 With JDK 6u25\n- [x] Weblogic 10.3.6 With JDK 7u21\n- [x] Weblogic 10.3.6 With JDK 8u121\n- [x] Weblogic 12.1.3 With JDK 7u21\n- [x] Weblogic 12.1.3 With JDK 8u121\n- [x] Weblogic 12.2.1 With JDK 8u121\n\n## 已知问题\n\n- 由于时间关系，我没有对更多Weblogic版本和更多的JDK版本搭配做测试，请自行测试\n- 请时刻关注输出内容，如出现异常请自行修改对应脚本\n\n欢迎大家一起为此自动化环境搭建工具贡献力量。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQAX-A-Team%2FWeblogicEnvironment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FQAX-A-Team%2FWeblogicEnvironment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQAX-A-Team%2FWeblogicEnvironment/lists"}