Wednesday, 17 October 2012

email harvesting (backtrack 5)

open terminal


msfconsole
search gather
use auxiliary/gather/search_email_collector
set domain (e.g. xyz.com)
run


thats it.

2 comments:

  1. Great tutorial!! Just wondering if there was any way I could pull specefic emails from a domain. For example lets say I wanted to find the CFO of canons email Canon.com. Any help is decapitated. I tried jigsaw but it is unreliable.

    ReplyDelete
  2. echo "Running the harvest..."


    while read line
    do
    ruby /opt/metasploit-framework/msfcli auxiliary/gather/search_email_collector DOMAIN=$line OUTFILE=$line.html E

    w3m -dump $line.html > emails.tmp
    rm $line.html
    grep @ emails.tmp >> emails.txt
    done < $1

    echo "Finishing... E-mail Results:"
    echo
    sort -u emails.txt > emails.tmp
    mv emails.tmp email.txt

    ReplyDelete