Skip to content

Instantly share code, notes, and snippets.

@guelau
Created September 14, 2020 13:46
Show Gist options
  • Save guelau/01beea21ca5acda4fa8e60323ccccac4 to your computer and use it in GitHub Desktop.
Save guelau/01beea21ca5acda4fa8e60323ccccac4 to your computer and use it in GitHub Desktop.
Send random calls with curl to server (used to test some stuff)
17.158.227.90
131.184.97.52
190.28.55.204
32.87.1.171
69.167.226.124
77.248.110.206
75.68.162.101
34.157.45.132
38.44.170.174
195.204.33.7
https://patate.mondomain.tld/9eb30ad9-ea2e-4c1e-bcee-ceb8bec8ee42/music.aac
https://patate.mondomain.tld/9e3c0eea-5e5e-435c-83c2-53e542e0eceb/music.aac
https://patate.mondomain.tld/48d4c023-9eee-429b-953e-c2be0de4ad2d/music.aac
https://patate.mondomain.tld/ac0eee0e-eeee-4aee-abcd-ccbee2ec4abe/music.aac
https://patate.mondomain.tld/c4ebde41-1a3c-485e-b2ad-50c20ae4ed91/music.aac
https://patate.mondomain.tld/ee542eba-e5bb-4ecc-bc3c-3deab4ab4edd/music.aac
https://patate.mondomain.tld/183a5e18-1d1e-4ed3-bed9-4ea29eeedea9/music.aac
https://patate.mondomain.tld/ed5ebde5-de25-4b0a-998e-ae4022eea9b4/music.aac
https://patate.mondomain.tld/ee98deb8-e021-4e3d-93bc-edde854c1b4e/music.aac
https://patate.mondomain.tld/84e9ea8a-44e4-4420-95c5-2305d1e0a4dd/music.aac
https://patate.mondomain.tld/902ee4e9-01e8-4ee5-9ae8-2ae5c538e3ed/music.aac
https://patate.mondomain.tld/98eee39e-9e9e-4eae-92ee-4e8ea89e8ee5/music.aac
https://patate.mondomain.tld/ee4a931d-18e0-4912-a45d-dace8402eebe/music.aac
https://patate.mondomain.tld/13aee4d9-e545-4e00-b3e8-0eeadecebc4b/music.aac
https://patate.mondomain.tld/a55c2b43-c5e1-413e-8eee-0e0e1c595aeb/music.aac
https://patate.mondomain.tld/8ee290ce-adac-4dd5-be94-181cdea43eeb/music.aac
https://patate.mondomain.tld/180ea9b4-2e4a-4bee-8928-5b8ed25edeed/music.aac
#!/bin/sh
oldIFS="$IFS"
IFS=$'\n'
UAS=($(<ua.txt))
IPS=($(<ip.txt))
IFS="$oldIFS"
NBLINE=$(sed -n '$=' ua.txt)
while [ 1 ]
do
let "INDEX = $RANDOM % $NBLINE"
UA="${UAS[$INDEX]}"
IP="${IPS[$INDEX]}"
URL=$(sort -R sound.txt | head -n 1)
COMMAND="curl -H \"X-Forwarded-For: $IP\" -H \"X-Real-IP: $IP\" -H \"User-Agent: $UA\" \"$URL\""
echo $COMMAND
echo
curl -H "X-Forwarded-For: $IP" -H "X-Real-IP: $IP" -H "User-Agent: $UA" "$URL"
echo
sleep $[ ( $RANDOM % 5 ) + 1 ]s
done
AlexaMediaPlayer/Stitcher (Linux;Android 8.1.0) ExoPlayerLib/2.2.0
AppleCoreMedia/1.0.0.15C202 (iPad; U; CPU OS 11_2_2 like Mac OS X; en_us)
Dalvik/2.1.0 (Linux; U; Android 7.0; LG-TP450 Build/NRD90U)
CastBox/5.4.9-171227055.r0a5485c (Linux;Android 7.0)
Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_5 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0 Mobile/15D60 Safari/604.1
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
PodcastAddict/v2 - Dalvik/2.1.0 (Linux; U; Android 6.0.1; Moto G Play Build/MPI24.241-2.35-1.5)
okhttp/3.9.1
TuneIn Radio Pro/1138 CFNetwork/976 Darwin/18.2.0
tootak/5 CFNetwork/978.0.7 Darwin/18.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment