forked from qo-op/G1BILLET
DAEMON MODE OK
This commit is contained in:
parent
5ec75b6c89
commit
8495fcfd2d
18
G1BILLETS.sh
18
G1BILLETS.sh
@ -154,19 +154,21 @@ while true; do
|
|||||||
echo "TW : $HNAME:33101/?m=0&u=0&type=astro${RANDOM}@yopmail.com"
|
echo "TW : $HNAME:33101/?m=0&u=0&type=astro${RANDOM}@yopmail.com"
|
||||||
REQ=$(echo "$HTTPWELLCOME" | nc -l -p 33101 -q 1) ## # WAIT FOR 33101 PORT CONTACT
|
REQ=$(echo "$HTTPWELLCOME" | nc -l -p 33101 -q 1) ## # WAIT FOR 33101 PORT CONTACT
|
||||||
|
|
||||||
|
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||||
|
|
||||||
URL=$(echo "$REQ" | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2) ### CONTACT URL ####
|
URL=$(echo "$REQ" | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2) ### CONTACT URL ####
|
||||||
HOSTP=$(echo "$REQ" | grep '^Host:' | cut -d ' ' -f2 | cut -d '?' -f2)
|
HOSTP=$(echo "$REQ" | grep '^Host:' | cut -d ' ' -f2 | cut -d '?' -f2)
|
||||||
HOST=$(echo "$HOSTP" | cut -d ':' -f 1)
|
HOST=$(echo "$HOSTP" | cut -d ':' -f 1)
|
||||||
|
|
||||||
echo "=================================================="
|
echo "=================================================="
|
||||||
echo "$HOSTP"
|
echo "$MOATS : $HOSTP "
|
||||||
echo "=================================================="
|
echo "=================================================="
|
||||||
echo "GET RECEPTION : $URL"
|
echo "$URL"
|
||||||
arr=(${URL//[=&]/ })
|
arr=(${URL//[=&]/ })
|
||||||
# PARAM (x 3) EXTRACT "¶m=value"
|
# PARAM (x 3) EXTRACT "¶m=value"
|
||||||
ONE=$(urldecode ${arr[0]} | xargs); TWO=$(urldecode ${arr[2]} | xargs); THREE=$(urldecode ${arr[4]} | xargs);
|
ONE=$(urldecode ${arr[0]} | xargs); TWO=$(urldecode ${arr[2]} | xargs); THREE=$(urldecode ${arr[4]} | xargs);
|
||||||
MONTANT=$(urldecode ${arr[1]} | xargs); UNIQID=$(urldecode ${arr[3]} | xargs); STYLE=$(urldecode ${arr[5]} | xargs);
|
MONTANT=$(urldecode ${arr[1]} | xargs); UNIQID=$(urldecode ${arr[3]} | xargs); STYLE=$(urldecode ${arr[5]} | xargs);
|
||||||
echo "DECODED : $ONE=$MONTANT & $TWO=$UNIQID & $THREE=$STYLE"
|
#~ echo "DECODED : $ONE=$MONTANT & $TWO=$UNIQID & $THREE=$STYLE"
|
||||||
|
|
||||||
echo ${MY_PATH}/${ME} '"'$MONTANT'"' '"'$UNIQID'"' '"'$STYLE'"'
|
echo ${MY_PATH}/${ME} '"'$MONTANT'"' '"'$UNIQID'"' '"'$STYLE'"'
|
||||||
# EXECUTE COMMAND
|
# EXECUTE COMMAND
|
||||||
@ -193,14 +195,14 @@ Cache-Control: public
|
|||||||
Content-Transfer-Encoding: Binary
|
Content-Transfer-Encoding: Binary
|
||||||
Content-Length:'${BSIZE}'
|
Content-Length:'${BSIZE}'
|
||||||
Content-Disposition: attachment; filename='${FILE_NAME}'
|
Content-Disposition: attachment; filename='${FILE_NAME}'
|
||||||
' > ${MY_PATH}/tmp/http.${UNIQID}
|
' > ${MY_PATH}/tmp/http.${MOATS}
|
||||||
|
|
||||||
cat ${ZFILE} >> ${MY_PATH}/tmp/http.${UNIQID}
|
cat ${ZFILE} >> ${MY_PATH}/tmp/http.${MOATS}
|
||||||
|
|
||||||
cat ${MY_PATH}/tmp/http.${UNIQID} | nc -l -p 33102 -q 1 > /dev/null 2>&1
|
cat ${MY_PATH}/tmp/http.${MOATS} | nc -l -p 33102 -q 1 > /dev/null 2>&1
|
||||||
echo "GOT ${UNIQID} : http://g1billet.localhost:33102"
|
echo "DELIVERED ${MOATS} : http://g1billet.localhost:33102"
|
||||||
rm -f "${ZFILE}"
|
rm -f "${ZFILE}"
|
||||||
rm -f "${MY_PATH}/tmp/http.${UNIQID}"
|
rm -f "${MY_PATH}/tmp/http.${MOATS}"
|
||||||
) &
|
) &
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user