[инфа]

от: lenta 2020-10-14 16:24:06

e3372h-153 192.168.8.1 send sms terminal
[просмотров|89] linux
usb modem e3372h, site: http://192.168.8.1

1. nano send_sms.sh

[i]#!/bin/bash

DATA=`curl http://192.168.8.1/api/webserver/SesTokInfo`
SESSION_ID=`echo "$DATA" | grep "SessionID=" | cut -b 10-147`
TOKEN=`echo "$DATA" | grep "TokInfo" | cut -b 10-41`

curl http://192.168.8.1/api/sms/send-sms -H "Cookie: $SESSION_ID" -H "__RequestVerificationToken: $TOKEN" --data "<?xml version='1.0' ...
загрузить
ещё
fizord.ru © 2021
Андрей Исаков