mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
修复默认扫描 POC 结果缺失 #586
This commit is contained in:
@@ -261,6 +261,17 @@ func slicesEqual(a, b []string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func TestOrderWebPlugins(t *testing.T) {
|
||||
plugins := []string{"ssh", "webpoc", "redis", "webtitle", "mysql"}
|
||||
|
||||
orderWebPlugins(plugins)
|
||||
|
||||
expected := []string{"webtitle", "ssh", "redis", "mysql", "webpoc"}
|
||||
if !slicesEqual(plugins, expected) {
|
||||
t.Fatalf("orderWebPlugins = %#v, want %#v", plugins, expected)
|
||||
}
|
||||
}
|
||||
|
||||
// TestNewBaseScanStrategy 测试构造函数
|
||||
func TestNewBaseScanStrategy(t *testing.T) {
|
||||
tests := []struct {
|
||||
|
||||
Reference in New Issue
Block a user