refactor: 增加约束编译

This commit is contained in:
ZacharyZcR 2024-12-28 06:34:37 +08:00
parent ef70395d7d
commit 0954492540
4 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,5 @@
//go:build windows
package Plugins
import (
@ -385,8 +387,8 @@ func (d *DomainInfo) GetAdminGroups() (map[string][]string, error) {
// 获取委派信息
func (d *DomainInfo) GetDelegation() (map[string][]string, error) {
delegationQueries := map[string]string{
"非约束委派": "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=524288))",
"约束委派": "(msDS-AllowedToDelegateTo=*)",
"非约束委派": "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=524288))",
"约束委派": "(msDS-AllowedToDelegateTo=*)",
"基于资源的约束委派": "(msDS-AllowedToActOnBehalfOfOtherIdentity=*)",
}

9
Plugins/DCInfoUnix.go Normal file
View File

@ -0,0 +1,9 @@
//go:build !windows
package Plugins
import "github.com/shadow1ng/fscan/Common"
func DCInfoScan(info *Common.HostInfo) (err error) {
return nil
}

View File

@ -1,3 +1,5 @@
//go:build windows
package Plugins
import (

9
Plugins/MiniDumpUnix.go Normal file
View File

@ -0,0 +1,9 @@
//go:build !windows
package Plugins
import "github.com/shadow1ng/fscan/Common"
func MiniDump(info *Common.HostInfo) (err error) {
return nil
}