假设现在已经拥有一台内网[域]机器,取名X-007.

1-1.内网[]信息收集

A.本机X-007信息收集.

  1. [+]------用户列表[Windows用户列表/邮件用户/...]
  2. ---->分析Windows用户列表,不要忽略administrator.
  3. ---->分析邮件用户,内网[域]邮件用户,通常就是内网[域]用户,例如:owa
  4. [+]------进程列表
  5. ---->分析杀毒软件/安全监控工具等
  6. ---->邮件客户端
  7. ---->VPN
  8. [+]------服务列表
  9. ---->与安全防范工具有关服务[判断是否可以手动开关等]
  10. ---->存在问题的服务[权限/漏洞]
  11. [+]------端口列表
  12. ---->开放端口对应的常见服务/应用程序[匿名/权限/漏洞等]
  13. ---->利用端口进行信息收集,建议大家深入挖掘[NETBIOS,SMB等]
  14. [+]------补丁列表
  15. ---->分析Windows补丁
  16. ---->第三方软件[Java/Oracle/Flash等]漏洞
  17. [+]------本机共享[域内共享很多时候相同]
  18. ---->本机共享列表/访问权限
  19. ---->本机访问的域共享/访问权限
  20. [+]------本地用户习惯分析
  21. ---->历史记录
  22. ---->收藏夹
  23. ---->文档等

B.扩撒信息收集

  1. [+]------利用本机获取的信息收集内网[域]其他机器的信息.
  2. ----用户列表/共享/进程/服务等.[参考上面]
  3.  
  4. [+]------收集Active Directory信息
  5. ----最好是获取AD副本.  
  1. ------------------------------ 常见信息收集命令----------------------------------
  2. net user ------> 本机用户列表
  3. net localhroup administrators ------> 本机管理员[通常含有域用户]
  4. net user /domain ------> 查询域用户
  5. net group /domain ------> 查询域里面的工作组
  6. net group "domain admins" /domain ------> 查询域管理员用户组
  7. net localgroup administrators /domain ------> 登录本机的域管理员
  8. net localgroup administrators workgroup\user001 /add ----->域用户添加到本机
  9. net group "Domain controllers" -------> 查看域控制器(如果有多台)
  10. ----------------------------------------------------------------------------------------
  11. ipconfig /all ------> 查询本机IP段,所在域等
  12. net view ------> 查询同一域内机器列表
  13. net view /domain ------> 查询域列表
  14. net view /domain:domainname -----> 查看workgroup域中计算机列表
  15. -------------------第三方信息收集-----------------
  16. NETBIOS 信息收集工具
  17. SMB信息收集
  18. 空会话信息收集
  19. 端口信息收集
  20. 漏洞信息收集
  21. ……

如果可能,建议弄一张内网拓扑图,这样方便下面的渗透工作.

1-2.内网[]渗透

[推荐阅读]

  1. 黑客大曝光-前三章
  2. 内网渗透 by 樱木花道
  3. Microsoft-word-pen-testing-windows-active-directory
  4. Pen-testing-windows-active-directory
  5. Windows Privilege Escalation Part 1
  6. Windows Privilege Escalation Part 2

内网[域]渗透,不外乎获取内网[域]最高权限.
通常做法就是拿到某个域管理员的口令,然后控制域服务器,获取更多的信息.
如何获取域管理员口令,做法可能各不相同.

上次发了一篇文章—【再探内网(域)渗透】,讨论的人不少,比较开心.但是,总有一种感觉,那就是大家话到嘴边就停住了,让人很心急.

希望在此能够通过我的破文,引起渗透爱好者的讨论.了解域渗透的兄弟姐妹,请不要吝啬自己的技术,真心希望大家能分享一下自己渗透中的点点滴滴.请指点一下那些一直在努力的花朵们.

如果可能,希望大家续贴发表自己的渗透心得,让内网渗透能够成为专题贴…..在此先献上一朵小红花.

欢迎来信指点:hap.ddup[at]gmail.com

============================================================

内网(域)渗透–1.基本命令

————————————————————————————————————

  1. ipconfig /all ------ 查询本机IP段,所在域等
  2. net user ------ 本机用户列表
  3. net localhroup administrators ------ 本机管理员[通常含有域用户]
  4. net user /domain ------ 查询域用户
  5. net group /domain ------ 查询域里面的工作组
  6. net group "domain admins" /domain ------ 查询域管理员用户组
  7. net localgroup administrators /domain ------ 登录本机的域管理员
  8. net localgroup administrators workgroup\user001 /add ------域用户添加到本机
  9. net group "domain controllers" /domain ------ 查看域控制器(如果有多台)
  10. net time /domain ------ 判断主域,主域服务器都做时间服务器
  11. net config workstation ------ 当前登录域
  12. net session ------ 查看当前会话
  13. net use \\ip\ipc$ pawword /user:username ------ 建立IPC会话[空连接-***]
  14. net share ------ 查看SMB指向的路径[即共享]
  15. net view ------ 查询同一域内机器列表
  16. net view \\ip ------ 查询某IP共享
  17. net view /domain ------ 查询域列表
  18. net view /domain:domainname ------ 查看workgroup域中计算机列表
  19. net start ------ 查看当前运行的服务
  20. net accounts ------ 查看本地密码策略
  21. net accounts /domain ------ 查看域密码策略
  22. nbtstat A ip ------netbios 查询
  23. netstat an/ano/anb ------ 网络连接查询
  24. route print ------ 路由表

=============================================================

  1. dsquery computer ----- finds computers in the directory.
  2. dsquery contact ----- finds contacts in thedirectory.
  3. dsquery subnet ----- finds subnets in thedirectory.
  4. dsquery group ----- finds groups in thedirectory.
  5. dsquery ou ----- finds organizationalunits in the directory.
  6. dsquery site ----- finds sites in thedirectory.
  7. dsquery server ----- finds domain controllers inthe directory.
  8. dsquery user ----- finds users in thedirectory.
  9. dsquery quota ----- finds quota specificationsin the directory.
  10. dsquery partition ----- finds partitions in thedirectory.
  11. dsquery * ----- finds any object inthe directory by using a generic LDAP query.
  12. dsquery server domain Yahoo.com | dsget serverdnsname site ---搜索域内域控制器的DNS主机名和站点名
  13. dsquery computer domainroot name *-xp limit 10----- 搜索域内以-xp结尾的机器10
  14. dsquery user domainroot name admin* -limit ---- 搜索域内以admin开头的用户10
  15. ……
  16. ……
  17. [注:dsquery来源于Windows Server 2003 Administration Tools Pack]

=============================================================

  1. tasklist /V ----- 查看进程[显示对应用户]
  2. tasklist /S ip /U domain\username /P /V ----- 查看远程计算机进程列表
  3. qprocess * ----- 类似tasklist
  4. qprocess /SERVER:IP ----- 远程查看计算机进程列表
  5. nslookup qt-MX Yahoo.com ----- 查看邮件服务器
  6. whoami /all ----- 查询当前用户权限等
  7. set ----- 查看系统环境变量
  8. systeminfo ----- 查看系统信息
  9. qwinsta ----- 查看登录情况
  10. qwinsta /SERVER:IP ----- 查看远程登录情况
  11. fsutil fsinfo drives ----- 查看所有盘符
  12. gpupdate /force ----- 更新域策略

=============================================================

  1. wmic bios ----- 查看bios信息
  2. wmic qfe ----- 查看补丁信息
  3. wmic qfe get hotfixid ----- 查看补丁-Patch
  4. wmic startup ----- 查看启动项
  5. wmic service ----- 查看服务
  6. wmic os ----- 查看OS信息
  7. wmic process get caption,executablepath,commandline
  8. wmic process call create process_name (executes a program)
  9. wmic process where name=”process_name call terminate (terminates program)
  10. wmic logicaldisk where drivetype=3 get name, freespace, systemname, filesystem, size,
  11. volumeserialnumber (hard drive information)
  12. wmic useraccount (usernames, sid, and various security related goodies)
  13. wmic useraccount get /ALL
  14. wmic share get /ALL (you can use ? for gets help ! )
  15. wmic startup list full (this can be a huge list!!!)
  16. wmic /node:"hostname" bios get serialnumber (this can be great for finding warranty info about target)

———————————————————————————————————————————-

Password hashes dump tools                         ————–  抓hash工具列表[大集合]

Windows常用内容渗透命令的更多相关文章

  1. Windows 常用的 CMD 命令

    Ø  简介 本文主要记录 Windows 下一些常用的 CMD 命令,俗话说好记性不如烂笔头. 1.   help 查看 cmd 命令帮助信息(包括所有的 cmd 命令) 2.   设置 cmd 进入 ...

  2. Windows常用的网络命令

    命令 说明 ipconfig 查看网络配置的信息 ping 测试网络是否连通 tracert 网络诊断工具,可以列出分组经过的路由节点 net 有添加用户.开启服务等功能 netstat 显示协议统计 ...

  3. Windows 常用的运行命令

    1. 打开程序 1)   calc                    计算器 2)   notepad                 记事本 3)   write                 ...

  4. windows常用的cmd命令和常用操作。

    这几日部署Jenkins,牵扯到很多东西,比如用到许多cmd命令和Linux命令.查找比较花时间,因此将查看的文档留下,以避免下次重新查找浪费时间. Windows cmd命令: http://blo ...

  5. Windows常用的DOS命令

    cleanmgr–打开磁盘清理工具compmgmt.msc---计算机管理conf—-启动 netmeetingcharmap–-启动字符映射表calc—-启动计算器chkdsk.exe–-Chkds ...

  6. windows常用net use命令

    net share :查看本地主机的共资源 nbtstat -A IP :得到远程主机的用户列表 net user c:/del 删除映射的C盘,其它盘类推 net user * /del 删除全部映 ...

  7. Windows常用的CMD命令

    mspaint 打开画图 write 打开写字板 explorer 打开文件资源管理器 notepad 打开记事本 devmgmt.msc 打开设备管理器 regedit 打开注册表编辑器 Mscon ...

  8. Windows常用的一些DOS命令整理

    Windows常用的一些DOS命令整理.. MS DOS 命令大全 ---清空Dos屏幕使用命令:cls -- Dos切换当前目录到D盘:cd d: 一.基础命令 1 dir 无参数:查看当前所在目录 ...

  9. Windows常用的一些DOS下的CMD命令整理

    Windows常用的一些DOS下的CMD命令整理... -------------- 正斜杠--/////-----向右倒--网址正斜杠反斜杠--\\\\------向左倒--文件路径反斜杠 DOS命 ...

随机推荐

  1. css3 导入字体

    在CSS中导入字体或是字体ICON @font-face{ src: url("具体的字体地址"), url("具体的字体地址"); }

  2. python 列表的递归求和

    def list_sum(num_List): : ] else: ] + list_sum(num_List[:]) print(list_sum([, , , , ]))

  3. 173. Binary Search Tree Iterator -- 迭代器

    Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the ro ...

  4. HDU 5186 zhx's submissions 模拟,细节 难度:1

    http://acm.hdu.edu.cn/showproblem.php?pid=5186 题意是分别对每一位做b进制加法,但是不要进位 模拟,注意:1 去掉前置0 2 当结果为0时输出0,而不是全 ...

  5. iOS UILabel两端对齐的实现(可包括中英文/数字)

    - (void)conversionCharacterInterval:(NSInteger)maxInteger current:(NSString *)currentString withLabe ...

  6. mongdb分布式

    搭建高可用mongodb集群(一)——配置mongodb Posted on 17 十一月, 2013 by lanceyan | 21 Replies 在大数据的时代,传统的关系型数据库要能更高的服 ...

  7. 各开源 bbs 程序比较

    主要是集中在 php 开源轻巧的程序. 搜索到一个逼乎的一个帖子:https://www.zhihu.com/question/20655704 ,顺藤摸瓜 下. carbon forum 第一个测试 ...

  8. 458 - The Decoder & C语言gets函数,字符输出输出 & toascii()

    Write a complete program that will correctly decode a set of characters into a valid message. Your p ...

  9. Java移位运算符 “

    版权声明:本文为博主原创文章.未经博主同意不得转载. https://blog.csdn.net/zjx409/article/details/37569055 左移运算符(<<) 基本使 ...

  10. [LeetCode系列] K节点倒序问题迭代解法

    给定链表和整数k, 使用in-space方法将链表按k个为一组进行倒序, 如果剩余个数不足k个则保留其原始顺序. 如给定1->2->3->4->5, k = 2, 需要返回 2 ...