Skip to content

Instantly share code, notes, and snippets.

@Hayao0819
Last active January 29, 2022 13:39
Show Gist options
  • Save Hayao0819/fda1b6b31157eaad0f64cdde61285e41 to your computer and use it in GitHub Desktop.
Save Hayao0819/fda1b6b31157eaad0f64cdde61285e41 to your computer and use it in GitHub Desktop.
竹林人間のSHSH Checker ワンライナーバージョン
# 完全実装版
curl -s https://shsh.host | tail -n 3 | head -n 1 | sed 's/var signed_array =//g; s|</script>||g; s|;||g' | jq -cr '."iPad6,11"' | tr -d "{" | tr -d "}" | tr "," "\n" | tr -d "\"" | awk -F : 'BEGIN {print "SHSH checker"} {print " "$1 " " $2} END{print "以上" NR "個のSHSHが取得可能です"}'
# ツイート用短縮版(Zshでは動きません)
curl -s https://shsh.host | tail -n 3 | head -n 1 | sed 's/var signed_array =//g; s|</script>||g; s|;||g' | jq -cr '."iPad6,11"' | tr -d { | tr -d } | tr "," "\n" | tr -d "\"" | awk -F: 'BEGIN {print "SHSH checker"} {print " "$1 " " $2}'
@Hayao0819
Copy link
Author

↓のリファクタリングです。
ぶっちゃけ本家は謎に一時ファイル作成しててよくわからん。

https://github.com/Aoi-Developer/IssueSHSHchecker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment