forked from k8gege/LadonGo
-
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
Showing
7 changed files
with
140 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
2020/12/21 21:12:33 Found: 192.168.1.21 6379 ISOK | ||
2020/12/21 21:14:00 Found: 192.168.1.21 6379 ISOK | ||
2020/12/21 21:14:45 Found: 192.168.1.21 6379 ISOK | ||
2020/12/21 21:21:13 Found: 192.168.1.21 6379 ISOK | ||
2020/12/21 21:46:45 Found: 192.168.1.21 6379 ISOK | ||
2020/12/21 21:46:51 Found: 192.168.1.21 6379 ISOK |
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 @@ | ||
192.168.1.21 6379 Open |
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,40 @@ | ||
package redis | ||
//Ladon Scanner for golang | ||
//Author: k8gege | ||
//K8Blog: http://k8gege.org/Ladon | ||
//Github: https://github.com/k8gege/LadonGo | ||
import ( | ||
//"fmt" | ||
"strconv" | ||
"github.com/monnand/goredis" | ||
"github.com/k8gege/LadonGo/port" | ||
"github.com/k8gege/LadonGo/logger" | ||
) | ||
|
||
func RedisNullAuth(host string,iport int) (result bool) { | ||
result = false | ||
if port.PortCheck(host,iport) { | ||
var client goredis.Client | ||
port:=strconv.Itoa(iport) | ||
client.Addr = host+":"+port | ||
err := client.Set("test", []byte("ISOK")) | ||
if err != nil { | ||
//panic(err) | ||
} | ||
|
||
res, _ := client.Get("test") | ||
if string(res)=="ISOK" { | ||
result = true | ||
} | ||
|
||
client.Set("test", []byte("test")) | ||
} | ||
return result | ||
} | ||
|
||
func RedisNullScan(ScanType,host string) { | ||
if RedisNullAuth(host,6379) { | ||
logger.PrintIsok0(ScanType,host,"6379") | ||
} | ||
|
||
} |
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,22 @@ | ||
3.3 2021.01.14 | ||
[u] 修复无权限写文件时,结束密码爆破的BUG | ||
[u] 修复B段、A段漏扫0段的BUG | ||
[u] PortScan 增加Ruby on Rails默认WEB端口3000 | ||
[+] RedisScan Redis未授权访问扫描 | ||
[u] TcpBanner 范围端口 例子: Ladon ip/24 TcpBanner 80-89 | ||
[u] PortScan 范围端口 例子: Ladon ip/24 PortScan 80-89 | ||
[u] TcpBanner 指定端口 例子: Ladon ip/24 TcpBanner 80 | ||
[u] PortScan 指定端口 例子: Ladon ip/24 PortScan 80 | ||
|
||
3.2 2020.12.18 | ||
[u] PortScan默认扫Banner 高亮显示SSH、HTTP、FTP服务 | ||
[+] TcpBanner 自定义端口 例子: Ladon ip/24 TcpBanner 80,135,445 | ||
[+] PortScan 自定义端口 例子: Ladon ip/24 PortScan 80,135,445 | ||
[u] 修复ICMP误报的问题(icmp_seq=1 Destination Host Unreachable) | ||
|
||
#### TcpBanner | ||
ScanStart: 2020-12-18 02:30:33 | ||
192.168.1.19 22 Open SSH-2.0-OpenSSH_5.1 | ||
192.168.1.145 22 Open SSH-2.0-OpenSSH_5.1 | ||
192.168.1.1 21 Open 220 Welcome to virtual FTP service. | ||
192.168.1.1 80 Open HTTP/1.1 200 OK Connection: Keep-Alive |