- Mastering Kali Linux for Advanced Penetration Testing(Second Edition)
- Vijay Kumar Velu
- 238字
- 2021-07-02 21:04:16
Using scripts to automatically gather OSINT data
In the field of information security research, the time that we can save is critical when performing information gathering, which can yield vulnerability research and exploitation results. In this section, we will focus on how to automate some of the OSINT to make passive reconnaissance more effective:
#!/bin/bash
echo "Enter target domain: "
read domain
if [[ $domain != "" ]]; then
echo "Target domain set to $domain"
echo "********************************************"
echo "The Harvestor"
theharvester -d $domain -l 500 -b all -f harvester_$domain
echo "done!"
echo "********************************************"
echo "Whois Details"
whois $domain >> whois_$domain
echo "done!"
echo "********************************************"
echo "Searching for txt files on $domain using Goofile..."
goofile -d $domain -f txt >> goofile_txt_$domain
echo "done!"
echo "********************************************"
echo "Searching for pdf files on $domain using Goofile..."
goofile -d $domain -f pdf >> goofile_pdf_$domain
echo "done!"
echo "********************************************"
echo "Searching for pdf files on $domain using Goofile..."
goofile -d $domain -f doc >> goofile_doc_$domain
echo "done!"
echo "********************************************"
echo "Searching for pdf files on $domain using Goofile..."
goofile -d $domain -f xls >> goofile_xls_$domain
echo "done!"
else
echo "Error! Please enter a domain... "
fi
The preceding automation is a very simple script that makes use of some of the command-line tools in Kali and stores the output in multiple files without a database. However, attackers can make use of similar scripts to automate the majority of command-line tools to harvest information.
推薦閱讀
- Java程序設(shè)計(jì)與開(kāi)發(fā)
- GitLab Cookbook
- C語(yǔ)言程序設(shè)計(jì)(第3版)
- 前端跨界開(kāi)發(fā)指南:JavaScript工具庫(kù)原理解析與實(shí)戰(zhàn)
- Rust編程:入門(mén)、實(shí)戰(zhàn)與進(jìn)階
- 圖解Java數(shù)據(jù)結(jié)構(gòu)與算法(微課視頻版)
- Vue.js 3.x從入門(mén)到精通(視頻教學(xué)版)
- 深入淺出Windows API程序設(shè)計(jì):編程基礎(chǔ)篇
- Mastering OpenCV 4
- 可解釋機(jī)器學(xué)習(xí):模型、方法與實(shí)踐
- NGINX Cookbook
- Kivy Cookbook
- Java Web應(yīng)用開(kāi)發(fā)項(xiàng)目教程
- HTML5 Canvas核心技術(shù):圖形、動(dòng)畫(huà)與游戲開(kāi)發(fā)
- Dart:Scalable Application Development