Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20191011_devio_osaka.pdf

sutetotanuki
October 11, 2019
2.3k

 20191011_devio_osaka.pdf

sutetotanuki

October 11, 2019
Tweet

Transcript

  1. )551ͷओͳྲྀΕ  1045QBUI)551aSaO $POOFDUJPODMPTFaSaO $POUFOU-FOHUIaSaO $POUFOU5ZQFUFYUIUNMaSaO aSaO ʜ3FRVFTU#PEZʜ )5510,aSaO $POOFDUJPODMPTFaSaO

    $POUFOU-FOHUIaSaO $POUFOU5ZQFUFYUIUNMaSaO aSaO ʜ3FTQPOTF#PEZʜ ϦΫΤετ Ϩεϙϯε ΫϥΠΞϯτ ओʹϒϥ΢β ͔ΒϦΫΤετΛૹ৴͠ɺͦΕΛड͚ औͬͨαʔόʔ͕ϦΫΤετΛղੳ͠ϨεϙϯεΛฦ͢
  2. )551ͷओͳྲྀΕ  1045QBUI)551aSaO $POOFDUJPODMPTFaSaO $POUFOU-FOHUIaSaO $POUFOU5ZQFUFYUIUNMaSaO aSaO ʜ3FRVFTU#PEZʜ )5510,aSaO $POOFDUJPODMPTFaSaO

    $POUFOU-FOHUIaSaO $POUFOU5ZQFUFYUIUNMaSaO aSaO ʜ3FTQPOTF#PEZʜ ϦΫΤετ Ϩεϙϯε ΫϥΠΞϯτ ओʹϒϥ΢β ͔ΒϦΫΤετΛૹ৴͠ɺͦΕΛड͚ औͬͨαʔόʔ͕ϦΫΤετΛղੳ͠ϨεϙϯεΛฦ͢ ϝιου ϓϩτίϧ ύε #PEZͷαΠζ #ZUF ίωΫγϣϯͷऔΓѻ͍ ,FFQBMJWFίωΫγϣϯͷҡ࣋ DMPTF௨৴ޙ੾அ͢Δ
  3. (&5)551QBUIaSaO $POOFDUJPO6QHSBEFaSaO 6QHSBEFXFCTPDLFUaSaO aSaO 8FC4PDLFUͱ͸  )5514XJUDIJOH1SPUPDPMTaSaO 6QHSBEFXFCTPDLFUaSaO $POOFDUJPO6QHSBEFaSaO aSaO

    ϦΫΤετ Ϩεϙϯε )551Ͱར༻͍ͯͨ͠51$ηογϣϯΛ࢖ͬͯɺίωΫγϣϯΛҡ ࣋ͨ͠εςʔτϑϧͳσʔλͷૹड৴Λߦ͏ͨΊͷϓϩτίϧ
  4. (&5)551QBUIaSaO $POOFDUJPO6QHSBEFaSaO 6QHSBEFXFCTPDLFUaSaO aSaO 8FC4PDLFUͱ͸  )5514XJUDIJOH1SPUPDPMTaSaO 6QHSBEFXFCTPDLFUaSaO $POOFDUJPO6QHSBEFaSaO aSaO

    ϦΫΤετ Ϩεϙϯε )551ϔομΛར༻͠ɺϓϩτίϧͷΞοϓάϨʔυ ม׵ Λߦ͏ )551Ͱར༻͍ͯͨ͠5$1ίωΫγϣϯͷ࢖͍ํ͚ͩΛม͑Δ ίωΫγϣϯͷऔΓѻ͍ ,FFQBMJWFίωΫγϣϯͷҡ࣋ DMPTF௨৴ޙ੾அ͢Δ 6QHSBEFϓϩτίϧΛΞοϓάϨʔυ 6QHSBEF͢Δϓϩτίϧ
  5. 8FC4PDLFUͷϑϨʔϜ  0 1 2 3 0 1 2 3

    4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-------+-+-------------+-------------------------------+ |F|R|R|R| opcode|M| Payload len | Extended payload length | |I|S|S|S| (4) |A| (7) | (16/64) | |N|V|V|V| |S| | (if payload len==126/127) | | |1|2|3| |K| | | +-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - + | Extended payload length continued, if payload len == 127 | + - - - - - - - - - - - - - - - +-------------------------------+ | |Masking-key, if MASK set to 1 | +-------------------------------+-------------------------------+ | Masking-key (continued) | Payload Data | +-------------------------------- - - - - - - - - - - - - - - - + : Payload Data continued ... : + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | Payload Data continued ... | +---------------------------------------------------------------+ 8FC4PDLFUͰ͸ɺ௨৴͢ΔσʔλΛϑϨʔϜͱ͍͏୯ҐͰૹड৴͠ɺ ίωΫγϣϯΛҡ࣋ͨ͠··ɺԿճ΋ૹड৴͢Δ͜ͱ͕ՄೳʹͳͬͯΔ
  6. 8FC4PDLFUͷϑϨʔϜ  0 1 2 3 0 1 2 3

    4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-------+-+-------------+-------------------------------+ |F|R|R|R| opcode|M| Payload len | Extended payload length | |I|S|S|S| (4) |A| (7) | (16/64) | |N|V|V|V| |S| | (if payload len==126/127) | | |1|2|3| |K| | | +-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - + | Extended payload length continued, if payload len == 127 | + - - - - - - - - - - - - - - - +-------------------------------+ | |Masking-key, if MASK set to 1 | +-------------------------------+-------------------------------+ | Masking-key (continued) | Payload Data | +-------------------------------- - - - - - - - - - - - - - - - + : Payload Data continued ... : + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | Payload Data continued ... | +---------------------------------------------------------------+ ϖΠϩʔυσʔλͷछྨ ςΩετϑϨʔϜɺ όΠφϦϑϨʔϜ ౳͕͋Δ ίωΫγϣϯͷऴྃΛද͢ DMPTF΋͜͜Ͱࢦఆ͢Δ ϖΠϩʔυσʔλͷαΠζ ͜ͷαΠζ෼͚ͩσʔλΛ ಡΈࠐΉ αΠζ෼͚ͩετϦʔϜ͔ΒಡΉ
  7. .255ͷϝοηʔδϑΥʔϚοτ  .255Ͱ͸ݻఆϔομʔͱϖΠϩʔυͱ͍͏ߏ੒ͰϝοηʔδϑΥʔϚοτʹ ͳ͍ͬͯΔ Ϗοτ     

       όΠτ ϝοηʔδɾλΠϓ %61ϑϥά 2P4Ϩϕϧ 3&5"*/ όΠτ ࢒Γͷ௕͞ όΠτʙ 1BZMPBE ʜ ʜ
  8. .255ͷϝοηʔδϑΥʔϚοτ  .255Ͱ͸ɺ௨৴͢ΔσʔλΛϝοηʔδͱ͍͏୯ҐͰૹड৴͠ɺ ίωΫγϣϯΛҡ࣋ͨ͠··ɺԿճ΋ૹड৴͢Δ͜ͱ͕ՄೳʹͳͬͯΔ Ϗοτ     

       όΠτ ϝοηʔδɾλΠϓ %61ϑϥά 2P4Ϩϕϧ 3&5"*/ όΠτ ࢒Γͷ௕͞ όΠτʙ 1BZMPBE ʜ ʜ ϝοηʔδͷछྨ $0//&$5 ઀ଓཁٻ ɺ $0//"$, ઀ଓཁٻԠ౴ ɺ 16#-*4) ૹ৴ ɺ 46#4$3*#& ड৴ ɺ %*4$0//&$5 ੾அ  ౳͕͋Δ ࢒Γͷ௕͞ͷ αΠζ෼͚ͩσʔλΛ ಡΈࠐΉ αΠζ෼͚ͩετϦʔϜ͔ΒಡΉ
  9. "84*P5ͷ੍ݶ  Πϕϯτ ੍ݶ ಉ࣌઀ଓ਺   ඵ͋ͨΓͷ৽ن઀ଓ਺  ແ௨৴઀ଓͷλΠϜΞ΢τ

    ʙඵͷؒͰΩʔϓΞϥΠϒΛνΣοΫ͠ΩʔϓΞ ϥΠϒͷִؒͷഒʹୡͨ͠ͱ͖ʹ੾அ 8FC4PDLFUͷ઀ଓ࣌ؒ ࣌ؒ "84ΞΧ΢ϯτ͋ͨΓͷඵؒͷ 1VCMJTIͰ͖Δ਺