Advertisement
joemccray

Email address and corporate document harvesting

May 21st, 2018
2,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Email Harvesting
  2. ----------------
  3.  
  4. cd ~/toolz/
  5.  
  6. rm -rf theharvester-read-only/
  7.  
  8. sudo apt install -y python-pyasn1 python-pyasn1-modules
  9. infosecaddicts
  10.  
  11. sudo pip install requests
  12. infosecaddicts
  13.  
  14. git clone https://github.com/laramies/theHarvester.git
  15.  
  16. cd theHarvester/
  17.  
  18. python theHarvester.py
  19.  
  20. python theHarvester.py -d motorola.com -l 50 -b google
  21.  
  22. python theHarvester.py -d motorola.com -l 50 -b bing
  23.  
  24. python theHarvester.py -d motorola.com -l 50 -b linkedin
  25.  
  26. python theHarvester.py -d motorola.com -l 50 -b pgp
  27.  
  28.  
  29.  
  30.  
  31.  
  32. File Meta-Data Harvesting
  33. -------------------------
  34. cd ~/toolz/
  35.  
  36. sudo apt install -y python-pip
  37. infosecaddicts
  38.  
  39. sudo pip install google
  40. infosecaddicts
  41.  
  42. git clone https://github.com/opsdisk/metagoofil.git
  43.  
  44. cd metagoofil/
  45.  
  46.  
  47. python metagoofil.py -d motorola.com -t doc,pdf -l 100 -n 3 -o motorolafiles
  48.  
  49. exiftool -r *.doc | egrep -i "Author|Creator|Email|Producer|Template" | sort -u
  50.  
  51.  
  52.  
  53.  
  54.  
  55. python metagoofil.py -d [domain name] -t doc,pdf -l 100 -n 3 -o motorolafiles
  56. Whereas:
  57.  
  58. -d : I used another domain name aside from Google.com to make it work
  59. -t : I asked for the program to search two types of public documents whuch are doc and pdf files
  60. -l : I limited the search result to 100 to make the process faster
  61. -n : I limited the downloads (files that are going to be downloaded to get their metadatas extracted) to only 3 to make the process faster
  62. -o : I directed the result of the compilation t motorolafiles, which is a file located inside the metagoofil directory (~/toolz/metagoofil/motorolafiles)
  63. -f : Save the html links to html_links_<TIMESTAMP>.txt file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement