Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // $ cc -o checker checker.c | |
| // $ ./checker | |
| // $ ffmpeg -i output-%02d.ppm -r 60 output.mp4 | |
| #include <stdio.h> | |
| int main() | |
| { | |
| char buf[256]; | |
| for (int i = 0; i < 60; ++i) { | |
| snprintf(buf, sizeof(buf), "output-%02d.ppm", i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Cheef's Grand APDU List Smartcard Selected Information APDU list | |
| Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info | |
| #------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| |ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description | | |
| +------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| | 04 | ISO 7816-9 6.3 | DEACTIVATE FILE | | |
| | A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE | | |
| | A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE | | |
| +------------+------------------------+------------------------+----------------------+--------------------------------+ |
If you're looking to develop an Android app you might be led to Android Studio. It's the IDE recommended and developed by Google for the express purpose of Android development. It does what it needs to, but if you look at the system requirements you will see some alarming numbers. If you're using an older system, or simply don't want to use AndroidStudio, this is the guide for you.
We won't be using many apt packages due to permissions issues and incompatible versions. That being said:
$ sudo apt install openjdk-17-jdk sdkmanager kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| try: | |
| import gdb | |
| inside_gdb = True | |
| except ImportError: | |
| inside_gdb = False | |
| if inside_gdb: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Put this in a file BLAH/dump-type.py and then put this in your ~/.gdbinit file | |
| # (or type it at the GDB prompt): | |
| # | |
| # source BLAH/dump-type.py | |
| # | |
| # Then you can say: | |
| # | |
| # (gdb) help jimb-dump-type | |
| # | |
| # and you should get a help message. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <tinyformat.h> | |
| #include <unwind.h> | |
| #include <cxxabi.h> | |
| #include <dlfcn.h> | |
| struct android_backtrace_state { | |
| void **current; | |
| void **end; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <tinyformat.h> | |
| #include <unwind.h> | |
| #include <cxxabi.h> | |
| #include <dlfcn.h> | |
| struct android_backtrace_state { | |
| void **current; | |
| void **end; | |
| }; |
In the kernel source directory, run
make O=/tmp/linux/arm64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j60 defconfig allThen create an Alpine aarch64 image following https://hackmd.io/@starnight/Run_Alpine_on_QEMU_aarch64_Virtual_Machine
wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/vmlinuz-lts https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/config-lts