MCPcopy Create free account
hub / github.com/R4gd0ll/LazyAnFuZai / installCheck

Method installCheck

src/main/java/System/systemCheck.java:4–12  ·  view source on GitHub ↗
(String a)

Source from the content-addressed store, hash-verified

2
3public class systemCheck {
4 public static String installCheck(String a){
5 String result = "yum grouplist查看已安装组件,";
6 if(a.contains("最小安装") || a.contains("Minimal Install")){
7 result += "存在环境分组且具备最小安装";
8 }else {
9 result += "存在环境分组且不具备最小安装,不符合安全要求";
10 }
11 return result;
12 }
13 public static String portCheck(String a){
14 String[] b = a.split("\n");
15 String result = "netstat查看开放端口,";

Callers 1

resultPrintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected