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'])
diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp | |
index 33ba58f..f3b2a7e 100644 | |
--- a/dexlayout/Android.bp | |
+++ b/dexlayout/Android.bp | |
@@ -74,6 +74,13 @@ cc_defaults { | |
], | |
} | |
+cc_defaults { | |
+ name: "compact_dex_converter_defaults", |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
#!/bin/sh | |
set -e | |
provider_prefs_xml=/data/data/com.miui.securitycenter/shared_prefs/remote_provider_preferences.xml | |
provider_prefs_tmp_xml=/data/local/tmp/remote_provider_preferences.xml | |
sed -e "/security_adb_install_enable/d" $provider_prefs_xml > $provider_prefs_tmp_xml | |
sed -i "/<\/map>/i\ \ \ \ <boolean name=\"security_adb_install_enable\" value=\"$1\" />" $provider_prefs_tmp_xml | |
sed -i "/<\/map>/i\ \ \ \ <boolean name=\"permcenter_install_intercept_enabled\" value=\"$2\" />" $provider_prefs_tmp_xml |
import re, subprocess, idaapi, ida_segment, ida_kernwin | |
# To install this, simply put it in your ida_install/loaders folder and open | |
# a `/proc/<pid>/mem` file! | |
# | |
# You might need to set `echo 0 > /proc/sys/kernel/yama/ptrace_scope` if you | |
# want to be able to dump processes depending on your system configuration. | |
# Check if the file is supported by our loader | |
def accept_file(li, filename): |
# Clone llama.cpp | |
git clone https://github.com/ggerganov/llama.cpp.git | |
cd llama.cpp | |
# Build it | |
make clean | |
LLAMA_METAL=1 make | |
# Download model | |
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |