gox

package
v2.0.0-...-b158a24 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(cryted string, key string) string

func AesEncrypt

func AesEncrypt(orig string, key string) string

func CVE_2023_25157

func CVE_2023_25157(target string, variableMap map[string]any) error

func ExampleGet

func ExampleGet(target string, redirect bool) error

GET 请求示例 target get request url

func ExamplePost

func ExamplePost(target, body string) error

POST 请求示例 target post request url body post request body

func Exp

func Exp(target, cmd string) (string, string, int)

func GetBackupFile

func GetBackupFile(target string) string

func MS17010Scan

func MS17010Scan(target string, variableMap map[string]any) error

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blocksize int) []byte

补码 AES加密数据块分组长度必须为128bit(byte[16]),密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个。

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

去码

func Request

func Request(target, data string, variableMap map[string]any) error

func UniqueSlice

func UniqueSlice(original []string) []string

Types

type Capability

type Capability struct {
	Request GetCapabilitiesRequest `xml:"Request"`
}

type FeatureType

type FeatureType struct {
	Name               string             `xml:"Name"`
	Title              string             `xml:"Title"`
	Abstract           string             `xml:"Abstract"`
	Keywords           string             `xml:"Keywords"`
	SRS                string             `xml:"SRS"`
	LatLongBoundingBox LatLongBoundingBox `xml:"LatLongBoundingBox"`
}

type GetCapabilitiesRequest

type GetCapabilitiesRequest struct {
	Get  HTTPGet  `xml:"Get"`
	Post HTTPPost `xml:"Post"`
}

type HTTPGet

type HTTPGet struct {
	OnlineResource string `xml:"onlineResource,attr"`
}

type HTTPPost

type HTTPPost struct {
	OnlineResource string `xml:"onlineResource,attr"`
}

type LatLongBoundingBox

type LatLongBoundingBox struct {
	MinX string `xml:"minx,attr"`
	MinY string `xml:"miny,attr"`
	MaxX string `xml:"maxx,attr"`
	MaxY string `xml:"maxy,attr"`
}

type Service

type Service struct {
	Name              string `xml:"Name"`
	Title             string `xml:"Title"`
	Abstract          string `xml:"Abstract"`
	Keywords          string `xml:"Keywords"`
	OnlineResource    string `xml:"OnlineResource"`
	Fees              string `xml:"Fees"`
	AccessConstraints string `xml:"AccessConstraints"`
}

type ServiceException

type ServiceException struct {
	XMLName xml.Name `xml:"http://www.opengis.net/ogc ServiceException"`
	Text    string   `xml:",chardata"`
}

type WFS_Capabilities

type WFS_Capabilities struct {
	Version          string `xml:"version,attr"`
	SchemaLocation   string `xml:"schemaLocation,attr"`
	Service          Service
	Capability       Capability
	FeatureTypes     []FeatureType    `xml:"FeatureTypeList>FeatureType"`
	ServiceException ServiceException `xml:"http://www.opengis.net/ogc ServiceException"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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