Skip to content

Instantly share code, notes, and snippets.

Avatar

Quentin Minster laomaiweng

View GitHub Profile
View bruteforce-523.sh
#!/bin/bash
die() {
echo "error: $*"
exit 1
} >&2
if [[ $# != 1 || "$1" =~ ^(-h|--help)$ ]]; then
echo "usage: ${0##*/} <recipient>"
exit 1
@laomaiweng
laomaiweng / idatag-fix-not-in-func-crash.patch
Created Jul 6, 2019
[IDATag] Fix crash with context menu on offsets not in a func
View idatag-fix-not-in-func-crash.patch
diff --git a/src/hooks_disas.cpp b/src/hooks_disas.cpp
index 38ad8d0..57b3470 100644
--- a/src/hooks_disas.cpp
+++ b/src/hooks_disas.cpp
@@ -108,11 +108,12 @@ action_state_t idaapi show_context_menu_disas_ah_t::update(action_update_ctx_t *
int idaapi show_context_menu_disas_func_ah_t::activate(action_activation_ctx_t *ctx)
{
Idatag_context_disas_func* context_menu = new Idatag_context_disas_func(ctx);
- if (myModel->is_in_func(ctx->cur_ea))
+ if (myModel->is_in_func(ctx->cur_ea) != BADADDR)
View keybase.md

Keybase proof

I hereby claim:

  • I am laomaiweng on github.
  • I am laomaiweng (https://keybase.io/laomaiweng) on keybase.
  • I have a public key ASCBI2jf8CtFXEcluDmHvuG1Xyu3ZYqsfwpIWRI-gmwXogo

To claim this, I am signing this object: