Last active
March 24, 2025 03:45
-
-
Save agumonkey/e415cd3d04fa98c0ff1bed3708279355 to your computer and use it in GitHub Desktop.
MD5 -> Libgen File
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 characters
# curl 'http://dl4.libgen.io/get.php?md5=71F626732A4D9B52557E465B96D65C72&key=JQV56FFGXC4Z5OX4' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Referer: http://download1.libgen.io/ads.php?md5=71F626732A4D9B52557E465B96D65C72&key=XDC51MTR9G5FZ7OT' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9' --compressed | |
libgen () { | |
echo "[DEBUG] ARGS=${@}" | |
local URL='http://libgen.io/ads.php?md5=' | |
local GURL='http://dl4.libgen.io/get.php?md5=' | |
local MD5=${1} | |
local JAR="${MD5}.jar" | |
local KEY=$(curl -sL "${URL}${MD5}" | grep -oE "key=[^']*" | cut -d'=' -f2) | |
echo "[INFO] MD5=${MD5}" | |
echo "[INFO] KEY=${KEY}" | |
local FURL="${GURL}${MD5}&key=${KEY}" | |
# wget -v -c "${FURL}" -O "${MD5}.libgen" | |
# wget --trust-server-names -v -c "${FURL}" | |
# md5sum $file???? == $md5 | |
echo "[FURL] ${FURL}" | |
curl -L -J --compressed --referer "${FURL}${MD5}&key=${KEY}" -O "${FURL}" | |
} | |
for md5 in $@; | |
do | |
echo ">>> ${md5}" | |
libgen "${md5}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment