20 lines
1001 B
Bash
Executable File
20 lines
1001 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Thanks: https://gist.github.com/lugrus2000/1fc55158b87f94d799392a6dd1ac0ce2
|
|
|
|
cd /opt/sublime_merge || exit
|
|
md5sum -c <<<"54b7372d3ab785a49bda799c6350b009 sublime_merge" > /dev/null 2>&1 || exit
|
|
|
|
# Initial License Check
|
|
printf '\x48\xC7\xC0\x19\x01\x00\x00\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A5400)) conv=notrunc
|
|
# Persistent License Check 1
|
|
printf '\x90\x90\x90\x90\x90' | dd of=sublime_merge bs=1 seek=$((0x003A7EC9)) conv=notrunc
|
|
# Persistent License Check 2
|
|
printf '\x90\x90\x90\x90\x90' | dd of=sublime_merge bs=1 seek=$((0x003A7EE4)) conv=notrunc
|
|
# Disable Server Validation Thread
|
|
printf '\x48\x31\xC0\x48\xFF\xC0\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A67FE)) conv=notrunc
|
|
# Disable License Notify Thread
|
|
printf '\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A514E)) conv=notrunc
|
|
# Disable Crash Reporter
|
|
printf '\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A40D2)) conv=notrunc
|