{"id":309700,"date":"2020-09-09T15:01:24","date_gmt":"2020-09-09T15:01:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=309700"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=309700","title":{"rendered":"\u0425\u0430\u043a\u0430\u0435\u043c WhatsApp, \u0447\u0430\u0441\u0442\u044c 2 \u2013 \u0440\u0430\u0437\u0431\u043e\u0440 Whatsapp VOIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/518376\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2m\/ar\/tj\/2martjou9m_sjyfjctxhjw1_nfq.png\"><\/p>\n<p>  \u0412 \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u044f \u0432\u0441\u043a\u0440\u044b\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u0435\u0439 WhatsApp VoIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0436\u0435\u0439\u043b\u0431\u0440\u0435\u0439\u043a\u043d\u0443\u0442\u043e\u0433\u043e iOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043d\u0430\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f Whatsapp \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043a \u0441\u0435\u0431\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438\u0437 \u0437\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0445\u0430\u043a\u0435\u0440\u043e\u0432. <br \/>  \u0421 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0425\u043e\u0442\u044f \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 Whatsapp \u0435\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0435\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043a\u0430\u043a \u043e\u043d\u043e \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b.<br \/>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e Whatsapp.<\/p>\n<p>  \u041c\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0442\u0440\u0435\u0445 \u0432\u0435\u0449\u0430\u0445:<\/p>\n<p>  1. \u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430<br \/>  2. \u0410\u043d\u0430\u043b\u0438\u043a\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432<br \/>  3. \u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445<\/p>\n<p>  <b>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/b><\/p>\n<p>  \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 Wahtsapp \u043f\u043e\u0434 iOS \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b:<\/p>\n<p>   \u2014 \u0414\u0435\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432 \u2013 bfdecrypt<br \/>   \u2014 \u0414\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u2014 Hopper Disassembler \u0438 radare2<br \/>   \u2014 \u0410\u043d\u0430\u043b\u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u2014 Wireshark<br \/>   \u2014 \u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u2013 Frida<\/p>\n<p>  \u041a\u0430\u043a \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0434\u0436\u0435\u043b\u0431\u0440\u0435\u0439\u043a \u043d\u0430 iOS \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <b>\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a<\/b><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a Whatsapp \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0432\u043e\u043d\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Wireshark.<\/p>\n<p>  \u0414\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043b remote virtual network interface.<\/p>\n<p>  \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u041c\u0430\u043a\u043e\u0441\u0438 \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<p>  rvictl -s \u0417\u0434\u0435\u0441\u044c device UUID \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 UUID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0432\u0430\u0446\u0430\u043f.<\/p>\n<p>  Wireshark \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Session Traversal Utilities for NAT (STUN).<br \/>  STUN \u2013 \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f peer-to-peer \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/n6\/fb\/zi\/n6fbzi8s_nwsapyyaukiht678bc.png\"><\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c WhatsApp \u043a\u043b\u0438\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 TCP \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u0432\u0430\u0446\u0430\u043f\u0430.<br \/>  \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f UDP \u043f\u0430\u043a\u0435\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438.<br \/>  \u0421\u043e\u0442\u043d\u0438 UDP \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443.<br \/>  \u0412\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Secure Real Time Protocol (SRTP) \u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u044d\u0442\u0438 UDP \u043f\u0430\u043a\u0435\u0442\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 SRTP \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0437\u0432\u043e\u043d\u043a\u0435.<\/p>\n<p>  SRTP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u043e\u0442 \u0430\u0442\u0430\u043a \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0430 RTP \u0442\u0440\u0430\u0444\u0438\u043a.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c SRTP \u043f\u0430\u043a\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0410 \u0438 \u0411 \u0441\u0442\u043e\u0440\u043e\u043d\u0430.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0445 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0439 \u0432\u0438\u0434:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vm\/yx\/3n\/vmyx3n_zqnjsm_0pjcynba-rqxk.png\"><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 RTP \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0435 \u0434\u043b\u044f SRTP.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0431\u0430\u0439\u0442\u0430 (\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043a\u0440\u0430\u0441\u043d\u044b\u043c) \u2014 7 RTP \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044f.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:<\/p>\n<p>  <i>0x8078001e =0b10_0_0_0000_0_111100_00000000000011110 =V=10|P=0|X=0|CC=0000|M=0|PT=111100|SEQ=00000000000011110<\/i><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hj\/n4\/pf\/hjn4pfyrpa4ynty7kuk28mhxwzw.png\"><\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0435 2 \u0431\u0438\u0442\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 (V), \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f.<br \/>  \u0422\u0440\u0435\u0442\u0438\u0439 \u0431\u0438\u0442 \u2013 \u043f\u043e\u043b\u0435 \u0434\u043b\u044f \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u043e \u043f\u0443\u0441\u0442\u043e\u0435.<br \/>  \u0427\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0431\u0438\u0442 \u2013 \u043f\u043e\u043b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f (X) \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 RTP \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>  \u0411\u0438\u0442\u044b \u0441 5 \u043f\u043e 8 \u2013 \u0441\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e CSRC-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0437\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c.<br \/>  CSRC (contributing source) \u044d\u0442\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u043e\u0442\u043e\u043a\u0430 RTP-\u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043d\u043e\u0441\u0438\u0442 \u0432\u043a\u043b\u0430\u0434 \u0432 \u043e\u0431\u0449\u0438\u0439 \u043f\u043e\u0442\u043e\u043a, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0439 RTP-\u0441\u043c\u0435\u0441\u0438\u0442\u0435\u043b\u0435\u043c. \u0421\u043c\u0435\u0441\u0438\u0442\u0435\u043b\u044c \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a SSRC-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442 \u043f\u0430\u0440\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438, \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a RTP-\u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u042d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f CSRC-\u0441\u043f\u0438\u0441\u043a\u043e\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0430\u0443\u0434\u0438\u043e-\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f, \u0433\u0434\u0435 \u0441\u043c\u0435\u0441\u0438\u0442\u0435\u043b\u044c \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u0432\u0441\u0435\u0445 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0445, \u0447\u0435\u0439 \u0433\u043e\u043b\u043e\u0441 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e, \u0445\u043e\u0442\u044f \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 SSRC-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440.<\/p>\n<p>  8 \u0431\u0438\u0442 \u2013 \u044d\u0442\u043e \u043c\u0430\u0440\u043a\u0435\u0440 \u0431\u0438\u0442 (M). \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u043c\u0435\u044e\u0442 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 6 \u0431\u0438\u0442\u043e\u0432 \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u0445 RTP \u0438 SRTP. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0431\u0438\u0442\u043e\u0432 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u2013 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0435, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435 Whatsapp.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 17 \u0431\u0438\u0442\u043e\u0432 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u041d\u043e\u043c\u0435\u0440 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 1 \u043f\u0440\u0438 \u043f\u043e\u0441\u044b\u043b\u043a\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e RTP-\u043f\u0430\u043a\u0435\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u043c \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0442\u0435\u0440\u044c \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043f\u0440\u0438\u0441\u043b\u0430\u043d\u043d\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c, \u043d\u043e \u044d\u0442\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0430\u0446\u0430\u043f\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 Wireshark \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443 \u0432\u0430\u0446\u0430\u043f\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u043e 0.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 4 \u0431\u0430\u0439\u0442\u0430 (\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u0441\u0438\u043d\u0438\u043c) \u2013 \u043c\u0435\u0442\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>  4 \u0431\u0430\u0439\u0442\u0430 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e (\u0437\u0435\u043b\u0435\u043d\u044b\u0435) \u2014 \u041f\u043e\u043b\u0435 SSRC. \u041e\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u043e\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 RTP-\u0441\u0435\u0441\u0441\u0438\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u0432\u0443\u0445 \u0440\u0430\u0432\u043d\u044b\u0445 SSRC-\u043a\u043e\u0434\u043e\u0432. \u0412\u0441\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0432\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0438 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 SSRC-\u043a\u043e\u0434\u043e\u0432. \u0415\u0441\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0442\u0430\u043a\u0436\u0435 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0438 SSRC-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438 \u0447\u0442\u043e Whatsapp \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b SRTP \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0437\u0432\u043e\u043d\u043a\u043e\u0432.<br \/>  \u042d\u0442\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 UDP \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0432\u0430\u0446\u0430\u043f\u0430.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 TCP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.<br \/>  \u041d\u0438\u0436\u0435 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u043a\u0430\u043a \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Noise Pipes Protocol<\/p>\n<p>  <b>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432<\/b><\/p>\n<p>  \u0412\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f iOS \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 2 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430 \u2014 WhatsApp application binary \u0438 WhatsApp core framework.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Hopper Disassembler and radare2.<\/p>\n<p>  \u042d\u0442\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u0440\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0438 \u0438\u0445 \u0441 Appstore.<br \/>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043c\u0430\u043d\u0443\u043b\u0438 Apple \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0436\u0435\u0439\u043b\u0431\u0440\u0435\u0439\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 iOS \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0442\u043e \u044d\u0442\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 Whatsapp \u0431\u044b\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e bfdecrypt.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0441\u043d\u043e\u0432\u0430\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445 \u0438 \u043e\u043f\u0435\u043d\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Whatsapp.<\/p>\n<p>  \u041e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b.<\/p>\n<p>  <b>libsignal-protocol-c<\/b><\/p>\n<p>  \u0412\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 libsignal-protocol-c \u2013 \u043e\u043f\u0435\u043d\u0441\u0443\u0440\u0441\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u2014 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0432 Signal Protocol.<\/p>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 Double Ratchet Algorithm, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0430\u0446\u0430\u043f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u042d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 Whatsapp \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u043c:<\/p>\n<p>  <i>r2 WhatsAppCore<br \/>  [0x0082b517]&gt; \/ _signal_<br \/>  Searching 8 bytes in [0x0-0x654000]<br \/>  hits: 33<br \/>  0x00837a7b hit2_0 .il_key_data_from_signal_keydispatch_.<br \/>  0x0083df33 hit2_1 ._torlice_signal_protocol_paramet.<br \/>  0x008407c0 hit2_2 .d_fac_3key_signal_message_big.<br \/>  0x00840d50 hit2_3 .mmetric_signal_protocol_paramet.<br \/>  0x00840e70 hit2_4 .ob_signal_protocol_paramet.<br \/>  0x00841492 hit2_5 .pre_key_signal_messagesigna.<br \/>  0x008de24b hit2_6 .agc_reset_alice_signal_protocol_paramet.<br \/>  0x008de274 hit2_7 .rs_create_alice_signal_protocol_paramet.<br \/>  0x008de440 hit2_8 .bitno_MRDTX_bob_signal_protocol_paramet.<br \/>  0x008de467 hit2_9 .ters_create_bob_signal_protocol_paramet.<br \/>  0x008e311c hit2_10 .pre_big_pre_key_signal_message_copy_pr.<br \/>  0x008e3139 hit2_11 .ge_copy_pre_key_signal_message_create_.<br \/>  0x008e3158 hit2_12 ._create_pre_key_signal_message_deserial.<br \/>  0x008e317c hit2_13 .rialize_pre_key_signal_message_destroy.libsrtp<\/i><\/p>\n<p>  <b>libsrtp<\/b><\/p>\n<p>  \u0412\u0430\u0446\u0430\u043f \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 libsrtp \u0434\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e Secure Real Time Protocol.<br \/>  \u0418\u043c\u0435\u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0431\u044b\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u0438\u0437 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Whatsapp, \u043d\u043e \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u044d\u0442\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u044f\u043c\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0438\u0445 \u0441\u0432\u044f\u0437\u044c \u0441 libsrtp:<\/p>\n<p>  <i>r2 WhatsApp<br \/>  [0x1001ada34]&gt; \/ libsrtp<br \/>  0x100ee5546 hit1_0 .rc %08XUnknown libsrtp error %duns.<br \/>  0x100ee57eb hit1_1 .d to initialize libsrtp: %sFailed to r.<br \/>  0x100ee580a hit1_2 .led to register libsrtp deinit.Failed.<br \/>  0x100ee5831 hit1_3 .to deinitialize libsrtp: %sAES_CM_128_.<br \/>  0x100ee5883 hit1_4 .ck crypto Init libsrtp. create pool..<br \/>  0x100f07b80 hit1_5. packet: %slibsrtpstat test%s: c.<br \/>  <\/i><\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0432\u0430\u0446\u0430\u043f\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0441\u044b\u0440\u0446\u0430\u0445 \u043a\u043e\u0434\u0430 libsrtp, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u201ccloning stream (SSRC: 0x%08x)\u201d:<\/p>\n<p>  <i>r2 WhatsApp<br \/>  [0x1013ddb4f]&gt; \/ cloning stream<br \/>  Searching 14 bytes in [0x100000000-0x100fb4000]<br \/>  hits: 1<br \/>  0x100f07823 hit7_0 .sent!srtp%s: cloning stream (SSRC: 0x%08x).<\/i><\/p>\n<p>  <b>PJSIP<\/b><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PJSIP, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u044f \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0438, \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u043e \u0438 \u0432\u0438\u0434\u0435\u043e \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0442\u0430\u043c \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d STUN, \u0447\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u0440\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Wireshark.<\/p>\n<p>  \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0431\u044b\u043b\u0430 PJSIP \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430 \u0438\u0437 \u0437\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0434\u0435\u0431\u0430\u0433\u0430\u0445 \u0432 PJSIP:<\/p>\n<p>  <i>r2 WhatsApp<br \/>  [0x1013ddb4f]&gt; \/ pjmedia<br \/>  Searching 7 bytes in [0x100000000-0x100fb4000]<br \/>  hits: 180<br \/>  0x100edd55f hit9_0 .io_piggyback.ccpjmedia_audio_piggyback.<br \/>  0x100edd591 hit9_1 .r %d, stream %ppjmedia_audio_piggyback.<br \/>  0x100edd5d4 hit9_2 .d, tx_packet %dpjmedia_audio_piggyback.<br \/>  0x100edd601 hit9_3 .ideo_enabled %dpjmedia_audio_piggyback.<br \/>  0x100eddcf3 hit9_4 .ibyuv converterpjmedia_converter_creat.<br \/>  0x100eddd21 hit9_5 .rter count = %dpjmedia_converter_creat.<br \/>  0x100ede3e3 hit9_6 .rame, status=%dpjmedia_delay_buf_get_s.<br \/>  0x100ede46e hit9_7 .%sec_delay_bufpjmedia_echo_create2: %.<br \/>  0x100ede64d hit9_8 .eUnknown pjmedia-videodev error.<br \/>  0x100ede90c hit9_9 .o errorUnknown pjmedia-audiodev error.<br \/>  0x100edebba hit9_10 .ATENCY)Unknown pjmedia error %dUnspec.<br \/>  0x100ee027e hit9_11 .queue.format.cpjmedia_format_get_vide.<br \/>  0x100ee02ca hit9_12 .mat info for %dpjmedia_format_get_vide.<br \/>  0x100ee1446 hit9_13 .c_buf too shortpjmedia_h26x_packetize .<\/i><\/p>\n<p>  <b>mbed TLS<\/b><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u043f\u0435\u043d\u0441\u0443\u0440\u0441\u043d\u044b\u0439 mbed TLS \u0434\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e TLS protocol.<br \/>  \u042d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0432 \u043a\u043e\u0434\u0435 \u0432\u0430\u0446\u0430\u043f\u0430 \u0431\u044b\u043b\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0438\u043c\u0435\u043d\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<p>  <i>r2 WhatsAppCore<br \/>  [0x0082b517]&gt; \/ mbedtls<br \/>  Searching 7 bytes in [0x814000-0x934000]<br \/>  hits: 41<br \/>  0x008e299b hit5_0 .TLSErrorDomain_mbedtls_aes_crypt_cbc_.<br \/>  0x008e29b2 hit5_1 ._aes_crypt_cbc_mbedtls_aes_crypt_cfb12.<br \/>  0x008e29cc hit5_2 .s_crypt_cfb128_mbedtls_aes_crypt_cfb8.<br \/>  0x008e29e4 hit5_3 .aes_crypt_cfb8_mbedtls_aes_crypt_ctr_.<br \/>  0x008e29fb hit5_4 ._aes_crypt_ctr_mbedtls_aes_crypt_ecb_.<br \/>  0x008e2a12 hit5_5 ._aes_crypt_ecb_mbedtls_aes_decrypt_mb.<br \/>  0x008e2a27 hit5_6 .ls_aes_decrypt_mbedtls_aes_encrypt_mb.<br \/>  0x008e2a3c hit5_7 .ls_aes_encrypt_mbedtls_aes_free_mbedt.<br \/>  0x008e2a4e hit5_8 .edtls_aes_free_mbedtls_aes_init_mbedt.<br \/>  0x008e2a60 hit5_9 .edtls_aes_init_mbedtls_aes_setkey_dec.<br \/>  0x008e2a78 hit5_10 .aes_setkey_dec_mbedtls_aes_setkey_enc.<br \/>  0x008e2a90 hit5_11 .aes_setkey_enc_mbedtls_cipher_auth_dec.<br \/>  0x008e2aad hit5_12 .r_auth_decrypt_mbedtls_cipher_auth_enc.<br \/>  0x008e2aca hit5_13 .r_auth_encrypt_mbedtls_cipher_check_ta.<\/i><br \/>  \u2026<\/p>\n<p>  <b>XMPP<\/b><\/p>\n<p>  \u0412\u0430\u0446\u0430\u043f \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b Extensible Messaging and Presence Protocol (XMPP) \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n<p>  \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u043f\u043e \u0438\u043c\u0435\u043d\u0430\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435 \u0432\u0430\u0446\u0430\u043f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 XMPP:<\/p>\n<p>  <i>r2 WhatsApp<br \/>  [0x1013ddb4f]&gt; \/ XMPP<br \/>  Searching 4 bytes in [0x1013ac000-0x1014b4000]<br \/>  hits: 150<br \/>  Searching 4 bytes in [0x100fb4000-0x1013ac000]<br \/>  hits: 150<br \/>  Searching 4 bytes in [0x100000000-0x100fb4000]<br \/>  hits: 396<br \/>  0x1013d05b5 hit12_0 .@_OBJC_CLASS_$_XMPPAckStanza@_.<br \/>  0x1013d05d6 hit12_1 .@_OBJC_CLASS_$_XMPPBinaryCoder.<br \/>  0x1013d05fa hit12_2 .@_OBJC_CLASS_$_XMPPCallStanza.<br \/>  0x1013d0624 hit12_3 .@_OBJC_CLASS_$_XMPPChatStateStanza.<br \/>  0x1013d064b hit12_4 .@_OBJC_CLASS_$_XMPPConnection.<br \/>  0x1013d0679 hit12_5 .@_OBJC_CLASS_$_XMPPError.<br \/>  0x1013d069e hit12_6 .@_OBJC_CLASS_$_XMPPGDPRDeleteReport.<br \/>  0x1013d06cd hit12_7 .@_OBJC_CLASS_$_XMPPGDPRGetReportSta.<br \/>  0x1013d0707 hit12_8 .@_OBJC_CLASS_$_XMPPGDPRRequestRepor.<br \/>  0x1013d0736 hit12_9 .@_OBJC_CLASS_$_XMPPIQStanza.<br \/>  0x1013d0762 hit12_10 .@_OBJC_CLASS_$_XMPPMessageStanza.<br \/>  0x1013d0787 hit12_11 .@_OBJC_CLASS_$_XMPPMessageStatusCha.<br \/>  0x1013d07b9 hit12_12 .@_OBJC_CLASS_$_XMPPMultiReceipt.<br \/>  0x1013d07dc hit12_13 .@_OBJC_CLASS_$_XMPPNotificationStan.<br \/>  &#8230;<\/i><\/p>\n<p>  <b>Noise Protocol Framework<\/b><\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432\u0430\u0446\u0430\u043f, \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Noise Protocol Framework \u0434\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438.<br \/>  Noise Protocol Framework \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f easy-to-use \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0431\u043e\u0440\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. <br \/>  \u041d\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u0440\u044f, \u0432\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e Noise Pipes Protocol, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0433\u043e Noise Protocol Framework.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430:<\/p>\n<p>  <i>\u201cNoise_XX_25519_AESGCM_SHA256\u201d,<br \/>   \u2022 \u201cNoise_IK_25519_AESGCM_SHA256\u201d,<br \/>   \u2022 \u201cNoise_XXfallback_25519_AESGCM_SHA256\u201d.<br \/>  <\/i><br \/>  \u042d\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0445\u0435\u043d\u0434\u0448\u0435\u0439\u043a \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0443 WANoiseFullHandshake.<br \/>  \u0412\u0442\u043e\u0440\u0430\u044f \u2013 \u043a WANoiseResumeHandshake \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043a WANoiseFallbackHandshak.<\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <b>Runtime Analysis<\/b><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Frida. <\/p>\n<p>  Frida \u2013 \u044d\u0442\u043e \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 Dinamic Instrumentation Toolkit, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u043d\u0430 \u043b\u0435\u0442\u0443 \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438\u0438 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e JS-\u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>  <b>Key Transport<\/b><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0430\u0446\u0430\u043f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<br \/>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043e\u0442 Whatsapp, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 VOIP \u0437\u0432\u043e\u043d\u043a\u0430 \u2013 \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440 \u0437\u0432\u043e\u043d\u043a\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 32 \u0431\u0430\u0439\u0442\u043d\u044b\u0439 SRTP \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442.<br \/>  \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0411 \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0433\u043e SRTP \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430.<br \/>  \u0417\u0430\u0442\u0435\u043c \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0411.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0440\u0435\u0439\u0441, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u043e\u0432\u043e \u201csecret\u201d:<\/p>\n<p>  frida-trace -U WhatsApp -m &quot;*[* *Secret*]&quot; -m &quot;*[* *secret*]&quot;<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0430\u0446\u0430\u043f \u0437\u0432\u043e\u043d\u043a\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 deriveSecretsFromInputKeyMaterial \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 WAHKDF:<\/p>\n<p>  <i>+[WAHKDF <br \/>   deriveSecretsFromInputKeyMaterial: 0x121e08a20<br \/>   salt: 0x0<br \/>   info: 0x121e07840<br \/>   outputLength: 0x2e<br \/>   withMessageVersion: 0x3<br \/>   ]<\/i><\/p>\n<p>  \u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 0x121e08a20 \u0438 0x121e07840 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 Objective-C \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<br \/>  Frida \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c proxy Objective-C objects \u0434\u043b\u044f JavaScript.<\/p>\n<p>  \u0425\u0443\u043a deriveSecretsFromInputKeyMaterial \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0442\u0438\u043d\u0433\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432:<\/p>\n<p>  <i>{<br \/>  onEnter: function (log, args, state) {<br \/>  log(&quot;+[ WAHKDF deriveSecretsFromInputKeyMaterial: &quot; + <br \/>  ObjC.Object( args[2] ).toString() + &quot;\\n&quot; +<br \/>  &quot; salt: &quot; + ObjC.Object( args[3] ).toString() + &quot;\\n&quot; +<br \/>  &quot; info: &quot; + ObjC.Object( args[4] ).toString() + &quot;\\n&quot; +<br \/>  &quot; bytes: &quot; + args[5].toInt32 () + &quot;\\n&quot; +<br \/>  &quot; withMessageVersion: &quot; + args[6].toInt32 () + &quot;\\n]&quot;);<br \/>  }<br \/>  }<br \/>  <\/i><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<p>  <i>+[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;09a38e76 fe90e4f1 26ed66d0 5a6783ba d48776b6 1daaf7c9 39c005ea 2d8ccdf6&gt; <br \/>   salt: nil <br \/>   info: &lt;34393135 39303537 37313632 3040732e 77686174 73617070 2e6e6574&gt; <br \/>   bytes: 46 <br \/>   withMessageVersion: 3<br \/>  ]<\/i><\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 NSData \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0439 \u0431\u0443\u0444\u0435\u0440.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438\u043c\u0435\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 32 \u0431\u0430\u0439\u0442\u0430, \u043a\u0430\u043a \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 WhatsApp white paper.<\/p>\n<p>  \u0422\u0440\u0435\u0442\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 ASCII \u0441\u0442\u0440\u043e\u043a\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f JID \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u0430 \u0437\u0432\u043e\u043d\u043a\u0430.<br \/>  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442.<\/p>\n<p>  <b>\u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430<\/b><\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e WhatsApp white paper, \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u2014 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b call session.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0411.<br \/>  \u0414\u043b\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0440\u0435\u0439\u0441, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p>  <i>frida-trace -U WhatsApp -m &quot;*[* *crypt*]&quot; -i &quot;*crypt*&quot;<\/i><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u0438 \u0437\u0432\u043e\u043d\u043a\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e signal_encrypt \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 libsignal-protocol-c.<br \/>  \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a signal_encrypt:<\/p>\n<p>  plaintext \u0447\u0438\u0442\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0445\u0443\u043a\u0430 \u043e\u0442 Frida:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_f\/0o\/jr\/_f0ojr642ujpioglbgjm9wr2cxu.png\"><\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0435 4 \u0431\u0430\u0439\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e protocol buffers \u043e\u0442 Google.<br \/>  (\u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0431\u0438\u0442\u043e\u0432.)<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0430\u0439\u0442\u044b \u2014 \u0441\u0430\u043c \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442.<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 13 \u0431\u0430\u0439\u0442 \u2014 encryption padding.<br \/>  \u041f\u043b\u0430\u0439\u043d\u0442\u0435\u043a\u0441\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AES-256 \u0432 CBC \u0440\u0435\u0436\u0438\u043c\u0435.<br \/>  \u041a\u043b\u044e\u0447\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Double Ratchet Algorithm, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e Signal Protocol.<br \/>  \u0420\u0430\u0431\u043e\u0442\u0430 libsignal-protocol-c \u0438 Signal Protocol \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f signal_encrypt:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/us\/1b\/hl\/us1bhl7obhy2-hbroxee9jidhks.png\"><\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u0430\u0439\u0442, \u0442.\u00a0\u043a. \u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d authentication tag, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 HMAC-SHA256.<\/p>\n<p>  \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c WhatsApp VoIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<p>  \u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0438\u0442\u043e\u0433\u0438 \u2014 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0438 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e 256-\u0431\u0438\u0442\u043d\u043e\u0433\u043e AES \u043a\u043b\u044e\u0447\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 CBC.<br \/>  \u041a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u043d\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 libsignal-protocol-c.<\/p>\n<p>  <b>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442<\/b><\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430.<\/p>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0442\u0440\u0435\u0439\u0441 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c signal:<\/p>\n<p>  frida-trace -U WhatsApp -i \u201c*signal*\u201d<br \/>  Frida \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f textsecure__signal_message__pack.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442 Signal message, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/et\/gh\/ym\/etghymmg_czosqdtejanhln8qi8.png\"><\/p>\n<p>  \u0411\u0430\u0439\u0442\u044b, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0435\u043b\u0435\u043d\u044b\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<br \/>  \u0421\u0438\u043d\u0438\u0438 \u0431\u0430\u0439\u0442\u044b \u2014 \u0440\u044d\u0442\u0447\u0435\u0442 \u043a\u043b\u044e\u0447 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043a\u0432\u043e\u0437\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f).<br \/>  \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u2014 \u043e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u0435 \u0431\u0430\u0439\u0442\u044b.<br \/>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u0437\u0435\u043b\u0435\u043d\u044b\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u0431\u0430\u0439\u0442\u044b \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430.<\/p>\n<p>  \u041f\u0440\u0438 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0435 XMPP \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 writeNoiseFrameToSocketWithPayload \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 XMPPStream.<br \/>  \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0448\u043b\u0435\u0442 XMPP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 Noise Pipes Protocol, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f TCP \u043f\u0440\u043e\u043a\u0442\u043e\u043a\u043e\u043b, \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0432\u0430\u0446\u0430\u043f\u0430.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432 payload:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cy\/13\/ez\/cy13ezxionail3fommlzye6ar1m.png\"><\/p>\n<p>  \u042d\u0442\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 XMPP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0435 \u0432\u044b\u0448\u0435.<br \/>  \u0414\u043b\u044f \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0435\u043b\u0435\u0430\u0435\u043c \u0442\u0440\u0435\u0439\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 XMPPBinaryCoder.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 serialize, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 XMPP \u0441\u0442\u0440\u043e\u043a.<br \/>  \u041f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u044d\u0442\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a XMPP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044e:<\/p>\n<p>  <i>-[XMPPBinaryCoder serialize: <br \/>   [call from=\u201949**********@s.whatsapp.net\u2019<br \/>   id=\u20191555415586-10\u2019<br \/>   to=\u201949**********@s.whatsapp.net\u2019<br \/>   [offer call-id=\u201945D7827C624353A70084AED9B8C509D3\u2019<br \/>   call-creator=\u201949**********@s.whatsapp.net\u2019<br \/>   <br \/>   <br \/>   [net medium=\u20193\u2019] <br \/>   [capability ver=\u20191\u2019 {5b}]<br \/>   [encopt keygen=\u20192\u2019]<br \/>   [enc v=\u20192\u2019 type=\u2019pkmsg\u2019 {201b}]<br \/>   ] <br \/>   ] <br \/>  ] compressed: 0x0]<\/i><\/p>\n<p>  \u041c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u0435\u0439\u043a\u043e\u0432\u043e\u0432\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0435 \u043e\u0442 \u0410 \u043a \u0411, \u0445\u043e\u0442\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0437\u0432\u043e\u043d\u043e\u043a \u0431\u044b\u043b \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d Mallory.<br \/>  \u042d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 call-creator \u0438 from \u0432 JID \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0410.<br \/>  \u0425\u043e\u0442\u044f \u0438\u043c\u044f Mallory \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0438.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0411 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0410 \u0432\u043c\u0435\u0441\u0442\u043e Mallory.<br \/>  \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vc\/lo\/ay\/vcloayhpsn4guitwpogl7g6kcio.jpeg\"><\/p>\n<p>  \u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0438\u0442\u043e\u0433\u0438 \u2013 \u0432 \u0432\u0430\u0446\u0430\u043f\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 XMPP \u0441\u0442\u0440\u043e\u043a\u0438.<br \/>  XMPP \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 ID \u0438 JID \u043e\u0431\u043e\u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d.<\/p>\n<p>  <b>\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435<\/b><\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043e\u0442 \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 Noise Pipes \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441 Curve25519, AESGCM, \u0438 SHA256 \u0438\u0437 Noise Protocol Framework.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0435\u0439\u0441\u0438\u043d\u0433, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0435\u0441\u044f \u043a Noise Protocol Framework, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u043a\u043b\u0430\u0441\u0441 WANoiseStreamCipher \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0432\u0430\u0446\u0430\u043f \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>  \u041a\u043b\u0430\u0441\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 encryptPlaintext.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 plaintext \u2013 \u044d\u0442\u043e XMPP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432\u044b\u0448\u0435.<br \/>  \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043d\u043e\u0432\u0430 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e mbed TLS \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 mbedtls_gcm_crypt_and_tag.<br \/>  mbedtls_gcm_setkey \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 256 \u0431\u0438\u0442, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f AES-256-GCM.<br \/>  \u041a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0437 Noise Pipes Protocol, \u043a\u043e\u0442\u043e\u0440\u0439 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<br \/>  \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 plaintext \u0434\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 TCP \u0438\u0434\u0435\u0442 \u043d\u0430 \u0432\u0430\u0446\u0430\u043f \u0441\u0435\u0440\u0432\u0435\u0440 (\u044d\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Wireshark).<br \/>  \u0417\u0430\u0442\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u0442 \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xa\/td\/7g\/xatd7gxhaflqkhbzyov91ns43w4.png\"><\/p>\n<p>  <b>\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0439<\/b><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043c\u0442\u043e\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 (KDF)\/<br \/>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u044b\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Frida \u043f\u0440\u0438 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 WAHKDF \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 libcommonCrypto.<br \/>  \u041a\u043b\u0430\u0441\u0441 WAHKDF \u0431\u044b\u043b \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439, \u0441\u043e\u043b\u0438 \u0438 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043e\u0434\u043e\u0432 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 SRTP \u043f\u043e\u0442\u043e\u043a\u043e\u0432.<br \/>  \u041f\u0435\u0440\u0435\u0434 \u0441\u0442\u0430\u0440\u043e\u0442\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0430 10 \u0440\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 deriveSecretsFromInputKeyMaterial:<\/p>\n<p>  <i>+[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;09a38e76 fe90e4f1 26ed66d0 5a6783ba d48776b6 1daaf7c9 39c005ea 2d8ccdf6&gt;, salt: nil, info: &lt;34393135 39303537 37313632 3040732e 77686174 73617070 2e6e6574&gt;, bytes: 46, withMessageVersion: 3] =&gt; result: &lt;4633c47f 94d5ed59 93a6dba8 514d5fb8 5092ba90 4256f8d3 4d56e72e 665bcd4c 5b6c418b db811e7f 84a70c83 f401&gt;+[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;09a38e76 fe90e4f1 26ed66d0 5a6783ba d48776b6 1daaf7c9 39c005ea 2d8ccdf6&gt;, salt: nil, info: &lt;34393137 ******** ******** ******** ******** 6170702e 6e6574&gt;, bytes: 46, withMessageVersion: 3] =&gt; result: &lt;a174670a e25d8138 4de0ed3b f4ce7f76 c62c1d00 9ece6573 2ecb497b 1f6ed09c 18c444b9 c180fbd3 51713739 761c&gt;+[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;00000000&gt;, info: &lt;34393135 39303537 37313632 3040732e 77686174 73617070 2e6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: &lt;0ec654fd&gt;+[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;01000000&gt;, info: &lt;34393135 39303537 37313632 3040732e 77686174 73617070 2e6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: +[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;04000000&gt;, info: &lt;34393135 39303537 37313632 3040732e 77686174 73617070 2e6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: +[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;00000000&gt;, info: &lt;34393137 ******** ******** ******** ******** 6170702e 6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: +[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;01000000&gt;, info: &lt;34393137 ******** ******** ******** ******** 6170702e 6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: +[WAHKDF deriveSecretsFromInputKeyMaterial: &lt;34354437 38323743 36323433 35334137 30303834 41454439 42384335 30394433&gt;, salt: &lt;04000000&gt;, info: &lt;34393137 ******** ******** ******** ******** 6170702e 6e6574&gt;, bytes: 4, withMessageVersion: 3] =&gt; result: <\/p>\n<p>  \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441\u043e\u043b\u044c \u0438 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0435 \u043a\u043e\u0434\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0438 JID\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0437\u0432\u043e\u043d\u043a\u0430.<br \/>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f 6 SRTP \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u043f\u043e 3 \u0432 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043d\u0438\u043f\u043f\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 JavaScript:<\/p>\n<p>  <i>const crypto = require(\u00abcrypto\u00bb);<\/p>\n<p>  \/\/ master secret<br \/>  const keyMaterial = new Buffer(<br \/>  \u00ab09a38e76fe90e4f126ed66d05a6783bad48776b61daaf7c939c005ea2d8ccdf6\u00bb,<br \/>  \u00abhex\u00bb<br \/>  );<br \/>  \/\/ JID param: 4915905771620@s.whatsapp.net<br \/>  const info = \u00ab3439313539303537373136323040732e77686174736170702e6e6574\u00bb;<br \/>  const salt = new Buffer(<br \/>  \u00ab0000000000000000000000000000000000000000000000000000000000000000\u00bb,<br \/>  \u00abhex\u00bb<br \/>  );<br \/>  const initialKey = crypto.createHmac(\u00absha256\u00bb, salt)<br \/>  .update(keyMaterial)<br \/>  .digest();<br \/>  const temp1 = crypto.createHmac(\u00absha256\u00bb, initialKey)<br \/>  .update(new Buffer(info + \u00ab01\u00bb, \u00abhex\u00bb))<br \/>  .digest();<br \/>  const temp2 = new Buffer(temp1.toString(\u00abhex\u00bb) + info + \u00ab02\u00bb, \u00abhex\u00bb);<br \/>  const temp3 = crypto.createHmac(\u00absha256\u00bb, initialKey)<br \/>  .update(temp2)<br \/>  .digest();<\/p>\n<p>  const result = Buffer.concat([temp1, temp3.slice(0, 14)]);<br \/>  console.log(result.toString(\u00abhex\u00bb));<\/p>\n<p>  \/\/ 4633c47f94d5ed5993a6dba8514d5fb85092ba904256f8d34d56e72e665bcd4c5b6c418bdb811e7f84a70<\/i><\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u043d\u0438\u043f\u043f\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e SRTP \u043f\u043e\u0442\u043e\u043a\u0430.<br \/>  \u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u044b\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Frida.<br \/>  \u0414\u043b\u044f \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 KDF \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0445\u0435\u0448\u0430 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e libcommonCrypto \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b 3 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f HMAC-SHA256.<br \/>  \u042d\u0442\u043e\u0442 KDF \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 RFC 5869.<\/p>\n<p>  <b>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430<\/b><\/p>\n<p>  SRTP, \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e libsrtp, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0430\u0446\u0430\u043f\u043e\u043c \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f VOIP \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0438.<br \/>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0447\u0430\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0438 libsrtp \u0431\u044b\u043b\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0430 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0435\u0439\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0438 \u043f\u043e \u044d\u0442\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c.<br \/>  \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 libsrtp \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  \u041c\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 libsrtp \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0441\u0443\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u0445.<br \/>  \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u0431\u044b\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<br \/>  \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430 \u0438 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0438\u0445 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 libsrtp.<br \/>  \u0417\u0430\u0442\u0435\u043c \u044f \u043d\u0430\u0448\u0435\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u044d\u0442\u0438\u043c\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430.<br \/>  \u0417\u0430\u0442\u0435\u043c \u044f \u043d\u0430\u0448\u0435\u043b \u0442\u0430\u043a\u043e\u0435 \u0436\u0435 \u0432 \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0435 libsrtp \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0435 12 \u0431\u0430\u0439\u0442 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0435\u0442\u0438\u0440\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<br \/>  \u0417\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b Frida \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0435\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044f \u043d\u0430\u0448\u0435\u043b \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b Frida.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0446\u0430\u043f\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 srtp_aes_icm_context_init \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0438 libsrtp.<br \/>  \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e SRTP \u043f\u043e\u0442\u043e\u043a\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 AES-ICM.<br \/>  \u0414\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0431\u044b\u043b\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u044b \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0435.<\/p>\n<p>  \u0418\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f srtp_aes_icm_context_init, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f 2 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0438:<\/p>\n<p>  <i>debug_print(srtp_mod_aes_icm, \u00abkey: %s\u00bb,<br \/>  srtp_octet_string_hex_string(key, base_key_len));<br \/>  debug_print(srtp_mod_aes_icm, \u00aboffset: %s\u00bb, v128_hex_string(&amp;c\u2192offset));<\/i><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b debug_print \u0442\u0430\u043a\u0438\u0435 \u0436\u0435 \u043a\u0430\u043a \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0446\u0430\u043f\u0430.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0431\u044b\u043b\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Hopper Disassembler:<\/p>\n<p>  <i>int sub_100bbda00(int arg0, int arg1) {<br \/>  r31 = r31 \u2014 0x60;<br \/>  var_30 = r24;<br \/>  stack[-56] = r23;<br \/>  var_20 = r22; <br \/>  stack[-40] = r21;<br \/>  var_10 = r20;<br \/>  stack[-24] = r19; <br \/>  saved_fp = r29;<br \/>  stack[-8] = r30;<br \/>  r19 = arg0;<br \/>  sub_100bbf094(arg0, arg1 + 0x10);<br \/>  r20 = r19 + 0x10;<br \/>  sub_100bbf094(r20, arg1 + 0x10);<br \/>  *(int16_t *)(r19 + 0x1e) = 0x0;<br \/>  *(int16_t *)(r19 + 0xe) = 0x0;<br \/>  if (*(int32_t *)dword_1012b5760 != 0x0) {<br \/>  sub_100bbf048(&amp;var_40);<br \/>  sub_100bc085c(0x7, &quot;%s: key: %s\\n&quot;);<br \/>  if (*(int32_t *)0x1012b5760 != 0x0) {<br \/>  sub_100bbf048(r20);<br \/>  sub_100bc085c(0x7, &quot;%s: offset: %s\\n&quot;);<br \/>  }<br \/>  }<br \/>  sub_100bbbffc(&amp;var_40, r19 + 0x30);<br \/>  *(int32_t *)(r19 + 0xe0) = 0x0;<br \/>  return 0x0;<br \/>  }<\/i><\/p>\n<p>  \u0421\u0442\u0440\u043e\u0447\u043a\u0438 19 \u0438 22 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043e\u0442\u0441\u044b\u043b\u043a\u0443 \u043a \u0434\u0435\u0431\u0430\u0433 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0446\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043e \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0432\u0430\u0446\u0430\u043f\u0430, \u043c\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e iOS \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 Address Space Layout Randomization (ASLR) \u0432 \u0441\u0432\u043e\u0438\u0445 \u0434\u0435\u0432\u0430\u0439\u0441\u0430\u0445.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043d\u0438\u043f\u043f\u0435\u0442 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f srtp_aes_icm_context_init \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435:<\/p>\n<p>  <i>const apiResolver = new ApiResolver(\u00abobjc\u00bb);<br \/>  const resolvedMatches = apiResolver.enumerateMatches(<br \/>  &quot;+[NSURL URLWithUnicodeString:]&quot;<br \/>  );<\/p>\n<p>  const SCAN_SIZE = 100000;<br \/>  const scanStart = resolvedMatches[0].address;<br \/>  const scanResults = Memory.scanSync(<br \/>  ptr(scanStart),<br \/>  SCAN_SIZE,<br \/>  \/\/ first bytes of the hexadecimal representation of srtp_aes_icm_context_init<br \/>  \u00abFF 83 01 D1 F8 5F 02 A9 F6 57 03 A9\u00bb<br \/>  );<\/p>\n<p>  \/\/ srtp_err_status_t srtp_aes_icm_context_init(void *cv, const uint8_t *key)<br \/>  const targetPointer = ptr(scanResults[0].address);<br \/>  const targetFunction = new NativeFunction(targetPointer, \u00abint\u00bb, [<br \/>  \u00abpointer\u00bb,<br \/>  \u00abpointer\u00bb<br \/>  ]);<\/p>\n<p>  console.log(\u00abscan start: \u00bb + scanStart);<br \/>  console.log(\u00absrtp_aes_icm_context_init: \u00bb + scanResults[0].address);<\/p>\n<p>  Interceptor.attach(targetFunction, {<br \/>  onEnter: function(args) {<br \/>  \/*<br \/>  static srtp_err_status_t srtp_aes_icm_context_init(void *cv, const uint8_t *key)<\/p>\n<p>  typedef struct {<br \/>  v128_t counter; holds the counter value <br \/>  v128_t offset; initial offset value <br \/>  v128_t keystream_buffer; buffers bytes of keystream <br \/>  srtp_aes_expanded_key_t expanded_key; the cipher key <br \/>  int bytes_in_buffer; number of unused bytes in buffer<br \/>  int key_size; AES key size + 14 byte SALT<br \/>  } srtp_aes_icm_ctx_t;<\/p>\n<p>  *\/<br \/>  console.log(\u00absrtp_aes_icm_context_init \u00bb + args[0] + &quot; key:&quot;);<br \/>  console.log(<br \/>  hexdump(args[1], {<br \/>  offset: 0,<br \/>  length: 16<br \/>  })<br \/>  );<br \/>  },<br \/>  onLeave: function(args) {}<br \/>  });<br \/>  <\/i><\/p>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ApiResolver \u0438\u0437 Frida \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0437\u0430\u0442\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<br \/>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b ApiResolver \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u043b\u0438\u0437\u043a\u043e \u043a \u0438\u0441\u043a\u043e\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u0438 \u0438\u043c\u0435\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430.<br \/>  \u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0442\u043e \u043b\u0435\u0433\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0435\u0439\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Frida.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0440\u0435\u0439\u0441 URLWithUnicodeString, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 3 \u0441\u0442\u0440\u043e\u043a\u0435.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u044f \u0441\u0434\u0435\u043b\u0430\u043b linear search \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>  \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 SCAN_SIZE \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0438 \u0438\u0441\u043a\u043e\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439.<br \/>  \u0421\u0442\u0440\u043e\u043a\u0430 12 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0435\u0440\u0432\u044b\u0435 12 \u0431\u0430\u0439\u0442 \u0438\u0441\u043a\u043e\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0435\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<br \/>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, NativeFunction, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 17 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u0442\u0440\u0430\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0430 Frida (\u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043d\u0430\u0439\u0434\u0435\u043d \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0435\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d).<br \/>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 2 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c encryption context (cv) \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c encryption key (key).<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0437\u0432\u043e\u043d\u043a\u043e\u043c srtp_aes_icm_context_init \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f 6 \u0440\u0430\u0437 \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 6 SRTP \u043f\u043e\u0442\u043e\u043a\u043e\u0432.<br \/>  \u0414\u0432\u0430 \u043f\u043e\u0442\u043e\u043a\u0430 \u043d\u0435\u0441\u0443\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 key.<\/p>\n<p>  \u041f\u043e\u0442\u043e\u043a\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b AES-ICM. <br \/>  \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f srtp_aes_icm_alloc, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u201callocating cipher with key length %d\u201d.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 key length \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 16 \u0431\u0430\u0439\u0442 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430.<br \/>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u0438\u043c\u0435\u0435\u043c AES-128-ICM \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 SRTP \u043f\u043e\u0442\u043e\u043a\u043e\u0432.<br \/>  \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e \u0447\u0442\u043e 46 \u0431\u0430\u0439\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u0441 key derivation function, \u0442\u043e\u043b\u044c\u043a\u043e 30 \u0431\u0430\u0439\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u043f\u043e\u0442\u043e\u043a\u043e\u0432.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f 16 \u0431\u0430\u0439\u0442\u043e\u0432 \u0437\u0432\u043e\u043d\u043e\u043a \u043c\u0435\u0436\u0434\u0443 2 \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044d\u0442\u0438 16 \u0431\u0430\u0439\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u043e\u0432\u0441\u0435\u043c!<\/p>\n<p>  <b>\u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u043a\u0430<\/b><\/p>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f srtp_aes_icm_encrypt, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e libsrtp \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0443\u0435\u0442 SRTP \u043f\u043e\u0442\u043e\u043a\u0438 \u043e\u0442 \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AES-128-ICM.<br \/>  \u041e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u201cblock index: %d\u201d \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 SRTP \u043f\u0430\u043a\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 srtp_aes_icm_encrypt:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pr\/a1\/zu\/pra1zu4prf2vxdjvzg1taxenahg.png\"><\/p>\n<p>  \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u044b\u0445 12 \u0431\u0430\u0439\u0442, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u0440\u0430\u0441\u043d\u044b\u043c, \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u043e \u0432\u044b\u0448\u0435.<br \/>  \u0421\u0438\u043d\u0438\u0435 \u0431\u0430\u0439\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 SRTP payload.<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4 \u0431\u0430\u0439\u0442\u0430 (\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0435\u043b\u0435\u043d\u044b\u043c\u0438) \u2013 \u044d\u0442\u043e authentication tag.<br \/>  \u0422\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u043e 6 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, SRTP payload \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u043c \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>  <b>Call Integrity<\/b><\/p>\n<p>  \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c SRTP \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p>\n<p>  \u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 libsrtp \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f srtp_hmac_compute.<br \/>  \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 authentication tag \u0434\u043b\u044f SRTP \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u044b.<\/p>\n<p>  srtp_hmac_compute \u043c\u043e\u0434\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0438 \u043e\u0442\u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Frida, \u043f\u043e\u0438\u0441\u043a\u043e\u043c <br \/>  \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441\u0430 \u201cintermediate state: %s\u201d \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445.<\/p>\n<p>  \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a srtp_hmac_compute \u0432\u0438\u0434\u0435\u043d \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <i>static srtp_err_status_t srtp_hmac_compute(void *statev,<br \/>  const uint8_t *message,<br \/>  int msg_octets,<br \/>  int tag_len,<br \/>  uint8_t *result)<\/i><\/p>\n<p>  srtp_hmac_compute \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 HMAC-SHA1 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0430\u0433\u0430.<br \/>  \u041f\u0440\u0438 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0435 Frida \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 tag_len \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e SRTP \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043b\u043e\u0433 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f tag_len \u0438 message srtp_hmac_compute \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0432\u043e\u043d\u043a\u0430:<br \/>  <i>Attaching\u2026<br \/>  search srtp_hmac_compute in memory from: 0x1016380ac<br \/>  found srtp_hmac_compute at: 0x10163b5f4<br \/>  tag_len: 10<br \/>  message: 81 ca 00 07 fe 67 2e 32 56 14 89 75 c5 c0 39 4a d3 a0 cd 48 8c 4b 61 8a 78 32 a7 89 1e b7 71 26 80 00 00 01tag_len: 4<br \/>  message: 00 00 00 00tag_len: 10<br \/>  message: 81 d0 00 02 fe 67 2e 32 b5 6f 93 8e 80 00 00 02tag_len: 4<br \/>  message: 00 00 00 00tag_len: 4<br \/>  message: 00 00 00 00tag_len: 4<br \/>  message: 00 00 00 00tag_len: 4<br \/>  message: 00 00 00 00tag_len: 10<br \/>  message: 81 ca 00 07 83 42 f3 44 81 78 9f f5 39 b1 23 50 48 19 e0 f1 61 5b b5 32 dc b3 10 08 e7 47 a8 4b 80 00 00 01tag_len: 10<br \/>  message: 81 d0 00 02 83 42 f3 44 94 60 21 fe 80 00 00 02tag_len: 4<br \/>  message: 00 00 00 00tag_len: 4<br \/>  message: 00 00 00 00tag_len: 10<br \/>  message: 81 c8 00 12 fe 67 2e 32 87 b7 69 f8 5a 27 4c 76 b4 29 f6 5d 59 26 de af bd e9 4c 8b f3 ff 48 e3 a9 7e 62 cf db 9c 8a 3d 34 50 48 f8 fc 0e 88 7a 17 eb 17 94 9f 3d 91 27 89 d5 cc bd 21 ea 01 39 27 e1 05 07 66 69 1f 68 08 53 1a 18 02 9e bc 50 ed 8e 40 3e 8a 7b d3 b6 19 e8 54 6f 6b 58 ac 4e e3 25 f5 c2 e8 1c 97 bb 46 f9 38 45 80 00 00 03&#8230;<\/i><\/p>\n<p>  \u042f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b 2 \u0432\u0435\u0449\u0438:<\/p>\n<p>  1. SRTP \u043f\u0430\u043a\u0435\u0442\u044b \u0441 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0442\u0430\u0433\u0430 \u0432 4 \u0431\u0430\u0439\u0442\u0430 \u0430\u0443\u0442\u0435\u043d\u0435\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<br \/>  Message \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 SRTP \u043f\u0430\u043a\u0435\u0442.<br \/>  \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 4 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u0430\u0439\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f authentication tag.<br \/>  \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044f\u0445 \u0441 \u0442\u0430\u0433\u0430\u043c\u0438 \u044d\u0442\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0437\u0432\u043e\u043d\u043e\u043a \u043e\u0431\u0440\u044b\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434.<br \/>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u043b \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<\/p>\n<p>  2. \u041f\u043e\u0442\u043e\u043a\u0438 \u0441 \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0442\u0430\u0433\u0430\u043c\u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 10 \u0431\u0430\u0439\u0442 \u043f\u043e \u0432\u0441\u0435\u0439 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u044b\u043b\u0438 \u0430\u0443\u0442\u0435\u043d\u0435\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<br \/>  \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u044d\u0442\u043e, \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0433\u043e\u0432 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f VOIP \u0437\u0432\u043e\u043d\u043a\u0430.<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u043f\u043f\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0430\u0433\u0438 SRTP \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u0442\u0430\u0433\u0438 \u0434\u043b\u0438\u043d\u043e\u0439 10 \u0431\u0430\u0439\u0442:<\/p>\n<p>  <i>const scanStart = new ApiResolver(\u00abobjc\u00bb).enumerateMatches(<br \/>  &quot;+[NSURL URLWithUnicodeString:]&quot;<br \/>  )[0].address;<\/p>\n<p>  console.log(\u00absearch srtp_hmac_compute in memory from: \u00bb + scanStart);<\/p>\n<p>  const size = 100000;<br \/>  const matches = Memory.scanSync(<br \/>  ptr(scanStart),<br \/>  size,<br \/>  \/\/ first bytes of the hexadecimal representation of srtp_hmac_compute<br \/>  \u00abE0 03 16 AA 4C 00 00 94 D5 02 01 91\u00bb<br \/>  );<br \/>  const targetPtr = ptr(matches[0].address);<br \/>  console.log(\u00abfound srtp_hmac_compute at: \u00bb + matches[0].address);<\/p>\n<p>  const targetFunction = new NativeFunction(targetPtr, \u00abint\u00bb, [<br \/>  \u00abpointer\u00bb,<br \/>  \u00abpointer\u00bb,<br \/>  \u00abint\u00bb,<br \/>  \u00abint\u00bb,<br \/>  \u00abpointer\u00bb<br \/>  ]);<\/p>\n<p>  const MANIPULATABLE_TAG_SIZE = 10;<br \/>  const manipulatedTag = Memory.alloc(MANIPULATABLE_TAG_SIZE);<br \/>  manipulatedTag.writeByteArray([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]);<\/p>\n<p>  Interceptor.attach(ptr(targetFunction), {<br \/>  onEnter: function(args) {<br \/>  \/*<br \/>  static srtp_err_status_t srtp_hmac_compute(void *statev,<br \/>  const uint8_t *message,<br \/>  int msg_octets,<br \/>  int tag_len,<br \/>  uint8_t *result)<br \/>  *\/<br \/>  console.log(\u00absrtp_hmac_compute tag (\u00bb + args[3].toInt32() + &quot;):&quot;);<br \/>  const tag_len = args[3].toInt32();<br \/>  if (tag_len === MANIPULATABLE_TAG_SIZE) {<br \/>  console.log(<br \/>  hexdump(args[1], {<br \/>  length: args[2].toInt32()<br \/>  })<br \/>  );<br \/>  args[3] = 0;<br \/>  args[4].writePointer(manipulatedTag);<br \/>  }<br \/>  }<br \/>  });<\/i><\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442 Frida, VOIP \u0437\u0432\u043e\u043d\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438.<br \/>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c SRTP \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0431\u044b\u043b\u0430 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430.<br \/>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0434\u043b\u044f \u0432\u044b\u0441\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u0438\u0447\u0438\u043d \u043d\u0443\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0443\u0433\u043b\u0443\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f.<\/p>\n<p>  <b>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 WhatsApp VoIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u2026<br \/>  \u042f \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u043a\u0430\u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0438 \u043a\u0430\u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u044d\u0442\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<p>   \u2014 \u0412\u0430\u0446\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u043f\u0435\u043d\u0441\u0443\u0440\u0441\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 libsignal-protocol-c, libsrtp, PJSIP \u0438 mbed TLS \u0434\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e VOIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<p>   \u2014 \u0422\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u201cmaster secret\u201d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 2 SRTP \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 AES-128-ICM.<br \/>  \u041c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0438\u0437\u0432\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0434\u043b\u044f key derivation function (HKDF), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043b\u044e\u0447\u0438, \u0441\u043e\u043b\u0438 \u0438 nonces \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0434\u043b\u044f SRTP.<\/p>\n<p>   \u2014 Noise Pipes Protocol, Signal Protocol \u0438 XMPP \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430.<br \/>  \u041c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d Signal Protocol, \u0437\u0430\u0442\u0435\u043c \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d \u0432 XMPP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0442\u0435\u043c \u0448\u0438\u0444\u0440\u043e\u0443\u0435\u0442\u0441\u044f Noise Pipes Protocol \u0438 \u0437\u0430\u0442\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0446\u0430\u043f \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0434\u043b\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.<\/p>\n<p>   \u2014 \u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438 VOIP \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0432 \u0432\u0430\u0446\u0430\u043f\u0435 \u0438\u043c\u0435\u0435\u0442 \u0438\u0437\u044c\u044f\u043d\u044b \u2013 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 SRTP \u043f\u043e\u0442\u043e\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c.<br \/>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u044d\u0442\u0438 \u043f\u043e\u0442\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c\u0438 \u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0442\u0430\u0433\u0430\u043c\u0438 \u0441 \u043d\u0443\u043b\u0435\u0432\u044b\u043c\u0438 \u0431\u0430\u0439\u0442\u0430\u043c\u0438, \u0432\u043c\u0435\u0441\u0442\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e SRTP \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>   \u2014 SRTP \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0436\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 VOIP \u0441\u0435\u0441\u0441\u0438\u0438.<\/p>\n<p>   \u2014 \u0425\u0430\u043a\u0435\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u043c\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043e \u0437\u0432\u043e\u043d\u043a\u0435.<br \/>  \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0435\u043c\u0443 \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0446\u0430\u043f \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0434\u0435\u0432\u0430\u0439\u0441\u0435.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0430\u0442\u0430\u043a\u0443.<\/p>\n<p>  <b>\u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430:<\/b><\/p>\n<p>  <a href=\"https:\/\/github.com\/schirrmacher\/files\/blob\/master\/WhatsApp%20VoIP%20Protocol.pdf\" rel=\"nofollow\">github.com\/schirrmacher\/files\/blob\/master\/WhatsApp%20VoIP%20Protocol.pdf<\/a><br \/>  <a href=\"https:\/\/github.com\/schirrmacher\/files\/blob\/master\/WhatsApp\" rel=\"nofollow\">github.com\/schirrmacher\/files\/blob\/master\/WhatsApp<\/a> <br \/>  <a href=\"https:\/\/github.com\/schirrmacher\/files\/blob\/master\/WhatsAppCore\" rel=\"nofollow\">github.com\/schirrmacher\/files\/blob\/master\/WhatsAppCore<\/a><\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u2013 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0442\u044f\u0436\u0435\u043b\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043a\u0440\u044b\u0442\u044c \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a.<\/p>\n<p>  \u0422\u0443\u043b\u044b \u0442\u0438\u043f\u0430 Frida \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0438 \u0438 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0437\u0430 \u043e\u0447\u0435\u043d\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u0432\u0438\u0434\u0443 \u0447\u0442\u043e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0430\u043a\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430 \u0438\u0437 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430.<\/i><\/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:\/\/habr.com\/ru\/post\/518376\/\"> https:\/\/habr.com\/ru\/post\/518376\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/518376\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2m\/ar\/tj\/2martjou9m_sjyfjctxhjw1_nfq.png\"><\/p>\n<p>  \u0412 \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u044f \u0432\u0441\u043a\u0440\u044b\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u0435\u0439 WhatsApp VoIP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0436\u0435\u0439\u043b\u0431\u0440\u0435\u0439\u043a\u043d\u0443\u0442\u043e\u0433\u043e iOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043d\u0430\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f Whatsapp \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043a \u0441\u0435\u0431\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438\u0437 \u0437\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0445\u0430\u043a\u0435\u0440\u043e\u0432. <br \/>  \u0421 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \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-309700","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/309700","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=309700"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/309700\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}