默认计划
929人加入学习
(16人评价)
安全测试被动信息收集

购买过Kali Linux渗透测试、武官课程包、安全技术会员课程的学员不要再买此课程

价格 ¥ 300.00
该课程属于 高校公益行 | 网络安全实践训练营 请加入后再学习

·DNS查询

  Google

  baidu

  bing

  Yahoo

  Brute tarce
解析IP地址(查询数据库)
联系人
报告
API               

例:
搜索新浪相关的主机记录

> search google
> show options
> show info
 > set SOURCE sina.com    //指定源为sina.com
> run

> search baidu   
> use recon/domains-hosts/baidu_site
> show options
> run

> show hosts  //查看记录生成的host表
> query select * from hosts  //也可查询
> query select * from hosts where host like '%www%'


> search brut  //爆破主机模块
> use recon/domains-hosts/brute_hosts
> show options
> set SOURSE sinsa
> run

> query select * from hosts where host like '%sina.com.cn%'

> search res    //resolve模块
需要指定域名解析ip地址
> set SOURSE query select  host from hosts where host like  '%sina.com.cn%'
> run
> show hosts


查看有哪些报告模块
> search report
> use reporting/html
> show options
> set CREATOR Fanghong.yuan
> set CUSTOMER SINA.COM
> set  FILENAME  /root/Desktop/sina.html
> show options
> run
> search contac    //联系人
 

[展开全文]

第六章  被动信息收集

一、被动信息收集

ip地址段

域名信息

邮件地址

文档图片数据

公司地址

公司组织架构

联系电话/传真号码

人物姓名/职务

目标系统使用的技术架构

公开的商业信息

二、信息用途

用信息描述目标

发现

社会工程学攻击

物理缺口

三、信息收集——DNS  

DNS信息收集——NSLOOKUP

nslookup www.sina.com

• server

• type=amxnsany

• nslookup -type=ns example.com 156.154.70.22

[展开全文]

DNS查询

 Google

Baidu

Bing

Yahoo

 

[展开全文]

被动信息收集

公开渠道可获得的信息 
与目标系统不产生直接交互 
尽量避免留下一切痕迹 
OSINT 
美国军方:http://www.fas.org/irp/doddir/army/atp2-22-9.pdf 
北大西洋公约组织:http://infoemation-retrieval.info/docs/NATO-OSINT.html

信息收集内容

IP地址段 
域名信息 
邮件地址 
文档图片数据 
公司地址 
公司组织架构 
联系电话/传真号码 
人员姓名/职务 
目标系统使用的技术架构 
公开的商业信息

信息用途

用信息描述目标 
发现 
社会工程学攻击 
物理缺口

信息收集——DNS

域名解析成IP地址

域名与FQDN(完全限定域)的区别: 
域名: baidu.com 
FQDN: www.baidu.com 
域名记录:

  • A:主机记录
  • C name:别名记录
  • NS:域名服务器的地址记录
  • MX:邮件交换记录
  • PTR:反向解析
  • spf:文本类型记录

域名解析流程: 

DNS信息收集——NSLOOKUP

这个命令是一个跨平台命令,在windows和linux上都有

  • nslookup www.sina.com //查询ip地址,自动判断结果类型,进行逐层查询
root@kali:~# nslookup      //键入命令打开nslookup
> www.sina.com              //输入 www.sina.com 解析
Server:     192.168.25.2    //域名服务器地址
Address:    192.168.25.2#53

Non-authoritative answer:
www.sina.com    canonical name = us.sina.com.cn.            //别名记录
us.sina.com.cn  canonical name = spool.grid.sinaedge.com.  
Name:   spool.grid.sinaedge.com
Address: 218.30.66.248                                      //ip地址
> us.sina.com.cn
Server:     192.168.25.2
Address:    192.168.25.2#53

Non-authoritative answer:
us.sina.com.cn  canonical name = spool.grid.sinaedge.com.
Name:   spool.grid.sinaedge.com
Address: 218.30.66.248
> set type=mx        //设置查询类型
> sina.com
Server:     192.168.25.2
Address:    192.168.25.2#53

Non-authoritative answer:
sina.com    mail exchanger = 10 freemx2.sinamail.sina.com.cn.
sina.com    mail exchanger = 10 freemx3.sinamail.sina.com.cn.
sina.com    mail exchanger = 5 freemx1.sinamail.sina.com.cn.

Authoritative answers can be found from:
freemx2.sinamail.sina.com.cn    internet address = 113.108.216.47
freemx3.sinamail.sina.com.cn    internet address = 60.28.113.250
freemx1.sinamail.sina.com.cn    internet address = 60.28.113.250
> 
  • server //不同域名服务器解析的IP可能不一样
  • type=a、mx、ns、any(任何类型)
  • nslookup -type=ns exmaple.com 156.154.70.22

dns信息收集——DIG

dig @8.8.8.8 www.sina.com 
dig www.sina.com any 
反向查询:dig +noall +answer -x 8.8.8.8 
bind版本信息:dig +noall +answer txt chaos VERSION.BIND @ns3.dnsv4.com 
DNS追踪:dig +trace example.com 
DNS区域传输

  • dig @ns1.example.com example.com axfr
  • host -T -l sina.com 8.8.8.8 
    DNS字典爆破

    • fierce -dnsserver 8.8.8.8 -dns sina.com.cn -wordlist a.txt
    • dnsdict6 -d4 -t 16 -x sina.com
    • dnsenum -f dnsbig.txt -dnsserver 8.8.8.8 sina.com -o sina.xml
    • dnsmap sina.com -w dns.txt
    • dnsmap -d sina.com –lifetime 10 -t brt -D dnsbig.txt
    • dnsrecon -t std -d sina.com 
      DNS注册信息

    • Whois

    • whois -h whois.apnic.net 192.0.43.10 

搜索引擎

公司新闻动态 
重要雇员信息 
机密文档/网络拓扑 
用户名密码目标 
系统软硬件技术架构

shodan

搜索联网的设备 
banner:http、ftp、ssh、telnet 
https://www.shodan.io/ 
常见filter:

  • net:(192.168.20.1) //限定ip段
  • city //限定城市
  • country(CN、US) //限定国家
  • port(80,21,22,23) //端口
  • os //操作系统
  • Hostname:baidu.com //主机或域名
  • server

例子:

google

google hack 之 查询语法 
intitle: 
intext: 
site: 
inurl: 
filetype: 
实例: 
intitle:”netbotz appliance” “ok” 
inurl /admin/login.php 
inurl:qq.txt 
filetype:xls “username | password” 
inurl:ftp “password” filetype:xls site:baidu.com 
inurl:Service.pwd

http://exploit-db.com/google-dorks 
指令大全

YANDEX

用户信息

邮件、主机 
theharvester

  • theharvester -d sina.com -l 300 -b google

文件 
metagoofil 
metagoofil -d microsoft.com -t pdf -l 200 -o test -f 1.html

maltego 
账号注册 
实践

其他途径

社交网络 
工商注册 
新闻组/论坛 
招聘网站 
收集其他网站的信息的网站:http://www.archive.org/web/web.php

个人专属的密码字典 
按个人信息生成其专属的密码字典

图片信息 metadata 
Exif 
Foca –windows

全特性的web侦察框架——RECON-NG

基于python开发 
web信息搜索框架 
命令格式与msf一致 
使用方法:

  • 模块
  • 数据库
  • 报告


[展开全文]

msf一致可以使用show options  search

[展开全文]

授课教师

安全经理

课程特色

视频(20)
下载资料(1)