Skip to content

Instantly share code, notes, and snippets.

@nullenc0de
Created July 30, 2021 14:35
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save nullenc0de/4c6c1f77fe5c31c53695b4afd13c49df to your computer and use it in GitHub Desktop.
Save nullenc0de/4c6c1f77fe5c31c53695b4afd13c49df to your computer and use it in GitHub Desktop.
id: apk-recon
info:
name: APK Recon
author: nullenc0de
severity: info
tags: android,file
file:
- extensions:
- action
- asp
- aspx
- html
- jar
- java
- js
- json
- jsp
- php
- properties
- smali
- txt
- xml
extractors:
- type: regex
name: url_params
regex:
- '[&\?][a-zA-Z0-9\_]+='
- type: regex
name: link_finder
regex:
- https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
- type: regex
name: relative_links
regex:
- (?:"|')(((?:/|\.\./|\./)[^"'><,;| *()(%%$^/\\\[\]][^"'><,;|()]{1,})|([a-zA-Z0-9_\-/]{1,}/[a-zA-Z0-9_\-/]{1,}\.(?:[a-zA-Z]{1,4}|action)(?:[\?|#][^"|']{0,}|))|([a-zA-Z0-9_\-/]{1,}/[a-zA-Z0-9_\-/]{3,}(?:[\?|#][^"|']{0,}|))|([a-zA-Z0-9_\-]{1,}\.(?:php|asp|aspx|jsp|json|action|html|js|txt|xml)(?:[\?|#][^"|']{0,}|)))(?:"|')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment