{"id":274673,"date":"2016-02-20T17:19:02","date_gmt":"2016-02-20T14:19:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274673"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274673","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 SMS \u043d\u0430 \u043c\u043e\u0434\u0435\u043c\u0435 ZTE-MF823"},"content":{"rendered":"<p>       \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0435\u043c \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043c\u043e\u043c, \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u044b\u043c. \u042d\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440 \u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c arm v7 \u043d\u0430 \u0431\u0430\u0437\u0435 Linux, \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u041b\u0438\u043d\u0443\u043a\u0441\u0435 (\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 usb0, \u043f\u043e\u0434\u0441\u0435\u0442\u044c 192.168.0.0).<\/p>\n<p>  \u041a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e telnet (ip: 192.168.0.1, login: root, password: zte9x15), \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0441\u0432\u043e\u0438 iptables, \u0432\u0435\u0448\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 crontab \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u0434\u0430\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u043e, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043d\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043c\u043e\u0434\u0435\u043c\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c CGI \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 wget \u0438\u043b\u0438 curl. \u0412 \u043c\u043e\u0434\u0435\u043c\u0435 \u043e\u0442 \u043c\u0435\u0433\u0430\u0444\u043e\u043d \u043d\u0435\u0442 \u0432\u0435\u0431-\u043c\u043e\u0440\u0434\u044b, \u0430 \u0432\u043e\u0442 \u0432 \u0431\u0438\u043b\u0430\u0439\u043d\u043e\u0432\u0441\u043a\u043e\u043c \u0435\u0441\u0442\u044c. Web-\u043c\u043e\u0440\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 JavaScript-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0430\u044f\u043a\u0441\u043e\u043c \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 CGI \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043d\u0438 \u043a\u0430\u043a\u0438\u0445 \u0433\u043e\u0434\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0439 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 sms \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0441\u043c\u043e\u0433, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043b\u0438\u0442\u044c \u0432\u0435\u0431-\u043c\u043e\u0440\u0434\u0443 \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SMS \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c POST-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <b><a href=\"http:\/\/192.168.0.1\/goform\/goform_set_cmd_process\">192.168.0.1\/goform\/goform_set_cmd_process<\/a><br \/>  <\/b><br \/>  <b>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 SMS<\/b>  <\/p>\n<blockquote><p><b>goformId<\/b>=SEND_SMS<br \/>  <b>notCallback<\/b>=true<br \/>  <b>Number<\/b>=<i>\u043d\u043e\u043c\u0435\u0440 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430<\/i><br \/>  <b>sms_time<\/b>= <i>\u0434\u0430\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 y;m;d;h;i;s<\/i><br \/>  <b>MessageBody<\/b>=<i>\u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/i><br \/>  <b>ID<\/b>=-1<br \/>  <b>encode_type<\/b>=UNICODE  <\/p><\/blockquote>\n<p>  <b>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 SMS<\/b>  <\/p>\n<blockquote><p><b>goformId<\/b>=DELETE_SMS<br \/>  <b>msg_id<\/b>=<i>\u0441\u043f\u0438\u0441\u043e\u043a id \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439<\/i><br \/>  <b>notCallback<\/b>=true  <\/p><\/blockquote>\n<p>  <b>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 SMS<\/b><br \/>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json, \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443<br \/>  <a href=\"http:\/\/192.168.0.1\/goform\/goform_get_cmd_process?cmd=sms_data_total&#038;page=0&#038;data_per_page=5000&#038;mem_store=1&#038;tags=10&#038;order_by=order+by+id+desc\">192.168.0.1\/goform\/goform_get_cmd_process?cmd=sms_data_total&#038;page=0&#038;data_per_page=5000&#038;mem_store=1&#038;tags=10&#038;order_by=order+by+id+desc<\/a><br \/>  \u0432 \u043e\u0442\u0432\u0435\u0442 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 SMS \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON.<\/p>\n<p>  C \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u043c sms \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u0430 \u0432\u043e\u0442 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0431\u0435\u0434\u0430 \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f HEX-\u043a\u043e\u0434\u043e\u043c UTF, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 ord(), \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0442\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 16-\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0438\u0432\u0430\u0435\u043c \u043d\u0443\u043b\u044f\u043c\u0438 \u0434\u043e 4\u0445 \u0441\u0438\u0432\u043e\u043b\u043e\u0432, \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0434\u0435\u043b\u0438\u043c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e 4 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 10-\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e \u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 chr(). \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0432\u0441\u0451 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u0430 \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e php \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u044e\u043d\u0438\u043a\u043e\u0434\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0442\u043e \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u044b \u0438 \u0431\u044b\u0434\u043b\u043e\u043a\u043e\u0434\u0438\u0442\u044c, \u0432 \u0438\u0442\u043e\u0433\u0435 3\u0445 \u0447\u0430\u0441\u043e\u0432\u044b\u0445 \u043e\u043f\u044b\u0442\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f PHP \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 sms \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u043c\u043e\u0434\u0435\u043c\u0435.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<pre><code class=\"php\">&lt;?php mb_internal_encoding(&quot;UTF-8&quot;);  class ZTE_WEB { \tpublic $ip=&quot;192.168.0.1&quot;,$tz=&quot;+5&quot;;  \tpublic function url($url,$post=&quot;&quot;) \t{ \t\t\t$ch = curl_init($url); \t\t\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,true); \t\t\tcurl_setopt($ch,CURLOPT_BINARYTRANSFER,false); \t\t\tcurl_setopt($ch,CURLOPT_HEADER,false); \t\t\tcurl_setopt($ch,CURLOPT_TIMEOUT, 90); \t\t\t$header = array(); \t\t\t$header[] = 'Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8'; \t\t\t$header[] = 'Accept-Charset: Windows-1251,utf-8;q=0.7,*;q=0.7'; \t\t\t$header[] = 'Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3'; \t\t\t$header[] = 'Pragma: '; \t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $header); \t\t\tunset ($header); \t\t\tif(!empty($post)) {curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);} \t        $content = curl_exec($ch); \t\t\tcurl_close($ch); \t        return $content; \t}  \tpublic function utf2hex($str) \t{ \t\t$l=mb_strlen($str); \t\t$res=''; \t\tfor ($i=0;$i&lt;$l;$i++) \t\t{\t \t\t\t$s = mb_substr($str,$i,1); \t\t\t$s = mb_convert_encoding($s, 'UCS-2LE', 'UTF-8'); \t    \t$s = dechex(ord(substr($s, 1, 1))*256+ord(substr($s, 0, 1))); \t    \tif (mb_strlen($s)&lt;4) $s = str_repeat(&quot;0&quot;,(4-mb_strlen($s))).$s; \t    \t$res.=$s;     \t}     \treturn $res;  \t}  \tpublic function hex2utf($str) \t{ \t\t$l=mb_strlen($str)\/4; \t\t$res=''; \t\tfor ($i=0;$i&lt;$l;$i++) $res.=html_entity_decode('&#'.hexdec(mb_substr($str,$i*4,4)).';',ENT_NOQUOTES,'UTF-8');     \treturn $res;  \t}  \t\/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043c\u0441\u043a\u0443 \tpublic function send($number,$text) \t{ \t\t$url = 'http:\/\/'.$this-&gt;ip.'\/goform\/goform_set_cmd_process'; \t\t$post='isTest=false&'; \t\t$post.= 'goformId=SEND_SMS&'; \t\t$post.= 'notCallback=true&'; \t\t$post.= 'Number='.urlencode($number).'&'; \t\t$date = gmdate('y;m;d;h;i;s;'.$this-&gt;tz,time()+($this-&gt;tz*3600)); \t\t$post.= 'sms_time='.urlencode($date).'&'; \t\t$post.= 'MessageBody='.($this-&gt;utf2hex($text)).'&'; \t\t$post.= 'ID=-1&'; \t\t$post.= 'encode_type=UNICODE'; \t\treturn $this-&gt;url($url,$post); \t}  \t\/\/\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 \u0441\u043c\u0441\u043e\u043a \tpublic function get_sms() \t{ \t\t$cont=$this-&gt;url('http:\/\/'.$this-&gt;ip.'\/goform\/goform_get_cmd_process?cmd=sms_data_total&page=0&data_per_page=5000&mem_store=1&tags=10&order_by=order+by+id+desc'); \t\t$cont = json_decode($cont,true); \t\t$cont = $cont['messages']; \t\tforeach ($cont as $id =&gt; $arr) $cont[$id]['content']=$this-&gt;hex2utf(($cont[$id]['content'])); \t\treturn $cont; \t}  \t\/\/\u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u043c\u0441 \tpublic function clear_sms($cont=0) \t{ \t\tif ($cont===0) $cont=$this-&gt;get_sms(); \t\t$list_id=''; \t\t$url = 'http:\/\/'.$this-&gt;ip.'\/goform\/goform_set_cmd_process'; \t\tforeach ($cont as $id =&gt; $arr) $list_id.=$cont[$id]['id'].';'; \t\t$post='isTest=false&goformId=DELETE_SMS&msg_id='.urlencode($list_id).'&notCallback=true'; \t\treturn $this-&gt;url($url,$post); \t}  }  $zte = new ZTE_WEB; \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 $zte-&gt;send(&quot;+79220000000&quot;,&quot;\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430&quot;); \/\/\u0447\u0438\u0441\u0442\u043a\u0430 $zte-&gt;clear_sms($zte-&gt;get_sms()); \/\/\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 $zte-&gt;get_sms(); ?&gt; <\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 php \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0430 \u043f\u043e\u0442\u043e\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u0447\u0438\u0441\u0442\u043a\u0443 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0434\u0435\u043c\u0430.<br \/>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a Raspberry Pi, \u0432 \u043a\u0440\u043e\u043d\u0442\u0430\u0431\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0441\u0435\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 sms \u0438 \u0431\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/277637\/\"> https:\/\/habrahabr.ru\/post\/277637\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0435\u043c \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043c\u043e\u043c, \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u044b\u043c. \u042d\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440 \u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c arm v7 \u043d\u0430 \u0431\u0430\u0437\u0435 Linux, \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u041b\u0438\u043d\u0443\u043a\u0441\u0435 (\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 usb0, \u043f\u043e\u0434\u0441\u0435\u0442\u044c 192.168.0.0).<\/p>\n<p>  \u041a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e telnet (ip: 192.168.0.1, login: root, password: zte9x15), \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0441\u0432\u043e\u0438 iptables, \u0432\u0435\u0448\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 crontab \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u0434\u0430\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u043e, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043d\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043c\u043e\u0434\u0435\u043c\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c CGI \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 wget \u0438\u043b\u0438 curl. \u0412 \u043c\u043e\u0434\u0435\u043c\u0435 \u043e\u0442 \u043c\u0435\u0433\u0430\u0444\u043e\u043d \u043d\u0435\u0442 \u0432\u0435\u0431-\u043c\u043e\u0440\u0434\u044b, \u0430 \u0432\u043e\u0442 \u0432 \u0431\u0438\u043b\u0430\u0439\u043d\u043e\u0432\u0441\u043a\u043e\u043c \u0435\u0441\u0442\u044c. Web-\u043c\u043e\u0440\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 JavaScript-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0430\u044f\u043a\u0441\u043e\u043c \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 CGI \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043d\u0438 \u043a\u0430\u043a\u0438\u0445 \u0433\u043e\u0434\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0439 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 sms \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0441\u043c\u043e\u0433, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043b\u0438\u0442\u044c \u0432\u0435\u0431-\u043c\u043e\u0440\u0434\u0443 \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SMS \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c POST-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <b><a href=\"http:\/\/192.168.0.1\/goform\/goform_set_cmd_process\">192.168.0.1\/goform\/goform_set_cmd_process<\/a><br \/>  <\/b><br \/>  <b>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 SMS<\/b>  <\/p>\n<blockquote><p><b>goformId<\/b>=SEND_SMS<br \/>  <b>notCallback<\/b>=true<br \/>  <b>Number<\/b>=<i>\u043d\u043e\u043c\u0435\u0440 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430<\/i><br \/>  <b>sms_time<\/b>= <i>\u0434\u0430\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 y;m;d;h;i;s<\/i><br \/>  <b>MessageBody<\/b>=<i>\u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/i><br \/>  <b>ID<\/b>=-1<br \/>  <b>encode_type<\/b>=UNICODE  <\/p><\/blockquote>\n<p>  <b>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 SMS<\/b>  <\/p>\n<blockquote><p><b>goformId<\/b>=DELETE_SMS<br \/>  <b>msg_id<\/b>=<i>\u0441\u043f\u0438\u0441\u043e\u043a id \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439<\/i><br \/>  <b>notCallback<\/b>=true  <\/p><\/blockquote>\n<p>  <b>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 SMS<\/b><br \/>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json, \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443<br \/>  <a href=\"http:\/\/192.168.0.1\/goform\/goform_get_cmd_process?cmd=sms_data_total&#038;page=0&#038;data_per_page=5000&#038;mem_store=1&#038;tags=10&#038;order_by=order+by+id+desc\">192.168.0.1\/goform\/goform_get_cmd_process?cmd=sms_data_total&#038;page=0&#038;data_per_page=5000&#038;mem_store=1&#038;tags=10&#038;order_by=order+by+id+desc<\/a><br \/>  \u0432 \u043e\u0442\u0432\u0435\u0442 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 SMS \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON.<\/p>\n<p>  C \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u043c sms \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u0430 \u0432\u043e\u0442 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0431\u0435\u0434\u0430 \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f HEX-\u043a\u043e\u0434\u043e\u043c UTF, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 ord(), \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0442\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 16-\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0438\u0432\u0430\u0435\u043c \u043d\u0443\u043b\u044f\u043c\u0438 \u0434\u043e 4\u0445 \u0441\u0438\u0432\u043e\u043b\u043e\u0432, \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0434\u0435\u043b\u0438\u043c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e 4 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 10-\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e \u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 chr(). \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0432\u0441\u0451 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u0430 \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e php \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u044e\u043d\u0438\u043a\u043e\u0434\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0442\u043e \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u044b \u0438 \u0431\u044b\u0434\u043b\u043e\u043a\u043e\u0434\u0438\u0442\u044c, \u0432 \u0438\u0442\u043e\u0433\u0435 3\u0445 \u0447\u0430\u0441\u043e\u0432\u044b\u0445 \u043e\u043f\u044b\u0442\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f PHP \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 sms \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u043c\u043e\u0434\u0435\u043c\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-274673","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=274673"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274673\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}