Documentation
¶
Index ¶
- Variables
- func AesCbcEncrypt(key []byte, Content []byte) (string, error)
- func AesGcmEncrypt(key []byte, Content []byte) (string, error)
- func Padding(plainText []byte, blockSize int) []byte
- type Options
- type Result
- type Shiro
- func (s *Shiro) FindTheKey(ctx context.Context, ShiroKey string, Content []byte, TargetUrl string) (bool, string, string)
- func (s *Shiro) HttpRequest(RememberMe string, TargetUrl string) (bool, error)
- func (s *Shiro) KeyCheck(TargetUrl string) (bool, string, string)
- func (s *Shiro) Run(options Options) (*Result, error)
- func (s *Shiro) RunMulti(options Options) (chan *Result, error)
- func (s *Shiro) ShiroCheck(TargetUrl string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShiroKeys = []string{ "2AvVhdsgUs0FSA3SDFAdag==", "kPH+bIxk5D2deZiIxcaaaA==", "3AvVhmFLUs0KTA3Kprsdag==", "4AvVhmFLUs0KTA3Kprsdag==", "5aaC5qKm5oqA5pyvAAAAAA==", "6ZmI6I2j5Y+R5aSn5ZOlAA==", "bWljcm9zAAAAAAAAAAAAAA==", "wGiHplamyXlVB11UXWol8g==", "Z3VucwAAAAAAAAAAAAAAAA==", "MTIzNDU2Nzg5MGFiY2RlZg==", "zSyK5Kp6PZAAjlT+eeNMlg==", "U3ByaW5nQmxhZGUAAAAAAA==", "5AvVhmFLUs0KTA3Kprsdag==", "bXdrXl9eNjY2KjA3Z2otPQ==", "fCq+/xW488hMTCD+cmJ3aQ==", "1QWLxg+NYmxraMoxAXu/Iw==", "ZUdsaGJuSmxibVI2ZHc9PQ==", "L7RioUULEFhRyxM7a2R/Yg==", "r0e3c16IdVkouZgk1TKVMg==", "bWluZS1hc3NldC1rZXk6QQ=="} CheckContent = "" /* 152-byte string literal not displayed */ UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.112 Safari/537.36" ShiroMethod = "GET" PostContent = "" )
Functions ¶
Types ¶
type Shiro ¶
type Shiro struct {
// contains filtered or unexported fields
}
func (*Shiro) FindTheKey ¶
func (s *Shiro) FindTheKey(ctx context.Context, ShiroKey string, Content []byte, TargetUrl string) (bool, string, string)
return three result 1. result boolean 2. shirokey 3. rememberMe
func (*Shiro) HttpRequest ¶
func (*Shiro) ShiroCheck ¶
Click to show internal directories.
Click to hide internal directories.