frida / frida-codeshare

17 stars 7 forks source link

Document the codeshare API #6

Open pimterry opened 3 years ago

pimterry commented 3 years ago

I'm working on a Frida script, and I'd like to share it on Frida Codeshare so it's easy to use for Frida users, but I want to store the authoritative copy of the script on GitHub so I can track the change history here and easily allow external contributions and feedback.

I think the best way to do this would be to host it on GitHub, publish one version to Codeshare, and then use a GitHub action to update it every time there's a change on GitHub. I can see there's some kind of API in https://github.com/frida/frida-codeshare/tree/master/fridasnippits/apps/api but it doesn't look like there's any documentation and I'm not sure how to use it or especially how to authenticate to it.

Would you be open to writing up some quick docs on how to use that?

captn3m0 commented 2 years ago

This is the main one:

https://codeshare.frida.re/api/project/:username/:snippet_slug

pimterry commented 2 years ago

@captn3m0 Thanks! I'm really looking for a way to publish/update a script though, not just to query the existing scripts. Any idea if that's possible? At a quick glance it looks like that API only allows querying the data for an already published snippet.