Skip to content

Instantly share code, notes, and snippets.

@S-trace
S-trace / idafix.md
Last active April 24, 2024 02:26 — forked from 2igosha/idafix.md
Fix IDA 7.5/7.6/7.7SP1 crashing on idapython3.dll in Wine

Description

For some reason IDA executes FreeLibrary() to the plugin immediately after getting its PLUGIN structure's address, so later invocations of the plugin lead to calls to nowhere (that was supposed to be python3.dll). Simply patching the location of the FreeLibrary() call fixes the issue. The location is easy to find: go by cross-references to a place where the call to FreeLibrary is followed by a reference to the string "%s: incompatible plugin version..." and NOP it away.

7.5

@S-trace
S-trace / subs.sh
Last active April 4, 2024 11:35
A simple script to beautify and improve readability of .ass subtitles and converting subtitles .srt <=> .ass {\\bord3} - ASS subtitles outline width {\\blur14} - blur ratio (to create smooth transition between movie and subtitles)
#!/usr/bin/env sh
COMMAND=$1
case "$COMMAND" in
ass-outline)
# Add outline to all ASS subtitles in current directory
for file in *.ass; do
echo "$COMMAND: Processing $file"
perl -pe 's/(^Dialogue: ([^{]*?,){9})(?=[^{])/\1\{\\bord3}\{\\blur14}/g' <"$file" >temp
mv temp "$file"