Skip to content

Instantly share code, notes, and snippets.

@svedm
svedm / bfinject
Created July 9, 2018 22:25
bfinject Electra 11.3.1
#!/jb/bin/bash
CYCRIPT_PORT=1337
function help {
echo "Syntax: $0 [-p PID | -P appname] [-l /path/to/yourdylib | -L feature]"
echo
echo For example:
echo " $0 -P Reddit.app -l /path/to/evil.dylib # Injects evil.dylib into the Reddit app"
echo " or"
@laprasdrum
laprasdrum / iOSJailbreak.md
Last active November 25, 2023 20:25
iOS jailbreak -> layout check via cyrun
@bessarabov
bessarabov / gist:674ea13c77fc8128f24b5e3f53b7f094
Last active June 18, 2025 14:48
One-liner to generate data shown in post 'At what time of day does famous programmers work?' — https://ivan.bessarabov.com/blog/famous-programmers-work-time
git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
@ElfSundae
ElfSundae / iOS device models list.json
Created September 29, 2019 08:43
iOS device models list - iPhone, iPad, iPod touch, ⌚️ Apple Watch, 🖥 Apple TV model
{
"AppleTV2,1": "Apple TV 2",
"AppleTV3,1": "Apple TV 3",
"AppleTV3,2": "Apple TV 3",
"AppleTV5,3": "Apple TV 4",
"AppleTV6,2": "Apple TV 4K",
"iPad1,1": "iPad",
"iPad2,1": "iPad 2",
"iPad2,2": "iPad 2",
"iPad2,3": "iPad 2",
@JeremyMorgan
JeremyMorgan / getbadguys.sh
Created February 8, 2020 04:35
Get a list of IP addresses trying to attack your CentOS server
#/usr/bin/bash
# strings to look for in our file
# Note: you could just parse the whole file. But if you put in a bad password your IP
# could end up on the bad guy list
declare -a badstrings=("Failed password for invalid user"
"input_userauth_request: invalid user"
"pam_unix(sshd:auth): check pass; user unknown"
"input_userauth_request: invalid user"
"does not map back to the address"
"pam_unix(sshd:auth): authentication failure"