Skip to content

Commit

Permalink
删除rsyslog功能,修复匹配ping时间的正则问题
Browse files Browse the repository at this point in the history
  • Loading branch information
selinuxG committed Sep 8, 2023
1 parent 878dabb commit 22a3ab7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 180 deletions.
20 changes: 0 additions & 20 deletions cmd/network.go

This file was deleted.

27 changes: 0 additions & 27 deletions network/network.go

This file was deleted.

125 changes: 0 additions & 125 deletions network/syslog.go

This file was deleted.

5 changes: 3 additions & 2 deletions port/crack/password.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ test123456
test12345
test123
test
1234qwer!@#$
1234qwer
system
sys
sqlserver
Expand All @@ -28,6 +30,7 @@ password
Passw0rd
pass
P@ssw0rd
1qaz2wsx#
oracle
mysql
ftppass
Expand All @@ -43,7 +46,6 @@ admin@123
admin#123
admin
abc123
1qaz2wsx
1q2w3e4r
1q2w3e
123qwe
Expand Down Expand Up @@ -151,7 +153,6 @@ w1234567
454545
909090
123456y
asdf
78787878
!QAZ2wsx
zxzxzx
Expand Down
5 changes: 0 additions & 5 deletions port/exclude.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ func removeDuplicates(slice []string) []string {

// removeIP 获取不进行扫描的IP
func removeIP(data string) {
if data == "" {
return
}

var NoList []string

if global.PathExists(data) {
fireData, _ := os.ReadFile(data)
fireData = []byte(strings.ReplaceAll(string(fireData), "\r\n", "\n"))
Expand Down
2 changes: 1 addition & 1 deletion port/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func NetWorkPing(ip string) (bool, string, string) {
outttl := strings.ToLower(string(output)) //所有大写转换为小写

// time
re := regexp.MustCompile(`=(\d+)ms`)
re := regexp.MustCompile(`(\d+)ms`)
timems := ""
timeStr := re.FindStringSubmatch(outttl)
if len(timeStr) > 1 {
Expand Down

0 comments on commit 22a3ab7

Please sign in to comment.