{"id":5136,"date":"2014-06-17T04:17:45","date_gmt":"2014-06-16T19:17:45","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5136"},"modified":"2014-07-01T22:04:11","modified_gmt":"2014-07-01T13:04:11","slug":"%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%82%ad%e3%83%a3%e3%83%b3%e3%83%97-2014-network-%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae-write-up","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2014\/06\/17\/%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%82%ad%e3%83%a3%e3%83%b3%e3%83%97-2014-network-%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae-write-up\/","title":{"rendered":"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7 2014, Network \u30af\u30e9\u30b9\u306e Write-up"},"content":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002<\/p>\n<p>\u5148\u65e5\u3001IPA \u304c\u4e3b\u50ac\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7 2014 \u306e\u5fdc\u52df\u304c\u7de0\u3081\u5207\u3089\u308c\u307e\u3057\u3066\u3001    <br \/>\u5642\u3067\u306f\u7d50\u69cb\u306a\u500d\u7387\u3060\u3063\u305f\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><a title=\"http:\/\/www.ipa.go.jp\/jinzai\/camp\/2014\/zenkoku2014_sheet2.html\" href=\"http:\/\/www.ipa.go.jp\/jinzai\/camp\/2014\/zenkoku2014_sheet2.html\">http:\/\/www.ipa.go.jp\/jinzai\/camp\/2014\/zenkoku2014_sheet2.html<\/a><\/p>\n<p>\u5fdc\u52df\u7528\u7d19\u306f\u5404\u30af\u30e9\u30b9\u6bce\u306b\u5927\u5909\u96e3\u3057\u3044\u554f\u984c\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001    <br \/>\u305d\u306e\u4e2d\u3067\u3082\u3001\u7279\u306b\u4eca\u56de\u306f\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fb\u30af\u30e9\u30b9\u300d\u306e\u554f\u984c\u304c\u96e3\u3057\u3044\u3068\u3044\u3046\u3053\u3068\u3067     <br \/>\u5c11\u3057\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<hr \/>\n<h3>\u307e\u305a\u306f\u30de\u30b7\u30f3\u3092\u7528\u610f\u3002<\/h3>\n<p>Windows 7 Service Pack1 \u306e\u74b0\u5883\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/01.png\"><img loading=\"lazy\" decoding=\"async\" title=\"01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"01\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/01_thumb.png\" width=\"491\" height=\"351\" \/><\/a><\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/02.png\"><img loading=\"lazy\" decoding=\"async\" title=\"02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"02\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/02_thumb.png\" width=\"497\" height=\"374\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<hr \/>\n<h3>\u554f\u984c\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3066\u307f\u308b<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30fb\u30fb<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/03.png\"><img loading=\"lazy\" decoding=\"async\" title=\"03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"03\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/03_thumb.png\" width=\"487\" height=\"366\" \/><\/a><\/p>\n<p><strong>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\uff01      <br \/><\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u958b\u3044\u3066\u307f\u307e\u3059\u3068\u30fb\u30fb<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/04.png\"><img loading=\"lazy\" decoding=\"async\" title=\"04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"04\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/04_thumb.png\" width=\"501\" height=\"377\" \/><\/a><\/p>\n<p>\u30fb\u30fb\u30fb\u5168\u7136\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3058\u3083\u306a\u3044\u3067\u3059\u306d\u3002    <br \/>\u3053\u308c\u304c\u95c7\u304b\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u304f\u3088\u304f\u3088\u3057\u3066\u3044\u3089\u308c\u307e\u305b\u3093\u306e\u3067\u65e9\u901f\u304c\u3093\u3070\u3063\u3066\u307f\u307e\u3059\u3002    <br \/>\u8aad\u3081\u305d\u3046\u306a\u90e8\u5206\u306b\u3001 \u201cServer : Apache\/2.2.16(debian)\u201d \u3068\u3044\u3046\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u201cApache\u201d \u3068\u3044\u3046\u540d\u524d\u3067\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3084\u3089 <strong><u>Web \u30b5\u30fc\u30d0<\/u><\/strong>\u306e\u3088\u3046\u3067\u3001     <br \/>\u3082\u3057\u304b\u3059\u308b\u3068\u3053\u308c\u306f HTTP \u306e\u901a\u4fe1\u3067\u306f\u7121\u3044\u304b\u3068\u3044\u3046\u3068\u3053\u308d\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><a title=\"http:\/\/httpd.apache.org\/\" href=\"http:\/\/httpd.apache.org\/\">http:\/\/httpd.apache.org\/<\/a><\/p>\n<p>\u307e\u305f\u3001\u5148\u982d\u304c <strong><u>\u201c\uff94\uff83\uff72\u201d \u306b\u306a\u3063\u3066\u3044\u308b<\/u><\/strong>\u3068\u3053\u308d\u304b\u3089\u3001pcap \u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u3053\u3068\u3067\u9593\u9055\u3044\u306a\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<hr \/>\n<h3>\u5207\u308a\u51fa\u3057\u3066\u307f\u308b<\/h3>\n<p>\u5207\u308a\u51fa\u3057\u3066\u307f\u308c\u3070\u4f55\u304b\u5206\u304b\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff01<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/05.png\"><img loading=\"lazy\" decoding=\"async\" title=\"05\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"05\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/05_thumb.png\" width=\"534\" height=\"402\" \/><\/a><\/p>\n<p>HTTP \u306a\u3089 \u201cGET\u201d \u304c\u3042\u308b\u306f\u305a\u3068\u3044\u3046\u3053\u3068\u3067\u305d\u3053\u4ee5\u964d\u3092\u5207\u308a\u51fa\u3057\u3066\u307f\u307e\u3059\u3002    <br \/>\u30fb\u30fb\u30fb\u4f55\u304b\u8aad\u3081\u305d\u3046\u306a\u6587\u5b57\u304c\u7d9a\u304d\u307e\u3059\u304c\u3001\u305d\u308c\u4ee5\u964d\u304c\u8aad\u3081\u307e\u305b\u3093\u3002<\/p>\n<p>\u5e30\u3063\u3066\u304f\u308b\u5185\u5bb9\u3060\u3051\u53d6\u308a\u51fa\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002    <br \/>\u8fd4\u7b54\u90e8\u5206\u306e\u6700\u5f8c\u304c \u201cContent-Type: text\/plain\u201d \u306a\u306e\u3067\u305d\u308c\u3092\u4f7f\u3044\u307e\u3059\u3002     <\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/06.png\"><img loading=\"lazy\" decoding=\"async\" title=\"06\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"06\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/06_thumb.png\" width=\"537\" height=\"404\" \/><\/a><\/p>\n<p>\u30e1\u30e2\u5e33\u3067\u6587\u5b57\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3002\u3069\u3046\u3084\u308924\u6587\u5b57\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/07.png\"><img loading=\"lazy\" decoding=\"async\" title=\"07\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"07\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/07_thumb.png\" width=\"548\" height=\"412\" \/><\/a><\/p>\n<p>\u65e9\u901f\u5207\u308a\u51fa\u3057\u3066\u307f\u307e\u3059\u3002\u3067\u3082\u3084\u3063\u3071\u308a\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u30c7\u30fc\u30bf\u306f\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u30c7\u30fc\u30bf\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/08.png\"><img loading=\"lazy\" decoding=\"async\" title=\"08\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"08\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/08_thumb.png\" width=\"556\" height=\"418\" \/><\/a><\/p>\n<p>\u306a\u306b\u304b\u4f59\u8a08\u306a\u30c7\u30fc\u30bf\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u306b\u3088\u3063\u3066\u5316\u3051\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u304b\u3082\uff01    <br \/>\u30fb\u30fb\u3066\u3053\u3068\u3067\u6570\u5b57\u3067\u30c7\u30fc\u30bf\u3092\u773a\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/09.png\"><img loading=\"lazy\" decoding=\"async\" title=\"09\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"09\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/09_thumb.png\" width=\"557\" height=\"419\" \/><\/a><\/p>\n<p>13,10,13,10..&#160; \u6539\u884c\u3067\u3059\u306d\u3002\u5fc5\u8981\u306a\u3044\u306e\u3067\u524a\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/10.png\"><img loading=\"lazy\" decoding=\"async\" title=\"10\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"10\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/10_thumb.png\" width=\"561\" height=\"422\" \/><\/a><\/p>\n<p>\u3046\u3093\u3002\u826f\u3044\u611f\u3058\u3002\u3053\u308c\u306a\u3089\u8aad\u3081\u308b\u30fb\u30fb\uff1f<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/11.png\"><img loading=\"lazy\" decoding=\"async\" title=\"11\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"11\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/11_thumb.png\" width=\"568\" height=\"427\" \/><\/a><\/p>\n<p>\u3084\u3063\u3071\u308a\u30c0\u30e1\u3067\u3059\u304b\u30fb\u30fb\uff1f<\/p>\n<p>\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002    <br \/>\u5909\u63db\u3059\u308b\u51e6\u7406\u3092\u66f8\u304f\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u3066\u30e1\u30e2\u5e33\u306b\u4e0e\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/12.png\"><img loading=\"lazy\" decoding=\"async\" title=\"12\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"12\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/12_thumb.png\" width=\"565\" height=\"425\" \/><\/a><\/p>\n<p>\u30fb\u30fb\u30fb\u3084\u3063\u3071\u308a\u51fa\u307e\u305b\u3093\u3002\u3061\u3087\u3063\u3068\u4f55\u304b\u898b\u843d\u3068\u3057\u3066\u3044\u308b\u3093\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/13.png\"><img loading=\"lazy\" decoding=\"async\" title=\"13\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"13\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/13_thumb.png\" width=\"568\" height=\"427\" \/><\/a><\/p>\n<p>HTTP \u30d8\u30c3\u30c0\u306e\u3068\u3053\u308d\u306b \u201cContent-Encoding: gzip\u201d \u3068\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u30e1\u30e2\u5e33\u3067\u306f\u305d\u3046\u3044\u3046\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a title=\"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html\" href=\"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html\">http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html<\/a>     <br \/>\u4ed5\u69d8\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u3053\u308c\u306f gzip \u5727\u7e2e\u3092\u610f\u5473\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u6b8b\u308a\u306e\u90e8\u5206\u3092 gzip \u3067\u5c55\u958b\u3055\u305b\u308c\u3070\u30c7\u30fc\u30bf\u304c\u51fa\u307e\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/14.png\"><img loading=\"lazy\" decoding=\"async\" title=\"14\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"14\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/14_thumb.png\" width=\"556\" height=\"418\" \/><\/a><\/p>\n<p>\u30fb\u30fb\u30fb\u3044\u3084\u3001\u51fa\u307e\u305b\u3093\u3002\u3002<\/p>\n<p>\u3069\u3046\u3082\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u901a\u4fe1\u6642\u306b\u30d1\u30b1\u30c3\u30c8\u3067\u5206\u5272\u3055\u308c\u3066\u3044\u308b\u3089\u3057\u304f    <br \/>\u305d\u306e\u307e\u307e\u5f8c\u534a\u306e\u90e8\u5206\u3092\u4e0e\u3048\u3066\u3082\u8aad\u3081\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u78ba\u304b\u306b Content-Length \u3092\u307f\u308b\u3068\u306a\u304b\u306a\u304b\u306b\u5927\u304d\u3044\u5024\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>TCP \u30d1\u30b1\u30c3\u30c8\u306e\u60c5\u5831\u304c\u5206\u304b\u308c\u3070\u30fb\u30fb\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u304c\u3001    <br \/>\u300c\u30aa\u30d7\u30b7\u30e7\u30f3\u30d5\u30a3\u30fc\u30eb\u30c9\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u53ef\u5909\u9577\u306e\u30c7\u30fc\u30bf\u304c\u6700\u5f8c\u306b\u304f\u3063\u3064\u3044\u3066\u3044\u308b\u305f\u3081     <br \/>\u5f8c\u308d\u304b\u3089\u898b\u3064\u3051\u51fa\u3059\u306e\u306f\u554f\u984c\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f pcap \u3092\u982d\u304b\u3089\u8aad\u3080\u304b\u3068\u3057\u3066\u3082\u3001    <br \/>\u3055\u3059\u304c\u306b pcap \u3092\u8aad\u3080\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u3069\u3046\u3057\u305f\u3089\u826f\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<hr \/>\n<h3>pcap \u3092\u8aad\u3080<\/h3>\n<p>\u56f0\u3063\u305f\u3068\u304d\u306f\u4ed5\u69d8\u3092\u898b\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a pcap \u304b\u3089    <br \/><a title=\"http:\/\/wiki.wireshark.org\/Development\/LibpcapFileFormat\" href=\"http:\/\/wiki.wireshark.org\/Development\/LibpcapFileFormat\">http:\/\/wiki.wireshark.org\/Development\/LibpcapFileFormat<\/a><\/p>\n<p>\u6700\u521d\u306b pcap \u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002 (pcap_hdr_s)    <br \/>\u3067\u3059\u304c\u4f59\u308a\u3053\u3053\u306b\u306f\u5fc5\u8981\u306a\u60c5\u5831\u306f\u306a\u3055\u305d\u3046\u3067\u3059\u306e\u3067     <br \/>4+2+2+4+4+4+4 = 0x18 \u5206\u8aad\u307f\u98db\u3070\u3057\u307e\u3059\u3002<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:d3c10795-7264-4212-b576-ef9144d9dd49\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: c;\">typedef struct pcap_hdr_s {\n        guint32 magic_number;   \/* magic number *\/\n        guint16 version_major;  \/* major version number *\/\n        guint16 version_minor;  \/* minor version number *\/\n        gint32  thiszone;       \/* GMT to local correction *\/\n        guint32 sigfigs;        \/* accuracy of timestamps *\/\n        guint32 snaplen;        \/* max length of captured packets, in octets *\/\n        guint32 network;        \/* data link type *\/\n} pcap_hdr_t;<\/pre>\n<\/div>\n<p>&#160;<\/p>\n<p>\u6b21\u306b\u5404\u30d1\u30b1\u30c3\u30c8\u6bce\u306e\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002 (pcaprec_hdr_s)<br \/>\n  <br \/>\u53d6\u5f97\u6642\u9593\u3068\u30d1\u30b1\u30c3\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u4e0a\u306e\u30b5\u30a4\u30ba\u3068\u5b9f\u30b5\u30a4\u30ba\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8aad\u307f\u98db\u3070\u3059\u969b\u3084\u30d1\u30b1\u30c3\u30c8\u3092\u51e6\u7406\u3059\u308b\u969b\u306b\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001<br \/>\n  <br \/>8 \u2013 12 \u306b\u3042\u308b incl_len \u3092\u5207\u308a\u51fa\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:5e96ba0d-c82c-495e-b581-26fa4b9eb4d9\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: c;\">typedef struct pcaprec_hdr_s {\n        guint32 ts_sec;         \/* timestamp seconds *\/\n        guint32 ts_usec;        \/* timestamp microseconds *\/\n        guint32 incl_len;       \/* number of octets of packet saved in file *\/\n        guint32 orig_len;       \/* actual length of packet *\/\n} pcaprec_hdr_t;<\/pre>\n<\/div>\n<p>Little Endian \u306a\u306e\u3067<br \/>\n  <\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:abbb252a-b254-427c-b664-34f921eaf394\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: powershell;\">[System.Bitconverter]::ToInt32($data | Select-Object -Skip (0x18 + 8) -First 4),0)<\/pre>\n<\/div>\n<p>\u3068\u304b\u3059\u308b\u3068\u6570\u5b57\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>incl_len \u3067\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306b\u3042\u308b\u30c7\u30fc\u30bf\u304c1\u3064\u3042\u305f\u308a\u306e\u30d1\u30b1\u30c3\u30c8\u306b\u306a\u308a\u3001<br \/>\n  <br \/>incl_len \u5206\u8aad\u307f\u98db\u3070\u3057\u305f\u5834\u6240\u306b\u306f\u307e\u305f \u30d1\u30b1\u30c3\u30c8\u6bce\u306e\u30d8\u30c3\u30c0\u60c5\u5831\u3068\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h3>\u30d1\u30b1\u30c3\u30c8\u3092\u8aad\u3080<\/h3>\n<p>\u3042\u3068\u306f\u4ed5\u69d8\u66f8\u306b\u5f93\u3063\u3066\u8aad\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u307e\u305a\u306f \u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u30d8\u30c3\u30c0\u304b\u3089<\/strong> <\/p>\n<p><a title=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0107\/05\/news001_3.html\" href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0107\/05\/news001_3.html\">http:\/\/www.atmarkit.co.jp\/ait\/articles\/0107\/05\/news001_3.html<\/a><\/p>\n<p>\u6700\u521d\u306e\u30d7\u30ea\u30a2\u30f3\u30d6\u30eb\u90e8\u5206\u306f\u3069\u3046\u3082\u53d6\u5f97\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u5b9b\u5148\u30a2\u30c9\u30ec\u30b9, \u9001\u4fe1\u5148\u30a2\u30c9\u30ec\u30b9, \u30bf\u30a4\u30d7 \u3063\u3066\u3053\u3068\u3067 6+6+2 = 14 \u30d0\u30a4\u30c8\u5206\u8aad\u307f\u98db\u3070\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u6b21\u306b IP \u30d8\u30c3\u30c0<\/strong> <\/p>\n<p><a title=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0304\/04\/news001_2.html\" href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0304\/04\/news001_2.html\">http:\/\/www.atmarkit.co.jp\/ait\/articles\/0304\/04\/news001_2.html<\/a><\/p>\n<p>\u307e\u305a\u3053\u3053\u306e\u90e8\u5206\u306e\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b\u70ba\u306b\u30d8\u30c3\u30c0\u9577\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n  <br \/>4bit \u3068\u3044\u3046\u3053\u3068\u3067\u30018bit \u5358\u4f4d\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u5f8c\u3067 0x0F \u3092 AND \u3057\u3066\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002 <\/p>\n<p>\u51fa\u3066\u304d\u305f\u6570\u5024\u306f 32bit \u5358\u4f4d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306e\u3067\u305d\u306e\u5024\u306b \u00d74<\/p>\n<p>\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:54074632-6e89-469f-8aa7-e8f2c269b01b\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: powershell;\">($ipheader[0] -band 0xF) * 4<\/pre>\n<\/div>\n<p>&#160;<\/p>\n<p>\u3068\u304b\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30b5\u30a4\u30ba\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<br \/>\n  <br \/>\u30b5\u30a4\u30ba\u3092\u6c42\u3081\u305f\u3089\u3001\u305d\u306e\u30b5\u30a4\u30ba\u5206\u8aad\u307f\u98db\u3070\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u6b21\u306b TCP \u30d8\u30c3\u30c0<\/strong> <\/p>\n<p><a title=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0401\/29\/news080_2.html\" href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/0401\/29\/news080_2.html\">http:\/\/www.atmarkit.co.jp\/ait\/articles\/0401\/29\/news080_2.html<\/a><\/p>\n<p>\u307e\u305a\u3001\u30c7\u30fc\u30bf\u30fb\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8aad\u307f\u307e\u3059\u3002<br \/>\n  <br \/>\u3053\u308c\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6c7a\u3081\u305f\u9001\u53d7\u4fe1\u30c7\u30fc\u30bf\u30fb\u30fb\u304c\u3069\u3053\u304b\u3089\u59cb\u307e\u308b\u304b\u3068\u3044\u3046\u306e\u304c\u66f8\u3044\u3066\u3042\u308a\u3001 <\/p>\n<p>\u4eca\u56de\u6b32\u3057\u3044\u30c7\u30fc\u30bf\u306e\u59cb\u307e\u308b\u4f4d\u7f6e\u304c\u5206\u304b\u308a\u307e\u3059\u3002 <\/p>\n<p>\u4eca\u56de\u306e\u5834\u5408\u306f \u4e0a\u4f4d 4bit \u3068\u3044\u3046\u3053\u3068\u3067\u3001 0xF \u3067 AND \u3057\u305f\u3042\u3068\u3067 \u00f716 \u3092\u884c\u3044\u3001<br \/>\n  <br \/>IP \u30d8\u30c3\u30c0\u3068\u540c\u3058\u304f 32bit \u5358\u4f4d\u306a\u306e\u3067 \u00d74 \u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:241cffe2-65e4-4b7c-a072-67a50fc9e93f\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: powershell;\">(($tcpheader[12] -band 0xf0) \/ 16) *4<\/pre>\n<\/div>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d5\u30e9\u30b0\u3082\u540c\u69d8\u306b\u5207\u308a\u51fa\u3057\u307e\u3059\u3002<br \/>\n  <br \/>[PSH], [ACK] \u3092\u76e3\u8996\u3057\u3066 PSH \u2013 ACK or [PSH,ACK] \u306e\u533a\u9593\u3092\u5207\u308a\u51fa\u3057\u3066\u30c7\u30fc\u30bf\u3068\u3057\u3066\u773a\u3081\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3068\u3057\u3066\u306f \u5148\u307b\u3069\u53d6\u308a\u51fa\u3057\u305f\u30c7\u30fc\u30bf\u30aa\u30d5\u30bb\u30c3\u30c8\uff084bit\uff09\u306e\u76f4\u5f8c\u304b\u3089 12bit \u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n  <br \/>\uff08\u8981\u306f 4bit + 8it\uff09<\/p>\n<p>\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u3053\u3093\u306a\u611f\u3058\uff1a<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:2febe9df-d21c-4bbc-8d5a-9d2a3b98a1f7\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: powershell;\">($tcpheader[12] -band 0xF) * 256 + $tcpheader[13]<\/pre>\n<\/div>\n<p>&#160;<\/p>\n<p>\u5f8c\u306f \u5148\u307b\u3069\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u30fb\u30aa\u30d5\u30bb\u30c3\u30c8\u5206\u3060\u3051\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u98db\u3070\u3057\u307e\u3059\u3002<br \/>\n  <br \/>\u3053\u3053\u307e\u3067\u6765\u308c\u3070\u3053\u3053\u304b\u3089\u5148\u306f HTTP \u306e\u901a\u4fe1\u30c7\u30fc\u30bf\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3084\u3063\u305f\u306d\uff01<\/p>\n<hr \/>\n<h3>HTTP \u3092\u8aad\u3080<\/h3>\n<p>\u4f55\u3067\u3057\u3087\u3046\u304b\u3053\u306e\u3001\u623b\u3063\u3066\u304d\u305f\u611f\u3058\u3068\u9054\u6210\u611f\u3002<\/p>\n<p>\u30de\u30ea\u30aaRPG \u3067\u3082\u3042\u308a\u307e\u3057\u305f\u3088\u306d\u3002<br \/>\n  <br \/>\u30af\u30c3\u30d1\u57ce\u306b\u6700\u521d\u306b\u884c\u3063\u3066\u3001\u306a\u3093\u304b\u5263\u304c\u7a81\u304d\u523a\u3055\u3063\u3066\u30fb\u30fb <\/p>\n<p>\u30de\u30c3\u30d7\u3092\u3050\u308b\u30fc\u3063\u3068\u56de\u3063\u3066\u30af\u30c3\u30d1\u57ce\u306b\u623b\u3063\u3066\u304f\u308b\u611f\u3058\u306e\u3002\u30a2\u30ec\u306b\u4f3c\u3066\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u30fb\u3061\u3087\u3063\u3068\u6642\u4ee3\u304c\u53e4\u3044\u3067\u3059\u304b\u306d\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u3055\u3066\u3002<\/p>\n<p>\u307e\u305a HTTP \u901a\u4fe1\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u3055\u304f\u3063\u3068\u5224\u5b9a\u3057\u307e\u3059\u3002<br \/>\n  <br \/>flag \u3092\u898b\u3066\u3082\u826f\u3044\u3093\u3067\u3059\u304c \u73fe\u5728\u306e\u4f4d\u7f6e\u304c\u6700\u521d\u306b\u53d6\u5f97\u3057\u305f\u30d1\u30b1\u30c3\u30c8\u306e\u30b5\u30a4\u30ba\u3092 <\/p>\n<p>\u30d1\u30b1\u30c3\u30c8\u306e\u982d\u306e\u4f4d\u7f6e\u306b\u8db3\u3057\u5408\u308f\u305b\u305f\u5024\u304c\u4e00\u7dd2\u306a\u3089\u30c7\u30fc\u30bf\u304c\u7121\u3044\u306e\u3067\u6b21\u306e\u30d1\u30b1\u30c3\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u3042\u308b\u5834\u5408\u306b\u306f\u30c7\u30fc\u30bf\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u3068\u306f\u3044\u3063\u3066\u3082\u30c7\u30fc\u30bf\u304c\u53d6\u308c\u3066\u3044\u308b\u304b\u6c17\u306b\u306a\u308b\u30e2\u30f3\u3067\u3059\u3002<br \/>\n  <br \/>\u306a\u306b\u304b\u901a\u4fe1\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u304c\u3042\u308b\u6642\u306b\u305d\u306e\u4e2d\u8eab\u3092\u9069\u5f53\u306b\u8868\u793a\u3055\u305b\u3066\u307f\u308b\u3068\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/15.png\"><img loading=\"lazy\" decoding=\"async\" title=\"15\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"15\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/15_thumb.png\" width=\"564\" height=\"424\" \/><\/a><\/p>\n<p>\u30fb\u30fb\u30fb\u826f\u3044\u611f\u3058\u3067\u3059\u306d\u3002\u826f\u3044\u611f\u3058\u3067\u30c7\u30fc\u30bf\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001Flag \u304c PSH \u3060\u3051\u306e\u9593\u306f\u305d\u306e\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u3066\u3044\u304d\u3001<br \/>\n  <br \/>ACK or PSH,ACK \u304c\u6765\u305f\u3068\u304d\u306b\u30c7\u30fc\u30bf\u304c\u5b8c\u5168\u306b\u9001\u3089\u308c\u305f\u3068\u5224\u65ad\u3057\u3066\u3001\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u304c\u53d6\u308c\u305f\u3089\u3001\u5f8c\u306f\u4e00\u756a\u6700\u521d\u3067\u3084\u3063\u305f\u3088\u3046\u306b HTTP \u30d8\u30c3\u30c0\u3092\u8aad\u307f\u98db\u3070\u3057\u3066\u4e0b\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\u3001<br \/>\n  <br \/>Gzip \u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/16.png\"><img loading=\"lazy\" decoding=\"async\" title=\"16\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"16\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/16_thumb.png\" width=\"561\" height=\"422\" \/><\/a><\/p>\n<p>C# \u306e GzipStream \u304c\u4f7f\u3048\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<br \/>\n  <br \/><a title=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.io.compression.gzipstream(v=vs.110).aspx\" href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.io.compression.gzipstream(v=vs.110).aspx\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.io.compression.gzipstream(v=vs.110).aspx<\/a><\/p>\n<p>&#160;<\/p>\n<p>\u3042\u3068\u306f\u305d\u308c\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3059\u3068\u30fb\u30fb\u3002<br \/>\n  <\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/17.png\"><img loading=\"lazy\" decoding=\"async\" title=\"17\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"17\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/17_thumb.png\" width=\"546\" height=\"410\" \/><\/a><\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\uff01 \u3053\u308c\u306a\u3089\u8aad\u3081\u305d\u3046\u3067\u3059\u3002<br \/>\n  <br \/>\u30fb\u30fb\u30fb\u3067\u3082\u3001\u3053\u3053\u304b\u3089\u307e\u305f\u554f\u984c\u3092\u89e3\u304f\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u6700\u5f8c\u306b\u4eca\u56de\u4f5c\u3063\u305f\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\uff1a<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:afb48139-66fb-451f-a2ac-a2cf5f8ee56b\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: powershell;\">$file = Get-Content \"C:\\Users\\yahihashoo\\Desktop\\000038855.txt\" -Encoding Byte\n$text = New-Object System.String($file,0,$file.Length)\n$p = 0x18 # PCAP \u306e Header \u5206\n$fin = 0\n$stream = New-Object System.IO.MemoryStream\n$output = New-Object System.IO.FileStream \"C:\\Users\\yahihashoo\\Desktop\\question.txt\",([IO.FileMode]::Create),([IO.FileAccess]::Write),([IO.FileShare]::ReadWrite)\n\ndo{\n    $size = [System.BitConverter]::ToInt32(($file | Select-Object -Skip ($p+4+4) -First 4),0) #packet size.\n    $p += 4 * 4 # PCAP \u306e\u5404\u30d1\u30b1\u30c3\u30c8\u5206\n    \n    $packet = ($file | Select-Object -Skip $p -First $size)\n    $packetpos = 6 + 6 + 2 # Ethernet Frame.\n    $srcip = $packet[$packetpos + 12] * 0x1000000 + $packet[$packetpos + 13] * 0x10000 + $packet[$packetpos + 14] * 0x100 + $packet[$packetpos + 15]\n    $dstip = $packet[$packetpos + 16] * 0x1000000 + $packet[$packetpos + 17] * 0x10000 + $packet[$packetpos + 18] * 0x100 + $packet[$packetpos + 19]\n    $packetpos += ($packet[$packetpos] -band 0xF) * 4 # IP Frame.\n    $srcport = $packet[$packetpos] * 256 + $packet[$packetpos+1]\n    $dstport = $packet[$packetpos+2] * 256 + $packet[$packetpos+3]\n    $seq = $packet[$packetpos + 4] * 0x1000000 + $packet[$packetpos + 5] * 0x10000 + $packet[$packetpos + 6] * 0x100 + $packet[$packetpos + 7]\n    $flag = (($packet[$packetpos + 12] -band 0x0f) * 256) + $packet[$packetpos + 13]\n    $packetpos += (($packet[$packetpos + 12] -band 0xf0) \/ 16) * 4\n    if ($packetpos -ne $packet.Length)\n    {\n        $data = $packet | Select-Object -Skip $packetpos\n        $html = [System.Text.Encoding]::ASCII.GetString($data)\n        $htmlpos = $html.IndexOf(\"`r`n`r`n\")\n        if($htmlpos -lt 0)\n        {\n            $htmlpos = 0\n            $htmlbody = $data\n        } else {\n            Write-Host ([System.Text.Encoding]::ASCII.GetString(($data | Select-Object -First $htmlpos)))\n            Write-Host \"---------------------\"\n            $htmlpos += 4\n            $htmlbody = $data | Select-Object -Skip $htmlpos\n        }\n        if($null -ne $htmlbody -and $htmlbody.Length -ne -1)\n        {\n            $stream.Write($htmlbody,0,$htmlbody.Length)\n        }\n        if(($flag -band 0x8) -eq 0x8) #ACK\n        {\n            if($stream.Length -gt 0)\n            {\n                $stream.Position = 0\n                $gzipstream = New-Object System.IO.Compression.GzipStream $stream,([IO.Compression.CompressionMode]::Decompress)\n                $buf = New-Object byte[](1024)\n                do\n                {\n                    $read = $gzipstream.Read($buf,0,1024)\n                    $output.Write($buf,0,$read)\n                }while($read -gt 0)\n                $output.Flush()\n                $gzipstream.Close()\n            }\n            $stream.Close()\n            $stream = New-Object System.IO.MemoryStream\n        }\n    }\n    \n    $p += $size\n}while($p -lt $file.Length)\n$output.Flush()\n$output.Close()<\/pre>\n<\/div>\n<p>\u8aac\u660e\u6587\u4e2d\u3067\u66f8\u3044\u305f\u8aad\u307f\u98db\u3070\u3057\u3088\u308a\u3082\u3001\u82e5\u5e72\u4e01\u5be7\u306b\u8aad\u3093\u3067\u307e\u3059\u3002<br \/>\n  <br \/>\u5b9f\u969b\u306f \u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u304c\u3061\u3083\u3093\u3068\u7d9a\u3044\u3066\u308b\u304b\u3068\u304b\u3001IP, PORT \u3042\u305f\u308a\u306e\u60c5\u5831\u3082\u4f7f\u3063\u3066 <\/p>\n<p>\u5207\u308a\u51fa\u305d\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u4eca\u56de\u306f\u3054\u611b\u656c\u3068\u3044\u3046\u3053\u3068\u3067\u3002 <\/p>\n<p><\/p>\n<p>\uff08\u305f\u3060\u3057\u3001\u51fa\u305b\u308b\u306e\u3067\u3084\u308d\u3046\u3068\u601d\u3048\u3070\u3002\u3002\u3067\u3082\u30d1\u30b1\u30c3\u30c8\u306e\u9806\u756a\u3092\u898b\u3066\u3044\u306a\u3044\u306e\u3067\u9006\u306b\u306a\u3063\u305f\u308a\u3068\u304b\u3059\u308b\u3068\u30c0\u30e1\u3067\u3059\u3057\u3001\u518d\u9001\u3068\u304b\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3084\u3064\u3092\u98df\u3079\u3055\u305b\u3066\u3082\u51e6\u7406\u3067\u304d\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>&#160;<\/p>\n<p>\u305d\u308c\u3068\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e IP \u30a2\u30c9\u30ec\u30b9\u306e\u5024\u3084\u30dd\u30fc\u30c8\u756a\u53f7\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u306a\u3069\u306f<br \/>\n  <br \/>\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3067\u53d6\u308a\u6271\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e00\u3064\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066\u639b\u3051\u5408\u308f\u305b\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u6f14\u7b97\u3067\u6c42\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n  <br \/>\uff08 Linq \u3068\u304b\u4f7f\u3063\u3066\uff14\u30d0\u30a4\u30c8\u51fa\u3057\u3066\u53cd\u8ee2\u3057\u3066\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u3082\u6c42\u307e\u308a\u307e\u3059\u3002\uff09<\/p>\n<p>\u3053\u306e\u8fba\u3092\u6700\u521d\u5fd8\u308c\u3066\u3044\u3066\u3001\u5024\u3092\u53d6\u308a\u51fa\u3059\u306e\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u306f\u79d8\u5bc6\u3002<\/p>\n<p>&#160;<\/p>\n<hr \/>\n<h3>\u3082\u3063\u3068\u305a\u3063\u3068\u7c21\u5358\u306b\uff1a<\/h3>\n<p>\u89e3\u3051\u308b\u3089\u3057\u3044\u3067\u3059\u306d\u3002<br \/>\n  <br \/><a title=\"http:\/\/yagihashoo.com\/archives\/683\" href=\"http:\/\/yagihashoo.com\/archives\/683\">http:\/\/yagihashoo.com\/archives\/683<\/a><\/p>\n<p>\u306a\u3093\u3067\u3082\u3001wireshark \u3068\u3044\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u3048\u3070<br \/>\n  <br \/>\u3059\u3050\u306b\u5185\u5bb9\u304c\u62bd\u51fa\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3002<\/p>\n<p>\u3044\u3084\u30fc\u30fb\u30fb\u3002\u306a\u3093\u3068\u3044\u3046\u304b\u306a\u3093\u3068\u3044\u3046\u304b\u3002\u3002<br \/>\n  <br \/>\u30c4\u30fc\u30eb\u3092\u77e5\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u306d\u3002<\/p>\n<p>&#160;<\/p>\n<hr \/>\n<h3>\u6700\u5f8c\u306b\uff1a<\/h3>\n<p>\u3082\u3061\u308d\u3093\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u306f\u30b8\u30e7\u30fc\u30af\u3067\u3059\u3002<\/p>\n<blockquote lang=\"ja\" class=\"twitter-tweet\">\n<p>\u3084\u304e\u306f\u3057\u3085\u6c0f\u306e\u89e3\u304d\u65b9\u4ee5\u5916\u306e write-up \u3092\u66f8\u3044\u3066\u307f\u308b\u306e\u3082\u3044\u3044\u304b\u3082\u3068\u304b\u3075\u3068\u601d\u3063\u305f<\/p>\n<p>\u2014 \u307f\u3080\u3089 (@mimura1133) <a href=\"https:\/\/twitter.com\/mimura1133\/statuses\/478456601594957824\">2014, 6\u6708 16<\/a><\/p><\/blockquote>\n<blockquote lang=\"ja\" class=\"twitter-tweet\">\n<p><a href=\"https:\/\/twitter.com\/mimura1133\">@mimura1133<\/a> \u8ffd\u52a0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3057\u7e1b\u308a\u3067<\/p>\n<p>\u2014 \u3084\u304e\u306f\u3057\u3085 (@yagihashoo) <a href=\"https:\/\/twitter.com\/yagihashoo\/statuses\/478459375783120897\">2014, 6\u6708 16<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u3053\u3046\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u624b\u524d\u3001\u3084\u3089\u306d\u3070\u3001\u3068\u3002<br \/>\n  <br \/>\u3082\u3061\u308d\u3093 Wireshark \u306f\u666e\u6bb5\u4f7f\u3044\u307e\u3059\u3057\u3001\u666e\u6bb5\u4f7f\u3046\u30de\u30b7\u30f3\u306b\u306f\u3059\u3079\u3066\u5165\u308c\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3046\u7e1b\u308a\u306a\u306e\u3067\u3001Windows 7 \u306e\u30de\u30b7\u30f3\u3092\u4e00\u3064\u65b0\u898f\u3067\u4f5c\u6210\u3057\u3066\u3001<br \/>\n  <br \/>Windows Update \u3092 OFF \u306b\u3057\u3066\u3084\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/18.png\"><img loading=\"lazy\" decoding=\"async\" title=\"18\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"18\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2014\/06\/18_thumb.png\" width=\"538\" height=\"404\" \/><\/a> <\/p>\n<p><\/p>\n<p>PowerShell \u306f\u6700\u521d\u304b\u3089\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u307e\u3057\u305f\u3057\u3001<br \/>\n  <br \/>C:\\Windows\\Microsoft.NET \u4ee5\u4e0b\u306b csc.exe \u3068\u3044\u3046\u5f62\u3067 C# \u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u6700\u521d\u304b\u3089 <\/p>\n<p>\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3082\u77e5\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u30fb\u307e\u3001PowerShell \u306e\u65b9\u304c\u3001\u3088\u308a\u9762\u767d\u305d\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u30fb\u30fb\u30fb\u306a\u3093\u3067\u3053\u3093\u306a\u7121\u99c4\u306a\u4e8b\u3092\u3084\u3063\u305f\u304b\u3063\u3066\u306e\u304c\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<br \/>\n  <br \/>\u300c\u3053\u3093\u306a\u3053\u3068\u3082\u51fa\u6765\u308b\u3093\u3060\u3088\uff01\u300d\u3068\u3001 <\/p>\n<p>MSP (Microsoft Student Partners ) \u306e\u7aef\u304f\u308c\u3068\u3057\u3066\u306e\u610f\u5730\u3001\u3068\u3067\u3082\u8a00\u3044\u307e\u3057\u3087\u3046\u304b\u3002 <\/p>\n<p>\u5927\u9053\u82b8\u3067\u3059\u3054\u3044\u7121\u99c4\u306a\u4e8b\u3092\u771f\u9762\u76ee\u306b\u3084\u308b\u3088\u3046\u306a\u3001 <\/p>\n<p>\u305d\u3093\u306a\u3001\u306a\u3093\u304b\u6c17\u6301\u3061\u3092\u5473\u308f\u3063\u3066\u3082\u3089\u3048\u305f\u3089\u306a\u3068\u601d\u3063\u3066\u3084\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u3082\u3057\u611f\u3058\u3066\u9802\u3051\u305f\u3089\u672c\u671b\u3067\u3059\u3002<\/p>\n<p>&#160;<\/p>\n<p>\n  <br \/>\u305d\u3057\u3066\u30fb\u30fb\u3002<\/p>\n<p>\u3082\u3057\u3053\u306e\u8a18\u4e8b\u3092\u4eca\u5e74\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fb\u30ad\u30e3\u30f3\u30d7\u306e\u5fdc\u52df\u8005\u306e\u65b9\u304c\u898b\u3066\u3044\u3066\u3001<br \/>\n  <br \/>\u5168\u529b\u3067\u7aef\u6298\u3063\u305f\u90e8\u5206\u306e\u5185\u5bb9\u304c\u304d\u3061\u3093\u3068\u5206\u304b\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308c\u3070\u3001 <\/p>\n<p>\u5fdc\u52df\u7528\u7d19\u306f\u3055\u304f\u3055\u304f\u3063\u3068\u66f8\u3051\u305f\u306e\u3067\u306f\u7121\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u662f\u975e\u3068\u3082\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7\u3092\u901a\u3057\u3066\u4eca\u5f8c\u306e\u4eba\u751f\u304c\u5909\u308f\u308b\u3088\u3046\u306a\u3001<br \/>\n  <br \/>\u305d\u3093\u306a\u30b9\u30c6\u30ad\u306a\u4f53\u9a13\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u7948\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002 \u5148\u65e5\u3001IPA \u304c\u4e3b\u50ac\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7 2014 \u306e\u5fdc\u52df\u304c\u7de0\u3081\u5207\u3089\u308c\u307e\u3057\u3066\u3001 \u5642\u3067\u306f\u7d50\u69cb\u306a\u500d\u7387\u3060\u3063\u305f\u305d\u3046\u3067\u3059\u3002 http:\/\/www.ipa.go.jp\/jinzai\/camp\/2014\/zen [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,1],"tags":[527,526,500,525],"class_list":["post-5136","post","type-post","status-publish","format-standard","hentry","category-windows","category-other","tag-network","tag-write-up","tag-500","tag-525"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5136"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5136\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}