Skip to content

Instantly share code, notes, and snippets.

View securisec's full-sized avatar

securisec securisec

View GitHub Profile
@securisec
securisec / docker_gdb_arm.md
Last active February 4, 2025 13:44
gdb debugging on ARM/m1 mac with docker

Build john for ARM OSX

Recently during a CTF, I was working with a SSH private key hash that I could not crack. Afterwards I found out that the john-jumbo installed via brew is quite outdated and that includes the helper scripts where the brew version of ssh2john.py script generates a hash that is not valid.

The following steps outlines how to compile john from github on a M series mac/osx. Tested on a M3, but should also work on M1 and M2 also.

Dependencies

brew install [email protected] llvm
@securisec
securisec / cli.py
Last active January 5, 2023 05:32
How to build a fully dynamic, self documention fuzzy cli for any class in python
#!/usr/bin/env python3
import inspect
import argparse
import fire
from docstring_parser import parse
from prompt_toolkit.completion import Completer, Completion, FuzzyCompleter
from prompt_toolkit import PromptSession
from search.lsgrep import SearchFiles

Keybase proof

I hereby claim:

  • I am securisec on github.
  • I am securisec (https://keybase.io/securisec) on keybase.
  • I have a public key whose fingerprint is 4D47 66B0 4BFC 805D 9CE3 A544 827C 6B42 28E8 A427

To claim this, I am signing this object: