In IDAPython,
execfile('<path>/cxxparser.py')
parse_file('<path>/a.cpp',[r'-I<path>\LuaJIT-2.0.5\src', '-D__NT__', '-D__X64__', '-D__EA64__'])
parse_file('<path>/malloc.c',['-target=x86_64-linux-gnu'])
| plugins { | |
| `android-base-app` | |
| `android-base` | |
| id("io.fabric") | |
| } | |
| android { | |
| defaultConfig { | |
| versionCode = 20 | |
| versionName = "1.6.3" |
| import sys | |
| import json | |
| import re | |
| kslide = 0x0 | |
| if len(sys.argv) < 2: | |
| print("Usage: PanicParser.py [file path]") | |
| exit() |
| package log | |
| import ( | |
| "fmt" | |
| gokitlog "github.com/go-kit/kit/log" | |
| "github.com/sirupsen/logrus" | |
| stackdriver "github.com/icco/logrus-stackdriver-formatter" | |
| ) |
| diff --git a/jadx-core/src/main/java/jadx/core/Jadx.java b/jadx-core/src/main/java/jadx/core/Jadx.java | |
| index 91ea0905..175b73ed 100644 | |
| --- a/jadx-core/src/main/java/jadx/core/Jadx.java | |
| +++ b/jadx-core/src/main/java/jadx/core/Jadx.java | |
| @@ -47,6 +47,9 @@ import jadx.core.dex.visitors.shrink.CodeShrinkVisitor; | |
| import jadx.core.dex.visitors.ssa.SSATransform; | |
| import jadx.core.dex.visitors.typeinference.TypeInferenceVisitor; | |
| +// Deobfuscation passes | |
| +import jadx.core.dex.visitors.deobf.DecodeStrings; |
| diff -Naur qemu-2.7.0.orig/cpu-exec.c qemu-2.7.0/cpu-exec.c | |
| --- qemu-2.7.0.orig/cpu-exec.c 2016-09-02 17:34:17.000000000 +0200 | |
| +++ qemu-2.7.0/cpu-exec.c 2017-01-19 09:34:00.817088525 +0100 | |
| @@ -33,6 +33,9 @@ | |
| #include "hw/i386/apic.h" | |
| #endif | |
| #include "sysemu/replay.h" | |
| +#include "syscall_defs.h" | |
| + | |
| +extern int do_nx; |
| function getGenericInterceptor(className, func, parameters) { | |
| args = [] | |
| for (i = 0; i < parameters.length; i++) { | |
| args.push('arg_' + i) | |
| } | |
| var script = "result = this.__FUNCNAME__(__SEPARATED_ARG_NAMES__);\nlogmessage = '__CLASSNAME__.__FUNCNAME__(' + __SEPARATED_ARG_NAMES__ + ') => ' + result;\nconsole.log(logmessage);\nreturn result;" | |
| script = script.replace(/__FUNCNAME__/g, func); | |
| script = script.replace(/__SEPARATED_ARG_NAMES__/g, args.join(', ')); | |
| script = script.replace(/__CLASSNAME__/g, className); |
| ''' | |
| 620031587 | |
| Net-Centric Computing Assignment | |
| Part A - RSA Encryption | |
| ''' | |
| import random | |
| ''' |
| ''' | |
| Using Z3 to check if the number is prime | |
| Original reference: https://stackoverflow.com/a/35653749/1768052 | |
| ''' | |
| from z3 import * | |
| def isPrime(x): | |
| y, z = Ints("y z") |