Skip to content

Instantly share code, notes, and snippets.

View TheRealJunior's full-sized avatar
💭
I may be slow to respond.

Guy Ishay TheRealJunior

💭
I may be slow to respond.
View GitHub Profile
@TheRealJunior
TheRealJunior / gist:ed2b9e03d6d161711e5b29cd226db4d3
Created January 10, 2020 13:09
time sync virtualbox VBoxManager
VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
@TheRealJunior
TheRealJunior / sel.py
Created January 7, 2020 20:13
dont load images chrome selenium
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(chrome_options=chrome_options)
set nu ai
syntax enable
au BufRead,BufNewFile *.smali set filetype=smali
set incsearch
set clipboard=unnamedplus
set backspace=indent,eol,start
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
HighlightWords ("keyword": "(?s)//CODE_START.*?//CODE_END")
Jedi - Python autocompletion
MarkdownPreview
Package Control
Pretty Json
Smali
Text Marker
@TheRealJunior
TheRealJunior / script.sh
Created September 14, 2019 11:07
split by delimiter awk
awk -F 'delim' '{print $1; print $3}'
#!/usr/bin/env python3
import zipfile
from logzero import logger
import sys
def extract_from_zip(zip,filename, outfilename):
with zip.open(filename) as r:
with open(outfilename, 'wb') as w:
w.write(r.read())
{
"scope": "source.js",
"completions": [
{"trigger": "fridainterceptor", "contents": "Interceptor.attach(\n ptr,\n {\n onEnter:function(args) {\n\n },\n onLeave: function(retval) {\n\n }\n }\n)"},
{"trigger": "fridaperform", "contents": "function main(){\n console.log('main()');\n}\n\nconsole.log('script loaded');\nJava.perform(main);"},
{"trigger": "fridause", "contents": "var kls = Java.use('kls');"},
{"trigger": "fridahex", "contents": "hexdump(\n ptr,\n {\n offset: 0,\n length: ptr_size\n }\n);" },
{"trigger": "fridabacktrace", "contents": "console.log('called from:\\n' +\n Thread.backtrace(this.context, Backtracer.ACCURATE)\n .map(DebugSymbol.fromAddress).join('\\n') + '\\n'\n);"},
{"trigger": "fridamods", "contents": "var mods = Process.enumerateModules().filter(function(mod){\n return mod.name.includes(\"<name>\");\n});"},
{"trigger": "fridaexport", "content
#!/usr/bin/env python3
import sys, subprocess
from logzero import logger
def get_tombstone_list():
output = str(subprocess.check_output(['adb', 'shell', 'su -c "ls /tombstones/"']), 'utf-8')
tombstone_lines = [tombstone.strip() for tombstone in output.split('\n') if 'tombstone' in tombstone]
return tombstone_lines
def pull_tombstones(tombstone_list):
function hook_jni_reg(){
/* use dictionary to cross-reference these */
var dvm_use_jni_bridge = Module.findExportByName(null, '_Z15dvmUseJNIBridgeP6MethodPv');
var find_direct_methods = Module.findExportByName(null, '_Z31dvmFindDirectMethodByDescriptorPK11ClassObjectPKcS3_');
console.log('use_jni_bridge', dvm_use_jni_bridge, 'find_direct_methods', find_direct_methods);
Interceptor.attach(
find_direct_methods,
@TheRealJunior
TheRealJunior / ghidra_objc.py
Last active March 21, 2019 21:21
parse objective c structures ghidra
#Parse Objective C
#@author Guy Ishay
#@category iOS
#@keybinding
#@menupath
#@toolbar
import jarray
import ghidra.program.model.data.StringDataType as StringDataType