Compare commits
No commits in common. "c097932b95883afe85428f85966734f9da0edc7f" and "652bfa9570c5e4c0fd7012f0ea99525a76c2a855" have entirely different histories.
c097932b95
...
652bfa9570
0
fuckman.sh
Executable file → Normal file
0
fuckman.sh
Executable file → Normal file
@ -1,4 +0,0 @@
|
|||||||
# EXAMPLE
|
|
||||||
curl|8.0|https://repo.warceuproject.org/pkgs/curl-8.0.tar.gz
|
|
||||||
nano|6.5|https://repo.warceuproject.org/pkgs/nano-6.5.tar.gz
|
|
||||||
busybox|1.36|https://repo.warceuproject.org/pkgs/busybox-1.36.tar.gz
|
|
@ -1,22 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
download_fuckman() {
|
|
||||||
URL="$1"
|
|
||||||
OUTPUT="$2"
|
|
||||||
|
|
||||||
HOST=$(echo "URL" | awk -F/ '{print $3}')
|
|
||||||
PATH=$(echo "URL" | cut -d '/' -f4-)
|
|
||||||
echo "[*]Downloading From $URL...."
|
|
||||||
|
|
||||||
exec 3<> /dev/tcp$HOST/80
|
|
||||||
echo -e "GET /$PATH HTTP/1.1\r\nHost: $HOST\r\Connection: close\r\n\r\n" >&3
|
|
||||||
|
|
||||||
{
|
|
||||||
HEADER=1
|
|
||||||
while IFS= read -r line; do
|
|
||||||
["$HEADER"] && [ -z "$line"] && HEADER=
|
|
||||||
[ -z "$HEADER" ] && echo "$line" >> "$OUTPUT"
|
|
||||||
done
|
|
||||||
} <&3
|
|
||||||
exec 3>&-
|
|
||||||
echo "[+] Downloaded $OUTPUT"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user