Skip to content

Instantly share code, notes, and snippets.

View kristinnmayo's full-sized avatar

Kristin Mayo kristinnmayo

View GitHub Profile
def cg_add(leftindex, rightindex):
global tempcount
### check for and free temporary variables
if symbol[leftindex].startswith('.t'):
tempcount -= 1
if symbol[rightindex].startswith('.t'):
tempcount -= 1
### check for constants
@kristinnmayo
kristinnmayo / mobile.md
Last active September 23, 2020 23:10
Some mobile stuff

Android

  • platform overview (owasp)
  • apktool (reverse engineering apk files)
  • androbugs framework (vulnerability scanner)
  • enjarify (tools for working with dalvik)

    Why not dex2jar? Dex2jar is an older tool that also tries to translate Dalvik to Java bytecode. It works reasonably well most of the time, but a lot of obscure features or edge cases will cause it to fail or even silently produce incorrect results. By contrast, Enjarify is designed to work in as many cases as possible, even fo