Skip to content

Instantly share code, notes, and snippets.

@r-k-b
Created July 12, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-k-b/f0d3ac22760da2795e928d8f105134cc to your computer and use it in GitHub Desktop.
Save r-k-b/f0d3ac22760da2795e928d8f105134cc to your computer and use it in GitHub Desktop.
Keep a .net site primed.
#!/bin/sh
# https://gist.github.com/r-k-b/f0d3ac22760da2795e928d8f105134cc
while true;
do
printf '.';
# You can get all this curl noise form the Chrome Devtools, Network panel, the main request, then select "Copy as curl (bash)"
curl 'http://baf.robert.test/' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3842.0 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'Referer: http://baf.robert.test/login.aspx?ReturnUrl=%2f' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H 'Cookie: _ga=GA1.2.1267220546.1560392349; _gid=GA1.2.1075512879.1562207502; _gat=1; .buildaformAuth=668344A8E90D04C8A897DD22F5D37165B113948EE420D4FC7364FDDAFDDB9BA0B92ABA5AA5126307D365B541A14F00355B21620D3ED1F5DEFB85A19AB8EB2CDEE7A64999FDC8A86FCBBD571B80EC04554DCF6DF645682FC694AF6533D5147A06080935017F4CA5170462805942B0020F5D1255F960E65B423B6EBB8A7C70BD95739C94589ED7843D7EDFD583CD22F4824788CCB490CA31F80314C2B63F82833C7669479F690AE635BD9A4FBF4477F84CFB5B0AC46C147B3D9BE55D603F87FB296C58A75BD555D0B874230EEFD39B79CC4D5F38CDBECC5A9150698C0EB9AA76771F25FF58C3E1D470DD5893F170F1537E3A43C475279B0CCC064AB765B5073673C32BDF4ADB05048E911E6ECC2D31AB966D36E9010DCC2848DBED329A0315B23510F79A974E0A9CF39152A9B5428AF2ACB541959B288AA74D51A77F9196B01550D408B740FF7FCBF34D027333838E808F94EB1CCFD0285303616A5AFF768A630B381901EADF23056438551E02906EE790854763BB1F6D5076E63975D4660AEFCD6285FA9814F6D2A90CDA5666FD622CE1; ASP.NET_SessionId=4txl5m3ekiiwdfupcomz4y0h' --compressed --insecure \
-o /dev/null -s -w "@curl-format.txt";
sleep 5;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment