Skip to content

Instantly share code, notes, and snippets.

View alexhude's full-sized avatar

Alexander Hude alexhude

View GitHub Profile
@alexhude
alexhude / ios_dcsd_output_set.c
Created December 24, 2016 04:01
Setting up /dev/uart.debug-console output for DCSD
struct termios tty;
memset (&tty, 0, sizeof tty);
if (tcgetattr (serial_fd, &tty) != 0)
return -1;
// set speed
cfsetospeed (&tty, B115200);
// set control options
diff --git a/aarch64_cryptoextension.cpp b/aarch64_cryptoextension.cpp
index ed167e3..6dd5309 100644
--- a/aarch64_cryptoextension.cpp
+++ b/aarch64_cryptoextension.cpp
@@ -5,6 +5,22 @@
#include <kernwin.hpp>
#include <allins.hpp>
+#if (IDA_SDK_VERSION < 700) && defined(__X64__)
+ #error Incompatible SDK version. Please use SDK 7.0 or higher
@alexhude
alexhude / blink.py
Created July 7, 2019 05:58
Icebreaker FPGA blink example with simulation
1. Install Homebrew (https://brew.sh)
```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
2. Install python3.7
```
brew install python3
```
@alexhude
alexhude / ImHex.diff
Last active July 4, 2024 18:20
Build ImHex for macOS
diff --git a/source/helpers/crypto.cpp b/source/helpers/crypto.cpp
index fa23428..e0ef3ad 100644
--- a/source/helpers/crypto.cpp
+++ b/source/helpers/crypto.cpp
@@ -41,7 +41,7 @@ namespace hex {
std::array<u8, 512> buffer = { 0 };
for (u64 bufferOffset = 0; offset < size; offset += buffer.size()) {
- const u64 readSize = std::min(buffer.size(), size - bufferOffset);
+ const u64 readSize = std::min((u64)buffer.size(), size - bufferOffset);