#!/bin/bash
cd /mnt/lvm-files/film_progress/
wget --quiet \
--method GET \
--header 'Connection: keep-alive' \
--header 'Cache-Control: max-age=0' \
--header 'Upgrade-Insecure-Requests: 1' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' \
--header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
--header 'If-None-Match: "2665036397"' \
--header 'If-Modified-Since: Thu, 25 Jun 2015 21:56:15 GMT' \
--header 'cache-control: no-cache' \
--header 'Postman-Token: ce34f2da-d56d-403a-b07f-ab09b38b4b46' \
--save-cookies cookies.txt
--output-document \
- 'http://192.168.1.95/login.html?uri=/'


wget --quiet \
  --load-cookies cookies.txt
  --save-cookies cookies.txt
  --method POST \
  --header 'Cookie: AIROS_SESSIONID=4cbf426e83a737c8a4abafd4c97ccc5a' \
  --header 'Origin: http://192.168.1.95' \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'Accept: */*' \
  --header 'Referer: http://192.168.1.95/login.html?uri=/' \
  --header 'X-Requested-With: XMLHttpRequest' \
  --header 'Connection: keep-alive' \
  --header 'cache-control: no-cache' \
  --header 'Postman-Token: 2bba86ec-1eb8-4c8a-b5d6-ba0248fd4747' \
  --body-data 'username=ubnt&password=ubnt&AIROS_SESSIONID=4cbf426e83a737c8a4abafd4c97ccc5a' \
  --output-document \
  - http://192.168.1.95/login.cgi


wget --quiet \
  --method GET \
  --load-cookies cookies.txt
  --save-cookies cookies.txt
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' \
  --header 'Accept: image/webp,image/apng,image/*,*/*;q=0.8' \
  --header 'Referer: http://192.168.1.95/' \
  --header 'Cookie: AIROS_SESSIONID=4c6ba91bb76cc80796ad2fe48dd0b445' \
  --header 'Connection: keep-alive' \
  --header 'cache-control: no-cache' \
  --header 'Postman-Token: e7fb12b3-b034-4bd7-84f1-d18d0a2e0a83' \
  --output-document \
  - 'http://192.168.1.95/snapshot.cgi?1563217228372='


mv img.jpg image-$(date +%y%m%d_%H-%M).jpg

Изменить пасту