{"id":21942,"date":"2022-04-15T17:14:31","date_gmt":"2022-04-15T08:14:31","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=21942"},"modified":"2022-04-20T18:28:55","modified_gmt":"2022-04-20T09:28:55","slug":"2","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/2\/","title":{"rendered":"Amazon EC2\u306bDVWA\u304b\u3089\u653b\u6483\u3057\u3066\u307f\u305f\u3000\uff5e\u4e8b\u524d\u6e96\u5099\u305d\u306e\uff11\uff5e"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u3053\u3093\u306b\u3061\u306f\uff01Sekoguchi\u3067\u3059\u3002<\/p>\n<p>WAF\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u305f\u3081\u3001DVWA\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u653b\u6483\u3057<br \/>\nAWS\u306eWAF\u3092\u4f7f\u3063\u3066\u3001\u906e\u65ad\u3067\u304d\u308b\u304b\u5b9f\u8df5\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306fDVWA\u516c\u958b\u306b\u5fc5\u8981\u306aXAMPP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u69cb\u6210<\/h2>\n<p>AWSWAF\u306b\u30a2\u30bf\u30c3\u30c1\u3067\u304d\u308b\u306e\u304cALB\u3001Cloudfront\u3001APIGateway\u306a\u306e\u3067\u4eca\u56de\u306f<br \/>\n<strong>Internet \u21d2 ALB \u21d2 WAF \u21d2 EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/strong><br \/>\n\u3053\u3061\u3089\u306e\u69cb\u7bc9\u3067\u5b9f\u8df5\u3057\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21952 size-full\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc.png\" alt=\"\" width=\"944\" height=\"850\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc.png 944w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc-300x270.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc-768x692.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/arc-728x656.png 728w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/a>\n<h2>\u624b\u9806\u306e\u6982\u8981<\/h2>\n<p>1.\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u5909\u66f4<br \/>\n2. XAMPP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n3.DVWA\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n4. ALB\u4f5c\u6210<br \/>\n5. WAF\u4f5c\u6210<br \/>\n6. WAF\u52d5\u4f5c\u78ba\u8a8d<\/p>\n<h2>\u5b9f\u884c\u74b0\u5883<\/h2>\n<p>EC2\uff08AmazonLinux\uff12Kernel5.10\uff09<\/p>\n<h2>\u624b\u9806<\/h2>\n<h3>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u5909\u66f4<\/h3>\n<p>\u4eca\u56de\u306fWAF\u306e\u52d5\u4f5c\u78ba\u8a8d\u306e\u305f\u3081\u8ab0\u3067\u3082\u63a5\u7d9a\u3067\u304d\u308b\u8a2d\u5b9a\u306b\u3057\u307e\u3059\u3002<br \/>\nEC2\u3092\u30c7\u30d7\u30ed\u30a4\u5f8cAWS\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bf\u30d6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u62bc\u3057\u307e\u3059\u3002<br \/>\nHTTP\u3067\u63a5\u7d9a\u3057\u305f\u3044\u305f\u3081\u3001\u30a4\u30f3\u30d0\u30a6\u30f3\u30c9\u30eb\u30fc\u30eb\u306e\u8ffd\u52a0\u3067\u30bf\u30a4\u30d7\u3092HTTP\u3092\u9078\u3073\u30bd\u30fc\u30b9\u30920.0.0.0\/0\u306b\u3059\u308b\u3068HTTP\u304b\u3089\u8ab0\u3067\u3082\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>XAMPP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>XAMPP\u306f\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d5\u30ea\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<br \/>\nDVWA\u3092\u516c\u958b\u3059\u308bWeb\u30b5\u30fc\u30d0\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5f79\u5272\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nEC2\u3092\u8d77\u52d5\u3057\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<br \/>\nwget\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044 XAMPP\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p><code>wget https:\/\/www.apachefriends.org\/xampp-files\/7.2.2\/xampp-linux-x64-7.2.2-0-installer.run<\/code><\/p>\n<p>chmod\u3000\uff0bx\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306e\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<p><code>chmod +x xampp-linux-x64-7.2.2-0-installer.run<\/code><\/p>\n<p>sudo\u30b3\u30de\u30f3\u30c9\u3067\u7279\u6a29\u3067\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p><code>sudo .\/xampp-linux-x64-7.2.2-0-installer.run<\/code><br \/>\n\u4e0b\u56f3\u306e\u3088\u3046\u306bYES\u304bNO\u3067\u805e\u304b\u308c\u308b\u306e\u3067Y\u3092\u5165\u529b<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21949 size-full\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1.png\" alt=\"\" width=\"889\" height=\"865\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1.png 889w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1-300x292.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1-768x747.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP1-728x708.png 728w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/a>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7d42\u4e86\u3057\u305f\u3089\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067XAMPP\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>sudo \/opt\/lampp\/lampp start<\/code><\/p>\n<p>XAMPP: Starting Apache...already running.<br \/>\nXAMPP: Starting MySQL...ok.<br \/>\nXAMPP: Starting ProFTPD...ok<\/p>\n<p>\u4e0a\u8a18\u304c\u3067\u308c\u3070XAMPP\u306f\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\u306e<strong>\u30d1\u30d6\u30ea\u30c3\u30afIPv4 DNS<\/strong>\u306e\u30aa\u30fc\u30d7\u30f3\u30a2\u30c9\u30ec\u30b9\u3092\u62bc\u3057\u307e\u3059\u3002\u3000\u3000\u3000\u3000Https\u63a5\u7d9a\u306e\u305f\u3081\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u304c\u51fa\u3066\u304d\u307e\u3059\u306e\u3067\u3001URL\u3092Https\u304b\u3089Http\u3078\u5909\u66f4\u3057\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u4e0b\u56f3\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-21953 size-large\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-1024x468.png\" alt=\"\" width=\"728\" height=\"333\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-1024x468.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-300x137.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-768x351.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-1536x702.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP-728x333.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/04\/XAMPP.png 1699w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306fEC2\u306bDVWA\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306eXAMPP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3057\u305f\u3002<br \/>\nLinux\u306e\u30b3\u30de\u30f3\u30c9\u304c\u4eca\u5f8c\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u306e\u3067\u5b9f\u969b\u306b\u4f7f\u3044\u306a\u304c\u3089\u899a\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u56de\u306fDVWA\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\uff01Sekoguchi\u3067\u3059\u3002 WAF\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u305f\u3081\u3001DVWA\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u653b\u6483\u3057 AWS\u306eWAF\u3092\u4f7f\u3063\u3066\u3001\u906e\u65ad\u3067\u304d\u308b\u304b\u5b9f\u8df5\u3057\u307e\u3057\u305f\u3002 \u4eca\u56de\u306fDVWA\u516c\u958b\u306b\u5fc5\u8981\u306aXAMPP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u69cb&#8230;<\/p>\n","protected":false},"author":200,"featured_media":21990,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=21942","footnotes":""},"categories":[20,116,72],"tags":[],"class_list":{"0":"post-21942","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-waf","9":"category-vulnerable","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/200"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=21942"}],"version-history":[{"count":9,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21942\/revisions"}],"predecessor-version":[{"id":21977,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21942\/revisions\/21977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/21990"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=21942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=21942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=21942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}