Help us shape the future of Go! Take the 2026 Go Developer Survey

Utils

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: AGPL-3.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FJ_BETWEEN_48_68 string = "1.2.48 ≤ Fastjson ≤ 1.2.68"
View Source
const FJ_BETWEEN_69_80 string = "1.2.69 ≤ Fastjson ≤ 1.2.80"
View Source
const FJ_BEYOND_48 string = "Fastjson ≥ 1.2.48"
View Source
const FJ_NOT_DETECT string = "Fastjson isn't detected or network isn't achieve"
View Source
const FJ_UNDER_48 string = "Fastjson < 1.2.48"
View Source
const FS_BETWEEN_36_62 = "1.2.37 ≤ Fastjson ≤ 1.2.61 (来自延迟探测,受网络因素影响,有一定误报率)"
View Source
const FS_BEYOND_80 = "fastjson = 1.2.83"
View Source
const NETWORK_NOT_ACCESS = "Network is Unreachable"
View Source
const NOT_FS = "target isn't fastjson"

Variables

View Source
var AUTOTYPE_CHECK = `[{"@type":"java.net.CookiePolicy"},{"@type":"java.net.Inet4Address","val":"{{.Variables.DNS}}"}]`
View Source
var DEPENDENCY_DETECT_BY_ERR = `
{
    "@type":"java.lang.Character"{
        "@type":"java.lang.Class",
        "val":"{{.Variables.Dependency}}"
}
`
View Source
var DNS_DETECT_48 = `` /* 209-byte string literal not displayed */
View Source
var DNS_DETECT_68 = `` /* 259-byte string literal not displayed */
View Source
var DNS_DETECT_80 = `` /* 436-byte string literal not displayed */
View Source
var DependencyList = []string{
	"org.springframework.web.bind.annotation.RequestMapping",
	"org.apache.shiro.jndi.JndiObjectFactory",
	"org.apache.catalina.startuo.Tomcat",
	"groovy.lang.GroovyShell",
	"com.mysql.jdbc.Driver",
	"java.net.http.HttpClient",
}
View Source
var FS_ERR_DETECT = `{"@type": "java.lang.AutoCloseable"`
View Source
var RESULT_OUTPUT = `` /* 294-byte string literal not displayed */
View Source
var TAR_NET_DETECT = `{"name":{"@type":"java.net.Inet4Address","val":"{{.Variables.DNS}}"}}`
View Source
var TIME_DETECT = `{"regex":{"$ref":"$[blue rlike '^[a-zA-Z]+(([a-zA-Z ])?[a-zA-Z]*)*$']"},"blue":"aaaaaaaaaaaa{{.Variables.Value}}!"}`

Functions

func AUTOTYPE_DETECT_FACTORY

func AUTOTYPE_DETECT_FACTORY(dnsurl string) string

func DEPENDENCY_ERR_DETECT_FACTORY

func DEPENDENCY_ERR_DETECT_FACTORY() map[string]string

func NET_DETECT_FACTORY

func NET_DETECT_FACTORY() (string, string)

func SCAN_RESULTS_OUTPUT_FACTORY

func SCAN_RESULTS_OUTPUT_FACTORY(result Result) string

func TIME_DETECT_FACTORY

func TIME_DETECT_FACTORY(count int) []string

Types

type DNSPayloads

type DNSPayloads struct {
	Dns_48 string
	Dns_68 string
	Dns_80 string
}

func DNS_DETECT_FACTORY

func DNS_DETECT_FACTORY() (DNSPayloads, string)

type FS_VERSION

type FS_VERSION string // fastjson版本号

type Option

type Option struct {
	Url     string
	Targets string
	Result  string
}

type Payload

type Payload struct {
	Variables map[string]string
}

type Result

type Result struct {
	Url        string
	Type       string
	Version    string
	Payload    string
	AutoType   bool
	Netout     bool
	Request    string
	Response   string
	Dependency []string
}

type ResultFomat

type ResultFomat struct {
	Variables  map[string]string
	Dependency []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL