JSON-to-Go
CyberChef
Our great sponsors
JSON-to-Go | CyberChef | |
---|---|---|
64 | 286 | |
4,363 | 25,384 | |
- | 3.8% | |
2.4 | 8.8 | |
3 months ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
JSON-to-Go
-
JSON to Go Struct Converter
That site likely uses Matt's lib for that functionality: https://github.com/mholt/json-to-go
-
Some annoying moments in Golang
https://mholt.github.io/json-to-go/ is a nice tool for generating a struct definition to fit some sample JSON.
-
Need a pointer on how I can unmarshal this json
json-to-go is your friend.
-
Ask HN: What are some Golang tools you can't live without?
JSON to struct. I use this about 100 times a day, no joke.
-
convert interface{} to []interface{}
Do your best to get static types on everything. Play a game with yourself where interface{} is banned and try to do your work. One of the most common sources of such loosely-typed values in JSON, so I'll point out this automatic struct generator for instance. If you have questions about a specific place you don't see how to avoid interface, feel free to ask. Every once in a while I do have to reach for something like this, but it should be rare.
-
how to efficiently create structs to match the json response
But given we know ChatGPT can't accurately generate structs from even moderately complex json objects why bother doing all of that legwork of verifying and chiding chatgpt, when you can just drop it into a tool like https://mholt.github.io/json-to-go/ and get a correct struct in a fraction of the time?
- How to parse a Kubernetes YAML in Go?
- Is there a library or tool I can use to avoid manually setting json keys i.e. ‘json:”name”’ next to fields in structs?
-
Do we have any vscode plugin to convert json to struct in Go?
I use https://marketplace.visualstudio.com/items?itemName=maracko.json-to-go, which is an extension version of https://mholt.github.io/json-to-go/
-
Need help with getting the grandchild in nested JSON
I think using struct in such cases is almost always the right approach. There are tools which generates go structs from json this.
CyberChef
-
PicoCTF 2024: packer
Then we take the encrypted text and use CyberChef to decrypt it.
-
Unbreakable 2024: secrets-of-winter
Let's go to CyberChef and insert our pieces of evidence.
-
YouTube: Google has found a way to break Invidious
A parameter was changed from '2AMBCgIQBg' to 'CgIIAdgDAQ%3D%3D' which is just the correct base64 encoding they should have been using the entire time.
I don't think this was a hostile action by Google, I think someone just added better input validation for security reasons and it accidently broke the bad requests they were sending.
https://gchq.github.io/CyberChef/#recipe=URL_Decode()From_Ba...
-
PicoCTF 2024- CanYouSee
❗This is indeed the flag, but the text is encrypted with Base64. Usually, the presence of padding character "=" indicates that's Base64 type of encoding (but that's only one of the hints). To decrypt it, we can use CyberChef. Copy-paste the text and we either:
-
CyberChef VS DevToolboxWeb - a user suggested alternative
2 projects | 6 Feb 2024
-
CyberChef from GCHQ: The Cyber Swiss Army Knife
It uses a combination of magic bytes (like the `file` command), entropy analysis and character frequency detection to determine whether an output is likely to be of interest to the user.
The file type mechanism is written here[0]. There's a list of all signatures we detect here[1].
[0] https://github.com/gchq/CyberChef/blob/master/src/core/lib/F...
- Show HN: File Hider
- UK GCHQ's CyberChef
-
Lets try this again. Got a code for you to break.
I think this can be deciphered using CyberChef...
- CyberChef is a useful tool for decoding information.
What are some alternatives?
go-sanitize - :bathtub: Golang library of simple to use sanitation functions
QR-Code-generator - High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, Rust, C++, C.
Golang-PDF-to-Image-Converter - This project will help you to convert PDF file to IMAGE using golang.
CapRover - Scalable PaaS (automated Docker+nginx) - aka Heroku on Steroids
Crypt - Crypt implementation in pure Go
py4e - Web site for www.py4e.com and source to the Python 3.0 textbook
gowsdl - WSDL2Go code generation as well as its SOAP proxy
cyberchef-recipes - A list of cyber-chef recipes and curated links
go-cmp - Package for comparing Go values in tests
Ciphey - ⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡
go-callvis - Visualize call graph of a Go program using Graphviz
Monica - Personal CRM. Remember everything about your friends, family and business relationships.