frida-codeshare icon indicating copy to clipboard operation
frida-codeshare copied to clipboard

Document the codeshare API

Open pimterry opened this issue 4 years ago • 2 comments

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?

pimterry avatar Jul 01 '21 15:07 pimterry

This is the main one:

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

  • :username does not include @
  • eg: https://codeshare.frida.re/api/project/pcipolloni/universal-android-ssl-pinning-bypass-with-frida

captn3m0 avatar Jul 02 '22 12:07 captn3m0

@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.

pimterry avatar Jul 04 '22 10:07 pimterry