Documentation ¶
Index ¶
- Variables
- func AESCBCEncrypt(key []byte, Content []byte) (string, error)
- func AESGCMEncrypt(key []byte, Content []byte) (string, error)
- func AddScan(scantype string, info structs.HostInfo, ch *chan struct{}, wg *sync.WaitGroup)
- func AesDecrypt(cryted string, key string) string
- func AesEncrypt(orig string, key string) string
- func CheckErrs(err error) bool
- func Findnet(info *structs.HostInfo) error
- func FindnetScan(info *structs.HostInfo) error
- func FtpConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func FtpScan(info *structs.HostInfo) (tmperr error)
- func GetTelnetServerType(ip string, port int) int
- func GoPocWriteResult(result structs.GoPocsResultType)
- func GoPocsDispatcher(nucleiResults []output.ResultEvent)
- func HexUnicodeStringToString(src string) string
- func JDWPScan(info *structs.HostInfo) (err error)
- func MS17010(info *structs.HostInfo) error
- func MS17010Scan(info *structs.HostInfo) error
- func MemcachedScan(info *structs.HostInfo) (err error)
- func MongodbScan(info *structs.HostInfo) error
- func MongodbUnauth(info *structs.HostInfo) (flag bool, err error)
- func MssqlCMD(sqlstr string, conn *sql.DB) ([]interface{}, string)
- func MssqlConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func MssqlScan(info *structs.HostInfo) (tmperr error)
- func MysqlConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func MysqlScan(info *structs.HostInfo) (tmperr error)
- func NetBIOS(info *structs.HostInfo) error
- func OracleConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func OracleScan(info *structs.HostInfo) (tmperr error)
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func Padding(plainText []byte, blockSize int) []byte
- func PostgresConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func PostgresScan(info *structs.HostInfo) (tmperr error)
- func PrintRow(colsdata []interface{}) (err error, result string)
- func Randcase(len int) string
- func RdpConn(ip, domain, user, password string, port int, timeout int64) (bool, error)
- func RdpScan(info *structs.HostInfo) (tmperr error)
- func ReadBytes(conn net.Conn) (result []byte, err error)
- func RedisConn(info *structs.HostInfo, pass string) (flag bool, err error)
- func RedisScan(info *structs.HostInfo) (tmperr error)
- func RedisUnauth(info *structs.HostInfo) (flag bool, err error)
- func RemoveDuplicateUserPass(input []structs.UserPasswd) []structs.UserPasswd
- func ScanFunc(name *string, info *structs.HostInfo)
- func ShiroKeyCheck(info *structs.HostInfo)
- func SmbScan(info *structs.HostInfo) (tmperr error)
- func SmblConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func SshConn(info *structs.HostInfo, user string, pass string) (flag bool, err error)
- func SshScan(info *structs.HostInfo) (tmperr error)
- func TelnetCheck(addr, username, password string, port, serverType int) error
- func TelnetScan(info *structs.HostInfo) (tmperr error)
- type Brutelist
- type Client
- type NetBiosInfo
- func GetNbnsname(info *structs.HostInfo) (netbios NetBiosInfo, err error)
- func JoinNetBios(netbios1, netbios2 *NetBiosInfo) *NetBiosInfo
- func NetBIOS1(info *structs.HostInfo) (netbios NetBiosInfo, err error)
- func ParseNTLM(ret []byte) (netbios NetBiosInfo, err error)
- func ParseNetBios(input []byte) (netbios NetBiosInfo, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UNIQUE_NAMES = map[string]string{ "\x00": "WorkstationService", "\x03": "Messenger Service", "\x06": "RAS Server Service", "\x1F": "NetDDE Service", "\x20": "ServerService", "\x21": "RAS Client Service", "\xBE": "Network Monitor Agent", "\xBF": "Network Monitor Application", "\x1D": "Master Browser", "\x1B": "Domain Master Browser", } GROUP_NAMES = map[string]string{ "\x00": "DomainName", "\x1C": "DomainControllers", "\x1E": "Browser Service Elections", } NetBIOS_ITEM_TYPE = map[string]string{ "\x01\x00": "NetBiosComputerName", "\x02\x00": "NetBiosDomainName", "\x03\x00": "ComputerName", "\x04\x00": "DomainName", "\x05\x00": "DNS tree name", "\x07\x00": "Time stamp", } NegotiateSMBv1Data1 = []byte{}/* 137 elements not displayed */ NegotiateSMBv1Data2 = []byte{}/* 270 elements not displayed */ )
View Source
var CheckContent = "" /* 152-byte string literal not displayed */
View Source
var Mutex = &sync.Mutex{}
View Source
var PluginList = map[string]interface{}{ "NetBios-GetHostInfo": NetBIOS, "RPC-GetHostInfo": Findnet, "SSH-Crack": SshScan, "FTP-Crack": FtpScan, "Mysql-Crack": MysqlScan, "Mssql-Crack": MssqlScan, "Oracle-Crack": OracleScan, "MongoDB-Crack": MongodbScan, "RDP-Crack": RdpScan, "Redis-Crack": RedisScan, "SMB-MS17-010": MS17010, "PostgreSQL-Crack": PostgresScan, "SMB-Crack": SmbScan, "Telnet-Crack": TelnetScan, "Memcache-Crack": MemcachedScan, "JDWP-Scan": JDWPScan, "Shiro-Key-Crack": ShiroKeyCheck, }
View Source
var WriteResultLock sync.Mutex
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func FindnetScan ¶
func GetTelnetServerType ¶
func GoPocWriteResult ¶
func GoPocWriteResult(result structs.GoPocsResultType)
func GoPocsDispatcher ¶
func GoPocsDispatcher(nucleiResults []output.ResultEvent)
func MS17010Scan ¶
func MemcachedScan ¶
func MongodbScan ¶
func OracleConn ¶
func OracleScan ¶
func PKCS7Padding ¶
补码 AES加密数据块分组长度必须为128bit(byte[16]),密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个。
func PostgresConn ¶
func PostgresScan ¶
func RemoveDuplicateUserPass ¶
func RemoveDuplicateUserPass(input []structs.UserPasswd) []structs.UserPasswd
func ShiroKeyCheck ¶
func TelnetCheck ¶
func TelnetScan ¶
Types ¶
type Client ¶
type Client struct { Host string // ip:port // contains filtered or unexported fields }
type NetBiosInfo ¶
type NetBiosInfo struct { GroupName string WorkstationService string `yaml:"WorkstationService"` ServerService string `yaml:"ServerService"` DomainName string `yaml:"DomainName"` DomainControllers string `yaml:"DomainControllers"` ComputerName string `yaml:"ComputerName"` OsVersion string `yaml:"OsVersion"` NetDomainName string `yaml:"NetBiosDomainName"` NetComputerName string `yaml:"NetBiosComputerName"` }
func GetNbnsname ¶
func GetNbnsname(info *structs.HostInfo) (netbios NetBiosInfo, err error)
func JoinNetBios ¶
func JoinNetBios(netbios1, netbios2 *NetBiosInfo) *NetBiosInfo
func ParseNTLM ¶
func ParseNTLM(ret []byte) (netbios NetBiosInfo, err error)
func ParseNetBios ¶
func ParseNetBios(input []byte) (netbios NetBiosInfo, err error)
func (*NetBiosInfo) String ¶
func (info *NetBiosInfo) String() (output string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.