Skip to content

Instantly share code, notes, and snippets.

@YuviGold
YuviGold / scrape_whatsapp.js
Created July 10, 2024 07:31
Whatsapp Group Exporter
/*
Inspired by https://gist.github.com/shaneapen/3406477b9f946855d02e3f33ec121975
The script scrapes the members of a WhatsApp group chat and exports the data to a CSV file.
It scrolls automatically and extracts each list item in the members list with all the information available.
Then it joins this information with the indexedDB data to get the groups the member is in and if the contact's info
if it is already saved in the phone.
Steps:
1. Open WhatsApp Web
@matteyeux
matteyeux / f.md
Last active July 21, 2025 05:13
macOS and iOS Security Internals Advent Calendar
@jamland
jamland / mavic-parameters.md
Created June 1, 2023 17:55
DJI Mavic Parameters

details: https://dronarium.academy/yak-uvimknuty-rezhym-atti-na-dji-mavic-3/
from https://mavicpilots.com/threads/dh-parameter-hacks.124785/

  • fswitch_selection|g_config.control.control_mode[0] (3 - enable atti mode instead of cinema mode, back- 12)

  • fswitch_selection_1|g_config.control.control_mode[1] (3 -enable pseudo-atti mode instead of sport mode, back - 8)

  • g_config.fdi_open.close_auto_stop_motor_check (disable turning off the motors when the drone is tilted more than 85° from the horizontal position)

  • forearm_led_ctrl|g_config.misc_cfg.forearm_lamp_ctrl (0 -turn off all lights on the drone )

@kconner
kconner / macOS Internals.md
Last active May 3, 2026 04:24
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@vanbwodonk
vanbwodonk / read-stm32-firmware.md
Last active October 8, 2025 21:09
Read stm32 firmware binary with openOCD

read-stm32-firmware

OpenOCD scripts for read STM32 firmware binary

Requirements

Linux

OpenOCD (Open On-Chip Debugger) is open-source software that interfaces with a hardware debugger's JTAG port. OpenOCD provides debugging and in-system programming for embedded target devices. OpenOCD provides the ability to flash NAND and NOR FLASH memory devices that are attached to the processor on the target system. Flash programming is supported for external CFI compatible flashes (Intel and AMD/Spansion command set) and several internal flashes (LPC2000, AT91SAM7, STR7x, STR9x, LM3 and STM32x).

OpenOCD was originally developed by Dominic Rath at the University of Applied Sciences Augsburg. The OpenOCD source code is now available through the GNU General Public License (GPL).

@nstarke
nstarke / find-compressed-data.py
Last active May 24, 2025 01:01
Find Compressed Data without Compression Header
#!/usr/bin/env python3
#
# find-compressed-data.py
#
# A small script to bruteforce embedded compressed data that might not have a header
# Useful for raw binary firmware images that do not contain a standard
# binary header (ELF, PE, MACH-O).
#
# I included a limt on size at 16KB because this has a tendency to create
@imami
imami / anydesk-enable-remote-access.md
Last active November 26, 2025 11:31
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
Title : Revisiting Mac OS X Kernel Rootkits
Author : fG!
Date : April 18, 2014
|=----------------------------------------------------------------------------=|
|=----------------=[ Revisiting Mac OS X Kernel Rootkits ]=-------------------=|
|=----------------------------------------------------------------------------=|
|=------------------------=[ fG! <phrack@put.as> ]=---------------------------=|
|=----------------------------------------------------------------------------=|
@williballenthin
williballenthin / macOS_savedstate.py
Last active April 8, 2026 04:26
parse macOS savedState files
'''
parse SavedState artifacts extracted from OSX.
author: Willi Ballenthin (william.ballenthin@fireeye.com)
license: Apache 2.0
'''
import re
import sys
import json
import struct
@masklinn
masklinn / cheatsheet.md
Last active April 29, 2026 20:01
launchctl/launchd cheat sheet

I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.

Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details

domains

Internally, launchd has several domains, but launchctl 1 would only ask for service names,