{"id":266782,"date":"2015-10-26T14:26:04","date_gmt":"2015-10-26T11:26:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=266782"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=266782","title":{"rendered":"\u0423\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0432 InterSystems Cach\u00e9 (RCE)"},"content":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/268573\/\"><img decoding=\"async\" alt=\"Van Gogh Fishing Boats on the Beach\" title=\"Van Gogh Fishing Boats on the Beach\" src=\"https:\/\/habrastorage.org\/files\/ebd\/944\/4b8\/ebd9444b812041de84ae7adfcabd85e0.jpg\" align=\"left\" width=\"270\"\/><\/a> <\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043e\u0434\u043d\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c Cach\u00e9 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Cach\u00e9 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Cach\u00e9, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043d\u0443\u0436\u0434 \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u0430\u2026 \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044b\u043b\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <a href=\"https:\/\/github.com\/intersystems-ru\/RCE\">RCE<\/a>. <\/p>\n<p>  \u041a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0438 \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 RCE (Remote Code Execution) \u2013 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0427\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c?<\/h2>\n<p>  <\/p>\n<h4>\u00bb \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u0421<\/h4>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2013 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0437 Cach\u00e9. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=BGCL_syscall\">$zf<\/a>:<\/p>\n<ul>\n<li><a href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fzf-1\">$ZF(-1)<\/a> \u2013 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0412\u044b\u0437\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0436\u0434\u0451\u0442 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f $ZF(-1) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430: 0 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, 1 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 -1 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441.\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0442\u0430\u043a: <font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">status&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#0000ff\">$ZF<\/font><font color=\"#000000\">(-1,<\/font><font color=\"#008000\">&quot;mkdir&nbsp;&quot;&quot;test&nbsp;folder&quot;&quot;&quot;<\/font><font color=\"#000000\">)<\/font> <\/p>\n<\/li>\n<li> <a href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fzf-2\">$ZF(-2)<\/a> \u2013 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430, \u0441 \u0442\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439, \u0447\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0436\u0434\u0451\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f 0, \u0435\u0441\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438 -1 \u0435\u0441\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c.  <\/li>\n<\/ul>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"http:\/\/docs.intersystems.com\/ens201512\/csp\/documatic\/%25CSP.Documatic.cls?PAGE=CLASS&amp;LIBRARY=DOCBOOK&amp;CLASSNAME=%25Net.Remote.Utility\">%Net.Remote.Utility<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u043d\u0430\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438, \u0438\u0445 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435:<\/p>\n<ul>\n<li>RunCommandViaCPIPE \u2013 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 <a href=\"http:\/\/docs.intersystems.com\/ens201512\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GIOD_interproccomm\">Command Pipe<\/a>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430. \u041d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Command Pipe \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0432 \u044d\u0442\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/174601\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>.\n<\/li>\n<li>RunCommandViaZF \u2013 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 $ZF(-1). \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432 \u0444\u0430\u0439\u043b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 <a href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GTER_intro#GTER_shells\">\u043a\u043e\u043c\u0430\u043d\u0434\u044b !<\/a> (\u0438\u043b\u0438 $, \u043e\u043d\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 Cach\u00e9. \u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<ul>\n<li>\u041e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u2013 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441&nbsp;! \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430. \u041e\u043d\u0430 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u043e\u043c \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438, \u0430 \u0435\u0451 \u0432\u044b\u0432\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e Cach\u00e9. \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:\n<pre><code class=\"dos\">SAMPLES&gt;! mkdir &quot;&quot;test folder&quot;&quot;<\/code><\/pre>\n<p>  <\/li>\n<li>\u041c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u2013 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f !, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0432\u0432\u043e\u0434\u0438\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0412\u044b\u0445\u043e\u0434 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434 quit \u0438\u043b\u0438 exit (\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438):\n<pre><code class=\"dos\">SAMPLES&gt;!  C:\\InterSystems\\Cache\\mgr\\samples\\&gt; mkdir &quot;test folder&quot; C:\\InterSystems\\Cache\\mgr\\samples\\&gt; quit SAMPLES&gt;<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u00bb \u0423\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 COS \u043a\u043e\u0434\u0430<\/h4>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/docbook\/DocBook.UI.HomePageZen.cls\">%Net.RemoteConnection<\/a>, \u0433\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<ul>\n<li>\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432;<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430;<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u044d\u0442\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/b><\/p>\n<div class=\"spoiler_text\">&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">=<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">%Net.RemoteConnection<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Connect<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;127.0.0.1&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;SAMPLES&quot;<\/font><font color=\"#000000\">,1972,<\/font><font color=\"#008000\">&quot;_system&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;SYS&quot;<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">OpenObjectId<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;Sample.Person&quot;<\/font><font color=\"#000000\">,1,.<\/font><font color=\"#800000\">per<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">GetProperty<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">per<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;Name&quot;<\/font><font color=\"#000000\">,.<\/font><font color=\"#800000\">value<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Write&nbsp;<\/font><font color=\"#800000\">value<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">ResetArguments<\/font><font color=\"#000000\">()&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetProperty<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">per<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;Name&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;Jones,Tom&nbsp;&quot;<\/font><font color=\"#000000\">_<\/font><font color=\"#0000ff\">$r<\/font><font color=\"#000000\">(100),4)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">ResetArguments<\/font><font color=\"#000000\">()&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">GetProperty<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">per<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;Name&quot;<\/font><font color=\"#000000\">,.<\/font><font color=\"#800000\">value<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Write&nbsp;<\/font><font color=\"#800000\">value<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">ResetArguments<\/font><font color=\"#000000\">()&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">AddArgument<\/font><font color=\"#000000\">(150,0)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0421\u043b\u043e\u0436\u0435\u043d\u0438\u0435&nbsp;150+10<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">AddArgument<\/font><font color=\"#000000\">(10,0)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0421\u043b\u043e\u0436\u0435\u043d\u0438\u0435&nbsp;150+10<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">InvokeInstanceMethod<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">per<\/font><font color=\"#000000\">,&nbsp;<\/font><font color=\"#008000\">&quot;Addition&quot;<\/font><font color=\"#000000\">,&nbsp;.<\/font><font color=\"#800000\">AdditionValue<\/font><font color=\"#000000\">,&nbsp;1)&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Write&nbsp;<\/font><font color=\"#800000\">AdditionValue<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">ResetArguments<\/font><font color=\"#000000\">()&nbsp;<\/font><font color=\"#0000ff\">break<\/font><font color=\"#000000\">:&#8217;<\/font><font color=\"#800000\">Status<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">rc<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">InstantiateQuery<\/font><font color=\"#000000\">(.<\/font><font color=\"#800000\">rs<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;Sample.Person&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;ByName&quot;<\/font><font color=\"#000000\">)<\/font>  <\/div>\n<\/div>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<ul>\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Cach\u00e9;<\/li>\n<li>\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/documatic\/%25CSP.Documatic.cls?PAGE=CLASS&amp;LIBRARY=Samples&amp;CLASSNAME=Sample.Person\">Sample.Person<\/a> \u0441 Id 1;<\/li>\n<li>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430;<\/li>\n<li>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430;<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430;<\/li>\n<li>\u0412\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430;<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <a href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/documatic\/%25CSP.Documatic.cls?PAGE=CLASS&amp;LIBRARY=Samples&amp;CLASSNAME=Sample.Person#Anchor_Queries\">Sample.Person:ByName<\/a>.<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b %Net.RemoteConnection \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <a href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GBCP_intro\">C++ \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430<\/a>.<\/p>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 <a href=\"http:\/\/docs.intersystems.com\/ens201512\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GDDM_overview\">ECP<\/a>, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/260419\/\">\u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u0438 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 <a href=\"http:\/\/docs.intersystems.com\/ens201512\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_cjob\">JOB<\/a> \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0411\u0414.<\/p>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044f \u0434\u0432\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0446\u0435\u043b\u0438, \u043e\u0434\u043d\u0430\u043a\u043e, \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432. <\/p>\n<h2>RCE<\/h2>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0446\u0435\u043b\u0438:<\/p>\n<ul>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438\u0437 Cach\u00e9;<\/li>\n<li>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0434\u0430\u043b\u0435\u0435 \u2013 \u043a\u043b\u0438\u0435\u043d\u0442\u0430);<\/li>\n<li>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0434\u0430\u043b\u0435\u0435 \u2013 \u0441\u0435\u0440\u0432\u0435\u0440\u0430);<\/li>\n<li>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 COS;<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Windows \u0438 Linux \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/li>\n<\/ul>\n<p>  \u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  alt=\"\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 RCE\" title=\"\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 RCE\" src=\"https:\/\/habrastorage.org\/files\/061\/c5b\/7e0\/061c5b7e0db5412c85df70c73c7a86f9.png\"\/><\/div>\n<p>  \u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u041c\u0430\u0448\u0438\u043d\u0430 \u2013 \u041e\u0421 \u2013 \u0418\u043d\u0441\u0442\u0430\u043d\u0441 \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>  \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u043b\u0443\u0436\u0438\u0442 \u043a\u043b\u0430\u0441\u0441 RCE.Script, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u2013 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 RCE.Command, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u041e\u0421 \u0442\u0430\u043a \u0438 COS \u043a\u043e\u0434\u043e\u043c. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434:  <\/p>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">\u0421ommand1&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;cd&nbsp;1&quot;<\/font><font color=\"#000000\">,0)<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">\u0421ommand2&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;zn&nbsp;&quot;&quot;%SYS&quot;&quot;&quot;<\/font><font color=\"#000000\">,1)<\/font><\/p><\/blockquote>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u2013 \u0442\u0435\u043a\u0441\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u0442\u043e\u0440\u043e\u0439 \u2013 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f: 0 \u2013 \u041e\u0421, 1 \u2013 Cache.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430:  <\/p>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Script&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Script<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Do&nbsp;<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Insert<\/font><font color=\"#000000\">(<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;touch&nbsp;123&quot;<\/font><font color=\"#000000\">,0))<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Do&nbsp;<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Insert<\/font><font color=\"#000000\">(<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;set&nbsp;^test=1&quot;<\/font><font color=\"#000000\">,1))<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Do&nbsp;<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Insert<\/font><font color=\"#000000\">(<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;set&nbsp;^test(1)=2&quot;<\/font><font color=\"#000000\">,1))<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Do&nbsp;<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Insert<\/font><font color=\"#000000\">(<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Command<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;touch&nbsp;1234&quot;<\/font><font color=\"#000000\">,0))<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Do&nbsp;<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">%Save<\/font><font color=\"#000000\">()<\/font><\/p><\/blockquote>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u041e\u0421 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b 1\u044f \u0438 4\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0430 2\u044f \u0438 3\u044f \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0432 Cach\u00e9, \u043f\u0440\u0438\u0447\u0451\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0443\u0440\u043e\u0432\u043d\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. <\/p>\n<h4>\u00bb \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0443\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:  <\/p>\n<table>\n<tr>\n<th>\u0421\u0435\u0440\u0432\u0435\u0440  <\/th>\n<th>\u041a\u043b\u0438\u0435\u043d\u0442<\/th>\n<\/tr>\n<tr>\n<td>Linux  <\/td>\n<td>Linux, Windows (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Comparison_of_SSH_servers\">SSH \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/a> \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435)  <\/td>\n<\/tr>\n<tr>\n<td>Windows  <\/td>\n<td>Linux, Windows (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 SSH \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438\u043b\u0438 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/PsTools\">psexec<\/a> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435)  <\/td>\n<\/tr>\n<\/table>\n<p>\u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 ssh \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u0441\u0435\u0440\u0432\u0435\u0440 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 ssh \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0435\u0451 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/documatic\/%25CSP.Documatic.cls?PAGE=CLASS&amp;LIBRARY=%25SYS&amp;CLASSNAME=%25Net.SSH.Session\">%Net.SSH.Session<\/a>. <\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0435, \u0435\u0441\u043b\u0438 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u2013 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Windows, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f bat-\u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b psexec.<\/p>\n<h4>\u00bb \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h4>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 <a href=\"https:\/\/github.com\/intersystems-ru\/RCE\/archive\/master.zip\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/a> \u0432 \u043b\u044e\u0431\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 Windows \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 ^settings(\u00abexec\u00bb) \u0440\u0430\u0432\u043d\u043e\u0435 \u043f\u0443\u0442\u0438 \u043a \u0443\u0442\u0438\u043b\u0438\u0442\u0435 psexec. \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430!<\/p>\n<h4>\u00bb \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/h4>\n<p>  \u0421\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430, \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u043e\u0432\u0443\u044e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u041c\u0430\u0448\u0438\u043d\u0430 \u2013 \u041e\u0421 \u2013 \u0418\u043d\u0441\u0442\u0430\u043d\u0441<\/b><\/p>\n<div class=\"spoiler_text\">&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Machine&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Machine<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Machine<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">IP&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;IP&nbsp;\u0438\u043b\u0438&nbsp;\u0425\u043e\u0441\u0442&quot;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">OS&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.OS<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;O\u0421&quot;<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;Linux&nbsp;\u0438\u043b\u0438&nbsp;Windows<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">OS<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Username&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u0418\u043c\u044f&nbsp;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&nbsp;\u041e\u0421&quot;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">OS<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Password&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u041f\u0430\u0440\u043e\u043b\u044c&nbsp;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&quot;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">RCE.Instance<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Name&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u0418\u043c\u044f&nbsp;\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430&nbsp;Cach\u00e9&quot;&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">User&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u0418\u043c\u044f&nbsp;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&nbsp;Cach\u00e9&quot;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u041d\u0435&nbsp;\u043d\u0430\u0434\u043e,&nbsp;\u0435\u0441\u043b\u0438&nbsp;\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b&nbsp;\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435&nbsp;\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438&nbsp;\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Pass&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u041f\u0430\u0440\u043e\u043b\u044c&nbsp;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&nbsp;Cach\u00e9&quot;&nbsp;\/\/&nbsp;\u041d\u0435&nbsp;\u043d\u0430\u0434\u043e,&nbsp;\u0435\u0441\u043b\u0438&nbsp;\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b&nbsp;\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435&nbsp;\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438&nbsp;\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Dir&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">&quot;\u041f\u0443\u0442\u044c&nbsp;\u043a&nbsp;cterm&nbsp;\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u041d\u0430\u0434\u043e,&nbsp;\u0442\u043e\u043b\u044c\u043a\u043e&nbsp;\u0435\u0441\u043b\u0438&nbsp;cterm&nbsp;\u043d\u0435&nbsp;\u0432&nbsp;PATH&nbsp;(\u0434\u043b\u044f&nbsp;windows&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432)<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">OS&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#800000\">OS<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">OS<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Machine&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#800000\">Machine<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">Write&nbsp;$System<\/font><font color=\"#008080\">.Status<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">GetErrorText<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">Machine<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">%Save<\/font><font color=\"#000000\">())<\/font><\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u00bb \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h4>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u2013 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 ExecuteScript \u043a\u043b\u0430\u0441\u0441\u0430 RCE.Instance, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2013 %SYS):  <\/p>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">Status&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#800000\">Instance<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">ExecuteScript<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">Script<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;USER&quot;<\/font><font color=\"#000000\">)<\/font><\/p><\/blockquote>\n<p>  <\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  RCE \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0437 InterSystems Cach\u00e9. \u0422\u0430\u043a \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u0442\u043e\u043c \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u0443\u0433\u043e\u0434\u043d\u043e \u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. <\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <a href=\"https:\/\/github.com\/intersystems-ru\/RCE\">GitHub \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 RCE<\/a><br \/>  <a href=\"https:\/\/github.com\/intersystems-ru\/RCE\/archive\/master.zip\">\u0410\u0440\u0445\u0438\u0432 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 RCE<\/a>               <\/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=\"http:\/\/habrahabr.ru\/post\/268573\/\"> http:\/\/habrahabr.ru\/post\/268573\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/268573\/\"><img decoding=\"async\" alt=\"Van Gogh Fishing Boats on the Beach\" title=\"Van Gogh Fishing Boats on the Beach\" src=\"https:\/\/habrastorage.org\/files\/ebd\/944\/4b8\/ebd9444b812041de84ae7adfcabd85e0.jpg\" align=\"left\" width=\"270\"\/><\/a> <\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043e\u0434\u043d\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c Cach\u00e9 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Cach\u00e9 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Cach\u00e9, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043d\u0443\u0436\u0434 \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u0430\u2026 \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044b\u043b\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <a href=\"https:\/\/github.com\/intersystems-ru\/RCE\">RCE<\/a>. <\/p>\n<p>  \u041a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0438 \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 RCE (Remote Code Execution) \u2013 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/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-266782","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266782","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=266782"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266782\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}