mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 05:56:46 +08:00

## 主要修复 - 重写Telnet插件认证逻辑,修复"未发现弱密码"错误 - 实现完整IAC协商处理,确保与telnet服务器正常通信 - 改进登录提示和认证流程检测,支持多轮数据读取 - 优化shell提示符检测,准确识别无需认证的服务 - 添加详细调试日志,方便问题排查 ## 技术改进 - 实现handleIACNegotiation函数处理telnet协议协商 - 改进cleanResponse函数清理IAC控制命令 - 增强performSimpleTelnetAuth多阶段认证检测 - 分离isLoginSuccess和isLoginFailed判断逻辑 - 优化超时处理和错误恢复机制 ## 测试结果 - 正确识别无需认证的busybox telnetd服务 - 能够准确检测和报告"无需认证"状态 - 修复随机密码"成功"的虚假结果问题 - IAC协商成功,获得真实服务器响应
76 lines
3.2 KiB
Modula-2
76 lines
3.2 KiB
Modula-2
module github.com/shadow1ng/fscan
|
|
|
|
go 1.20
|
|
|
|
require (
|
|
github.com/IBM/sarama v1.43.3
|
|
github.com/denisenkom/go-mssqldb v0.12.3
|
|
github.com/fatih/color v1.18.0
|
|
github.com/go-ldap/ldap/v3 v3.4.9
|
|
github.com/go-sql-driver/mysql v1.8.1
|
|
github.com/gocql/gocql v1.7.0
|
|
github.com/google/cel-go v0.13.0
|
|
github.com/jlaffaye/ftp v0.2.0
|
|
github.com/lib/pq v1.10.9
|
|
github.com/satori/go.uuid v1.2.0
|
|
github.com/schollz/progressbar/v3 v3.13.1
|
|
github.com/stacktitan/smb v0.0.0-20190531122847-da9a425dceb8
|
|
github.com/ziutek/telnet v0.1.0
|
|
go.mongodb.org/mongo-driver v1.17.4
|
|
golang.org/x/crypto v0.31.0
|
|
golang.org/x/net v0.32.0
|
|
golang.org/x/sync v0.10.0
|
|
golang.org/x/sys v0.28.0
|
|
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c
|
|
google.golang.org/protobuf v1.28.1
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
)
|
|
|
|
require (
|
|
filippo.io/edwards25519 v1.1.0 // indirect
|
|
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
|
github.com/alexbrainman/sspi v0.0.0-20231016080023-1a75b4708caa // indirect
|
|
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/eapache/go-resiliency v1.7.0 // indirect
|
|
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect
|
|
github.com/eapache/queue v1.1.0 // indirect
|
|
github.com/go-asn1-ber/asn1-ber v1.5.7 // indirect
|
|
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
|
|
github.com/golang-sql/sqlexp v0.1.0 // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
|
|
github.com/hashicorp/errwrap v1.0.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
|
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
|
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
|
github.com/jcmturner/gofork v1.7.6 // indirect
|
|
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
|
|
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
|
|
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
|
github.com/klauspost/compress v1.17.9 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mattn/go-runewidth v0.0.14 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/montanaflynn/stats v0.7.1 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.21 // indirect
|
|
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
|
github.com/stoewer/go-strcase v1.2.0 // indirect
|
|
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
|
github.com/xdg-go/scram v1.1.2 // indirect
|
|
github.com/xdg-go/stringprep v1.0.4 // indirect
|
|
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
|
|
golang.org/x/term v0.27.0 // indirect
|
|
golang.org/x/text v0.21.0 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
)
|
|
|
|
replace github.com/tomatome/grdp v0.0.0-20211231062539-be8adab7eaf3 => github.com/shadow1ng/grdp v1.0.3
|
|
|
|
replace github.com/C-Sto/goWMIExec v0.0.1-deva.0.20210704154847-b8ebd6464a06 => github.com/shadow1ng/goWMIExec v0.0.2
|