repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_severity.go | pkg/types/risk_severity.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type RiskSeverity int
const (
LowSeverity RiskSeverity = iota
MediumSeverity
ElevatedSeverity
HighSeverity
CriticalSeverity
)
func RiskSeverityValues() []TypeEnum {
return []TypeE... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_function_test.go | pkg/types/risk_function_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseRiskFunctionTest struct {
input string
expected RiskFunction
expectedError error
}
func TestParseRiskFunction(t *testing.T) {
testCases := map[string]ParseRis... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/confidentiality.go | pkg/types/confidentiality.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Confidentiality int
const (
Public Confidentiality = iota
Internal
Restricted
Confidential
StrictlyConfidential
)
func ConfidentialityValues() []TypeEnum {
return []TypeEnum{... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk.go | pkg/types/risk.go | package types
type Risk struct {
CategoryId string `yaml:"category,omitempty" json:"category,omitempty"` // used for better JSON marshalling, is assigned in risk evaluation phase automatically
RiskStatus RiskStatus `yaml:"risk_status... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_status.go | pkg/types/risk_status.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type RiskStatus int
const (
Unchecked RiskStatus = iota
InDiscussion
Accepted
InProgress
Mitigated
FalsePositive
)
func RiskStatusValues() []TypeEnum {
return []TypeEnum{
Unche... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/shared_runtime.go | pkg/types/shared_runtime.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
type SharedRuntime struct {
Id string `json:"id,omitempty" yaml:"id,omitempty"`
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Description string `json:"description,omitempty" yaml:"de... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_type_test.go | pkg/types/technical_asset_type_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseTechnicalAssetTypeTest struct {
input string
expected TechnicalAssetType
expectedError error
}
func TestParseTechnicalAssetType(t *testing.T) {
testCases := m... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_exploitation_likelihood_test.go | pkg/types/risk_exploitation_likelihood_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseRiskExploitationLikelihoodTest struct {
input string
expected RiskExploitationLikelihood
expectedError error
}
func TestParseRiskExploitationLikelihood(t *test... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/data_breach_probability.go | pkg/types/data_breach_probability.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type DataBreachProbability int
const (
Improbable DataBreachProbability = iota
Possible
Probable
)
func DataBreachProbabilityValues() []TypeEnum {
return []TypeEnum{
Improbable,
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/authentication.go | pkg/types/authentication.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Authentication int
const (
NoneAuthentication Authentication = iota
Credentials
SessionId
Token
ClientCertificate
TwoFactor
Externalized
)
func AuthenticationValues() []Type... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/criticality.go | pkg/types/criticality.go | package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Criticality int
const (
Archive Criticality = iota
Operational
Important
Critical
MissionCritical
)
func CriticalityValues() []TypeEnum {
return []TypeEnum{
Archive,
Operational,
Important,
Critical,
MissionCritica... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/data_format.go | pkg/types/data_format.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type DataFormat int
const (
JSON DataFormat = iota
XML
Serialization
File
CSV
YAML
)
func DataFormatValues() []TypeEnum {
return []TypeEnum{
JSON,
XML,
Serialization,
Fil... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_type.go | pkg/types/technical_asset_type.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type TechnicalAssetType int
const (
ExternalEntity TechnicalAssetType = iota
Process
Datastore
)
func TechnicalAssetTypeValues() []TypeEnum {
return []TypeEnum{
ExternalEntity,
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/trust_boundary_type_test.go | pkg/types/trust_boundary_type_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseTrustBoundaryTest struct {
input string
expected TrustBoundaryType
expectedError error
}
func TestParseTrustBoundaryType(t *testing.T) {
testCases := map[strin... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset.go | pkg/types/technical_asset.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"sort"
)
type TechnicalAsset struct {
Id string `json:"id,omitempty" yaml:"id,omitempty"`
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Description ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/trust_boundary.go | pkg/types/trust_boundary.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
type TrustBoundary struct {
Id string `json:"id,omitempty" yaml:"id,omitempty"`
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Description string `json:"descrip... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/protocol.go | pkg/types/protocol.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Protocol int
const (
UnknownProtocol Protocol = iota
HTTP
HTTPS
WS
WSS
ReverseProxyWebProtocol
ReverseProxyWebProtocolEncrypted
MQTT
JDBC
JdbcEncrypted
ODBC
OdbcEncrypte... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/stride.go | pkg/types/stride.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type STRIDE int
const (
Spoofing STRIDE = iota
Tampering
Repudiation
InformationDisclosure
DenialOfService
ElevationOfPrivilege
)
func STRIDEValues() []TypeEnum {
return []TypeEn... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_exploitation_impact_test.go | pkg/types/risk_exploitation_impact_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseRiskExploitationImpactTest struct {
input string
expected RiskExploitationImpact
expectedError error
}
func TestParseRiskExploitationImpact(t *testing.T) {
te... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/encryption_style_test.go | pkg/types/encryption_style_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseEncryptionStyleTest struct {
input string
expected EncryptionStyle
expectedError error
}
func TestParseEncryptionStyle(t *testing.T) {
testCases := map[string... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technology-map.go | pkg/types/technology-map.go | package types
import (
"embed"
"fmt"
"os"
"path/filepath"
"gopkg.in/yaml.v3"
)
//go:embed technologies.yaml
var technologiesLocation embed.FS
type TechnologyMap map[string]Technology
type technologyMapConfigReader interface {
GetAppFolder() string
GetTechnologyFilename() string
}
func (what TechnologyMap) ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk-category.go | pkg/types/risk-category.go | package types
import "strings"
type RiskCategory struct {
ID string `json:"id,omitempty" yaml:"id,omitempty"`
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Description string `json:"description,omitempty" yaml:"description... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/authorization.go | pkg/types/authorization.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Authorization int
const (
NoneAuthorization Authorization = iota
TechnicalUser
EndUserIdentityPropagation
)
func AuthorizationValues() []TypeEnum {
return []TypeEnum{
NoneAut... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/encryption_style.go | pkg/types/encryption_style.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type EncryptionStyle int
const (
NoneEncryption EncryptionStyle = iota
Transparent
DataWithSymmetricSharedKey
DataWithAsymmetricSharedKey
DataWithEndUserIndividualKey
)
func Encryp... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_machine_test.go | pkg/types/technical_asset_machine_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseTechnicalAssetMachineTest struct {
input string
expected TechnicalAssetMachine
expectedError error
}
func TestParseTechnicalAssetMachine(t *testing.T) {
testC... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_exploitation_impact.go | pkg/types/risk_exploitation_impact.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type RiskExploitationImpact int
const (
LowImpact RiskExploitationImpact = iota
MediumImpact
HighImpact
VeryHighImpact
)
func RiskExploitationImpactValues() []TypeEnum {
return []T... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/data_breach_probability_test.go | pkg/types/data_breach_probability_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseDataBreachProbabilityTest struct {
input string
expected DataBreachProbability
expectedError error
}
func TestParseDataBreachProbability(t *testing.T) {
testC... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_machine.go | pkg/types/technical_asset_machine.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type TechnicalAssetMachine int
const (
Physical TechnicalAssetMachine = iota
Virtual
Container
Serverless
)
func TechnicalAssetMachineValues() []TypeEnum {
return []TypeEnum{
Phy... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/overview.go | pkg/types/overview.go | package types
type Overview struct {
Description string
Images []map[string]string // yes, array of map here, as array keeps the order of the image keys
}
| go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_size.go | pkg/types/technical_asset_size.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type TechnicalAssetSize int
const (
System TechnicalAssetSize = iota
Service
Application
Component
)
func TechnicalAssetSizeValues() []TypeEnum {
return []TypeEnum{
System,
Ser... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/authentication_test.go | pkg/types/authentication_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseAuthenticationTest struct {
input string
expected Authentication
expectedError error
}
func TestParseAuthentication(t *testing.T) {
testCases := map[string]Pa... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/trust_boundary_type.go | pkg/types/trust_boundary_type.go | package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type TrustBoundaryType int
const (
NetworkOnPrem TrustBoundaryType = iota
NetworkDedicatedHoster
NetworkVirtualLAN
NetworkCloudProvider
NetworkCloudSecurityGroup
NetworkPolicyNamespaceIsolation
ExecutionEnvironment
)
func TrustB... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/data_format_test.go | pkg/types/data_format_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseDataFormatTest struct {
input string
expected DataFormat
expectedError error
}
func TestParseDataFormat(t *testing.T) {
testCases := map[string]ParseDataForma... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/stride_test.go | pkg/types/stride_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseStrideTest struct {
input string
expected STRIDE
expectedError error
}
func TestParseStride(t *testing.T) {
testCases := map[string]ParseStrideTest{
"spoofi... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/data_asset.go | pkg/types/data_asset.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
type DataAsset struct {
Id string `yaml:"id,omitempty" json:"id,omitempty"` // TODO: tag here still required?
Title string `yaml:"title,omitempty" json:"title,omitempty"` ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk-tracking.go | pkg/types/risk-tracking.go | package types
type RiskTracking struct {
SyntheticRiskId string `json:"synthetic_risk_id,omitempty" yaml:"synthetic_risk_id,omitempty"`
Justification string `json:"justification,omitempty" yaml:"justification,omitempty"`
Ticket string `json:"ticket,omitempty" yaml:"ticket,omitempty"`
Checked... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/usage_test.go | pkg/types/usage_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseUsageTest struct {
input string
expected Usage
expectedError error
}
func TestParseUsage(t *testing.T) {
testCases := map[string]ParseUsageTest{
"business":... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/model.go | pkg/types/model.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"regexp"
"slices"
"sort"
"strings"
)
// TODO: move model out of types package and
// rename model to model or something like this to emphasize that it's just a model
// maybe
type Model struct {
ThreagileVersion ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/authorization_test.go | pkg/types/authorization_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseAuthorizationTest struct {
input string
expected Authorization
expectedError error
}
func TestParseAuthorization(t *testing.T) {
testCases := map[string]Parse... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/types.go | pkg/types/types.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
// TypeDescription contains a name for a type and its description
type TypeDescription struct {
Name string
Description string
}
type TypeEnum interface {
String() string
Explain() string
}
func GetBuiltinTypeValues(cfg technologyMapConfigRea... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/usage.go | pkg/types/usage.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Usage int
const (
Business Usage = iota
DevOps
)
func UsageValues() []TypeEnum {
return []TypeEnum{
Business,
DevOps,
}
}
func ParseUsage(value string) (usage Usage, err e... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_severity_test.go | pkg/types/risk_severity_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseRiskSeverityTest struct {
input string
expected RiskSeverity
expectedError error
}
func TestParseRiskSeverity(t *testing.T) {
testCases := map[string]ParseRis... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/quantity_test.go | pkg/types/quantity_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"testing"
"gopkg.in/yaml.v3"
"github.com/stretchr/testify/assert"
)
type ParseQuantityTest struct {
input string
expected Quantity
expectedError error
}
func TestParseQuantity(t *testing.T) {
testCa... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technology.go | pkg/types/technology.go | package types
import "strings"
const (
AI = "ai"
ApplicationServer = "application-server"
ArtifactRegistry = "artifact-registry"
BatchProcessing = "batch-processing"
BigDataPlatform = "big-data-platform"
BlockStorage = "block-storage"
Browser ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_function.go | pkg/types/risk_function.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type RiskFunction int
const (
BusinessSide RiskFunction = iota
Architecture
Development
Operations
)
func RiskFunctionValues() []TypeEnum {
return []TypeEnum{
BusinessSide,
Arc... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/author.go | pkg/types/author.go | package types
type Author struct {
Name string
Contact string
Homepage string
}
| go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technical_asset_size_test.go | pkg/types/technical_asset_size_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseTechnicalAssetSizeTest struct {
input string
expected TechnicalAssetSize
expectedError error
}
func TestParseTechnicalAssetSize(t *testing.T) {
testCases := m... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/confidentiality_test.go | pkg/types/confidentiality_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseConfidentialityTest struct {
input string
expected Confidentiality
expectedError error
}
func TestParseConfidenitality(t *testing.T) {
testCases := map[string... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/date.go | pkg/types/date.go | package types
import (
"time"
"gopkg.in/yaml.v3"
)
const (
jsonDateFormat = `"2006-01-02"`
yamlDateFormat = `2006-01-02`
)
type Date struct {
time.Time
}
func (what Date) MarshalJSON() ([]byte, error) {
return []byte(what.Format(jsonDateFormat)), nil
}
func (what *Date) UnmarshalJSON(bytes []byte) error {
... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/quantity.go | pkg/types/quantity.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type Quantity int
const (
VeryFew Quantity = iota
Few
Many
VeryMany
)
func QuantityValues() []TypeEnum {
return []TypeEnum{
VeryFew,
Few,
Many,
VeryMany,
}
}
func ParseQu... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_status_test.go | pkg/types/risk_status_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseRiskStatusTest struct {
input string
expected RiskStatus
expectedError error
}
func TestParseRiskStatus(t *testing.T) {
testCases := map[string]ParseRiskStatu... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk_exploitation_likelihood.go | pkg/types/risk_exploitation_likelihood.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"encoding/json"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
type RiskExploitationLikelihood int
const (
Unlikely RiskExploitationLikelihood = iota
Likely
VeryLikely
Frequent
)
func RiskExploitationLikelihoodValues() []TypeEnum {
return []Ty... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/risk-rule.go | pkg/types/risk-rule.go | package types
type RiskRule interface {
Category() *RiskCategory
SupportedTags() []string
GenerateRisks(*Model) ([]*Risk, error)
}
type RiskRules map[string]RiskRule
func (what RiskRules) Merge(rules RiskRules) RiskRules {
for key, value := range rules {
what[key] = value
}
return what
}
| go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/technology-list.go | pkg/types/technology-list.go | package types
import "strings"
const (
MayContainSecrets = "may_contain_secrets" // #nosec G101 // this is a constant for a string
NoAuthenticationRequired = "no_authentication_required"
IsHighValueTarget = "high_value_target"... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/criticality_test.go | pkg/types/criticality_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type ParseCriticalityTest struct {
input string
expected Criticality
expectedError error
}
func TestParseCriticality(t *testing.T) {
testCases := map[string]ParseCritic... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/types/communication_link.go | pkg/types/communication_link.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package types
type CommunicationLink struct {
Id string `json:"id,omitempty" yaml:"id,omitempty"`
SourceId string `json:"source_id,omitempty" yaml:"source_id,omitempty"`
TargetId string `json:"t... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/runner.go | pkg/model/runner.go | // TODO: consider moving to internal
package model
import (
"bytes"
"fmt"
"gopkg.in/yaml.v3"
"os"
"os/exec"
)
type runner struct {
Filename string
Parameters []string
In any
Out any
ErrorOutput string
}
func (p *runner) Load(filename string) (*runner, error) {
*p = runner{
Filename... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/raa.go | pkg/model/raa.go | package model
import (
"sort"
"github.com/threagile/threagile/pkg/types"
)
func applyRAA(input *types.Model, progressReporter types.ProgressReporter) string {
progressReporter.Infof("Applying RAA calculation")
for techAssetID, techAsset := range input.TechnicalAssets {
aa := calculateAttackerAttractiveness(in... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/custom-risk-category.go | pkg/model/custom-risk-category.go | package model
import (
"fmt"
"path/filepath"
"strings"
"github.com/threagile/threagile/pkg/types"
)
type CustomRiskCategory struct {
types.RiskCategory `json:"risk_category" yaml:"risk_category,omitempty"`
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
runner *runner
}
func (what *CustomRiskC... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/read.go | pkg/model/read.go | package model
import (
"fmt"
"gopkg.in/yaml.v3"
"os"
"path/filepath"
"strings"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type ReadResult struct {
ModelInput *input.Model
ParsedModel *types.Model
IntroTextRAA string
BuiltinRiskRules types.RiskRul... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/parse_test.go | pkg/model/parse_test.go | /*
Copyright ยฉ 2023 NAME HERE <EMAIL ADDRESS>
*/
package model
import (
"testing"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
func TestDefaultInputNotFail(t *testing.T) {
parsedModel, err := ParseModel(&... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | false |
Threagile/threagile | https://github.com/Threagile/threagile/blob/293892c9c3a6bb287f66b4b048d2fb1fae2d3676/pkg/model/parse.go | pkg/model/parse.go | package model
import (
"fmt"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/threagile/threagile/pkg/input"
"github.com/threagile/threagile/pkg/types"
)
type technologyMapConfigReader interface {
GetAppFolder() string
GetTechnologyFilename() string
}
func ParseModel(config technologyMapConfigReader, ... | go | MIT | 293892c9c3a6bb287f66b4b048d2fb1fae2d3676 | 2026-01-07T10:38:05.901794Z | true |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/enscan.go | enscan.go | package main
import (
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/runner"
)
func main() {
var enOptions common.ENOptions
common.Flag(&enOptions)
enOptions.Parse()
runner.RunEnumeration(&enOptions)
}
| go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/runner.go | runner/runner.go | package runner
import (
"encoding/gob"
"fmt"
"log"
"os"
"os/signal"
"sync"
"time"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
_interface "github.com/wgpsec/ENScan/interface"
"github.com/wgpsec/ENScan/inter... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/mcpServer.go | runner/mcpServer.go | package runner
import (
"encoding/json"
"fmt"
"github.com/mark3labs/mcp-go/mcp"
"github.com/mark3labs/mcp-go/server"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
"golang.org/x/net/context"
"log"
"strconv"
)
// getInfoPro ้กพๅๆไน๏ผPROๆนๆณ
func... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/api.go | runner/api.go | package runner
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strconv"
)
type webOp struct {
OrgName string `form:"name" json:"name"`
ScanType string `form:"type" json:"type"`
Filed string `form:"filed" json:"filed"`
Depth ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/enscan.go | runner/enscan.go | package runner
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
)
// SearchByKeyWord ๆ นๆฎๅ
ณ้ฎ่ฏ็ญ้ๅ
ฌๅธ
func (j *EnJob) SearchByKeyWord(keyword string) (string, error) {
enList, err ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/bean.go | runner/bean.go | package runner
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
)
// ENSOp ็จไบๆฅๆถๅ็ซฏไผ ้็ๅๆฐ
type ENSOp struct {
OrgName string `form:"name" json:"name"`
ScanType string `form:"type" json:"type"`
Filed string `form:"filed" json:"filed"`
De... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/runner/app.go | runner/app.go | package runner
import (
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
)
// getAppById ็ดๆฅไฝฟ็จๅ
ณ้ฎ่ฏ่ฐ็จๆไปถๆฅ่ฏข
func (j *EnJob) getAppByKeyWord(keyWord string, searchList []string, ref string) (e error) {
enData := make(map[string][]gjson.Result)
em := j.app.Ge... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/kuaicha/utils.go | internal/kuaicha/utils.go | package kuaicha
import (
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"time"
)
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap = map[string]*common.EnsGo{
"enterprise_info": {
Name: "ไผไธไฟกๆฏ",
Api: "enterprise_info_api... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/kuaicha/kuaicha.go | internal/kuaicha/kuaicha.go | package kuaicha
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strconv"
"strings"
)
type KC struct {
Options *common.ENOptions
}
func (h *KC) AdvanceFilter(name string) ([]gjson.Result, error) {
url := "https://www.kuaicha365.com/enterp... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/app/qimai/utils.go | internal/app/qimai/utils.go | package qimai
import (
"encoding/base64"
"fmt"
"github.com/imroc/req/v3"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
"sort"
"strings"
"time"
)
type EnsGo struct {
name string
api string
fids s... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/app/qimai/qimai.go | internal/app/qimai/qimai.go | package qimai
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strconv"
)
func GetInfoByKeyword(options *common.ENOptions) (ensInfos *common.EnInfos, ensOutMap map[string]*common.ENSMap) {
ensInfos = &common.EnInf... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/app/coolapk/coolapk.go | internal/app/coolapk/coolapk.go | package coolapk
import (
"encoding/base64"
"github.com/imroc/req/v3"
"github.com/olekukonko/tablewriter"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
"os"
"strconv"
"time"
)
func GetReq(options *common.ENOptio... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/app/miit/bean.go | internal/app/miit/bean.go | package miit
import (
"crypto/tls"
"github.com/imroc/req/v3"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"time"
)
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap = map[string]*common.EnsGo{
"icp": {
Name: "ICPๅคๆก",
Ap... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/app/miit/miit.go | internal/app/miit/miit.go | package miit
import (
urlTool "net/url"
"strconv"
"time"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
)
type Miit struct {
Options *common.ENOptions
}
func (h *Miit) GetInfoList(keyword string, types string) []gjson.Result {
enMap := getENMap()
ret... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/qidian/utils.go | internal/qidian/utils.go | package qidian
import (
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"time"
)
func (h *QD) req(url string, data string) string {
c := common.NewClient(map[string]string{
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/qidian/qidian.go | internal/qidian/qidian.go | package qidian
import (
"encoding/json"
"fmt"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
)
import (
"github.com/wgpsec/ENScan/common/gologger"
)
type QD struct {
Options *common.ENOptions
}
func (h *QD) AdvanceFilter(name string) ([]gjson.Result, error) {
url := "https://holmes.taobao.com/w... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/aiqicha/bean.go | internal/aiqicha/bean.go | package aiqicha
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strings"
"time"
)
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap = map[string]*common.EnsGo{
"enterprise_info": {
Nam... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/aiqicha/aiqicha.go | internal/aiqicha/aiqicha.go | package aiqicha
/* Aiqicha By Keac
* admin@wgpsec.org
*/
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
urlTool "net/url"
"strconv"
"strings"
)
type AQC struct {
Options *common.ENOptions
}
// AdvanceFilter ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/tianyancha/tianyancha.go | internal/tianyancha/tianyancha.go | package tianyancha
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"time"
"github.com/antchfx/htmlquery"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
)
type TYC struct {
Options *common.ENOptions
}
func (h *TYC) Adva... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/tianyancha/bean.go | internal/tianyancha/bean.go | package tianyancha
import (
"strings"
"time"
"github.com/antchfx/htmlquery"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"golang.org/x/net/html"
)
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap = map[string]*common.EnsGo{
"... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/riskbird/riskbird.go | internal/riskbird/riskbird.go | package riskbird
import (
"encoding/json"
"fmt"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strconv"
)
func (h *RB) AdvanceFilter(name string) ([]gjson.Result, error) {
urls := "https://www.riskbird.com/riskbird-api/newSea... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/riskbird/bean.go | internal/riskbird/bean.go | package riskbird
import (
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"strings"
"time"
)
type RB struct {
Options *common.ENOptions
eid string
}
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/tycapi/tycapi.go | internal/tycapi/tycapi.go | package tycapi
import (
"fmt"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"net/url"
"strconv"
"time"
)
type TycAPI struct {
Options *common.ENOptions
}
func (h *TycAPI) AdvanceFilter(name string) ([]gjson.Result, error) {... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/internal/tycapi/bean.go | internal/tycapi/bean.go | package tycapi
import (
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
"github.com/wgpsec/ENScan/common/gologger"
"time"
)
func getENMap() map[string]*common.EnsGo {
ensInfoMap := make(map[string]*common.EnsGo)
ensInfoMap = map[string]*common.EnsGo{
"cb_ic": {
// ๅทฅๅไฟกๆฏๆททๅ่ทๅๆฅๅฃ
Name: "ๅทฅๅไฟกๆฏ",
... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/output.go | common/output.go | package common
import (
"encoding/json"
"fmt"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
"github.com/xuri/excelize/v2"
"os"
"path/filepath"
"strconv"
"strings"
"time"
)
// ENSMap ๅ็ฌ็ปๆ
type ENSMap struct {
Name string
JField []string
... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/flag.go | common/flag.go | package common
import (
"flag"
"github.com/wgpsec/ENScan/common/gologger"
)
const banner = `
โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโ โโโโโโ โโโโ โโโ
โโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ
โโโโโโ โโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโ
โโโโโโ โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โโโโโโโโโโ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/common.go | common/common.go | package common
import (
"crypto/tls"
"github.com/imroc/req/v3"
"time"
)
func NewClient(headers map[string]string, op *ENOptions) *req.Request {
c := req.C()
c.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true}) // ๅฟฝ็ฅ่ฏไนฆ้ช่ฏ
c.SetTLSFingerprintChrome()
c.SetCommonHeaders(headers)
if op.GetENConfig().UserAge... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/config.go | common/config.go | package common
import (
"path/filepath"
"regexp"
"time"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common/utils"
)
var (
BuiltAt string
GoVersion string
GitAuthor string
BuildSha string
GitTag string
)
type ENOptions struct {
KeyWord string // Keyword of Search
CompanyID ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/parse.go | common/parse.go | package common
import (
"flag"
"github.com/gin-gonic/gin"
"github.com/projectdiscovery/gologger/levels"
"github.com/wgpsec/ENScan/common/gologger"
"github.com/wgpsec/ENScan/common/utils"
"gopkg.in/yaml.v3"
"io"
"os"
"regexp"
"strings"
)
func (op *ENOptions) Parse() {
//DEBUGๆจกๅผ่ฎพๅฎ
if op.IsDebug {
gologger... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/utils/excel.go | common/utils/excel.go | package utils
/**
* @Description
* @Author ggr
* @Date 2021/7/8 21:06
* @Form https://cloud.tencent.com/developer/article/1846410
**/
import (
"fmt"
"github.com/xuri/excelize/v2"
"strconv"
)
// maxCharCount ๆๅค26ไธชๅญ็ฌฆA-Z
const maxCharCount = 26
// ExportExcel ๅฏผๅบExcelๆไปถ
// sheetName ๅทฅไฝ่กจๅ็งฐ, ๆณจๆ่ฟ้ไธ่ฆๅsheet1่ฟ็งๅๅญ,ๅฆๅๅฏผ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/utils/fileutil.go | common/utils/fileutil.go | package utils
import (
"bufio"
"io"
"os"
)
// FileExists checks if a file exists and is not a directory
func FileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
}
// FolderExists checks if a folder exists
func FolderExists(folderpath ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/utils/utils.go | common/utils/utils.go | package utils
import (
"bufio"
"crypto/md5"
"crypto/rand"
"encoding/hex"
"fmt"
"github.com/olekukonko/tablewriter"
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common/gologger"
"math"
"math/big"
mrand "math/rand"
"net"
"net/url"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
)
// Md5 MD5ๅ ... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/common/gologger/gologger.go | common/gologger/gologger.go | package gologger
import (
"fmt"
"github.com/projectdiscovery/gologger/formatter"
"github.com/projectdiscovery/gologger/levels"
"github.com/projectdiscovery/gologger/writer"
"os"
"strings"
"time"
)
var (
labels = map[levels.Level]string{
levels.LevelFatal: "FTL",
levels.LevelError: "ERR",
levels.Leve... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
wgpsec/ENScan_GO | https://github.com/wgpsec/ENScan_GO/blob/ac0945e09c60c55da76b1fd894773ca374149405/interface/enscan.go | interface/enscan.go | package _interface
import (
"github.com/tidwall/gjson"
"github.com/wgpsec/ENScan/common"
)
type COMMON interface {
GetENMap() map[string]*common.EnsGo
GetInfoByPage(pid string, page int, em *common.EnsGo) (info common.InfoPage, err error)
}
type ENScan interface {
// AdvanceFilter ็ญ้ๅ
ฌๅธ
AdvanceFilter(name strin... | go | Apache-2.0 | ac0945e09c60c55da76b1fd894773ca374149405 | 2026-01-07T10:38:05.869723Z | false |
smallnest/langgraphgo | https://github.com/smallnest/langgraphgo/blob/600df7fe3e6254f2329f606732feaecfbd52d9f2/doc.go | doc.go | // LangGraph Go - Building Stateful, Multi-Agent Applications in Go
//
// LangGraph Go is a Go implementation of LangChain's LangGraph framework for building
// stateful, multi-agent applications with LLMs. It provides a powerful graph-based
// approach to constructing complex AI workflows with support for cycles, chec... | go | MIT | 600df7fe3e6254f2329f606732feaecfbd52d9f2 | 2026-01-07T10:38:05.929544Z | false |
smallnest/langgraphgo | https://github.com/smallnest/langgraphgo/blob/600df7fe3e6254f2329f606732feaecfbd52d9f2/graph/retry_test.go | graph/retry_test.go | package graph_test
import (
"context"
"errors"
"sync/atomic"
"testing"
"time"
"github.com/smallnest/langgraphgo/graph"
)
const (
successResult = "success"
)
//nolint:gocognit,cyclop // Comprehensive retry logic test with multiple scenarios
func TestRetryNode(t *testing.T) {
t.Parallel()
t.Run("SuccessOnFi... | go | MIT | 600df7fe3e6254f2329f606732feaecfbd52d9f2 | 2026-01-07T10:38:05.929544Z | false |
smallnest/langgraphgo | https://github.com/smallnest/langgraphgo/blob/600df7fe3e6254f2329f606732feaecfbd52d9f2/graph/checkpointing_test.go | graph/checkpointing_test.go | package graph_test
import (
"context"
"fmt"
"slices"
"strings"
"testing"
"time"
"github.com/smallnest/langgraphgo/graph"
st "github.com/smallnest/langgraphgo/store"
"github.com/smallnest/langgraphgo/store/redis"
)
func TestMemoryCheckpointStore_SaveAndLoad(t *testing.T) {
t.Parallel()
store := graph.NewM... | go | MIT | 600df7fe3e6254f2329f606732feaecfbd52d9f2 | 2026-01-07T10:38:05.929544Z | true |
smallnest/langgraphgo | https://github.com/smallnest/langgraphgo/blob/600df7fe3e6254f2329f606732feaecfbd52d9f2/graph/add_messages_test.go | graph/add_messages_test.go | package graph
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tmc/langchaingo/llms"
)
// Custom message struct with ID
type TestMessage struct {
ID string
Content string
}
func TestAddMessages(t *testing.T) {
// Case 1: Standard llms.MessageContent (No ID, simple append)
t.Run("Stand... | go | MIT | 600df7fe3e6254f2329f606732feaecfbd52d9f2 | 2026-01-07T10:38:05.929544Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.