Last active
November 29, 2021 03:51
-
-
Save Y7n05h/a0e366e95587dbf7e92535e41ceb67e4 to your computer and use it in GitHub Desktop.
Revisions
-
Y7n05h revised this gist
Nov 29, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ #!/usr/bin/zsh # Depends on: strings grep sha1sum curl jq # Powered by the libc-database search API # https://github.com/niklasb/libc-database/tree/master/searchengine strings $1 |grep 'GNU C Library' sha1str=$(sha1sum $1) -
Y7n05h revised this gist
Nov 29, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ #!/usr/bin/zsh # Depends on: strings grep sha1sum curl jq # Powered by the libc-database search API strings $1 |grep 'GNU C Library' sha1str=$(sha1sum $1) -
Y7n05h created this gist
Nov 29, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/usr/bin/zsh # Depends on: strings grep sha1sum curl jq strings $1 |grep 'GNU C Library' sha1str=$(sha1sum $1) curl -s -X POST -H 'Content-Type: application/json' --data "{\"sha1\": \"${sha1str// */}\"}" 'https://libc.rip/api/find'|jq -r '.[]'