Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/1N3/Goohak
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 24, 2017
2 parents d4680a7 + c44a544 commit 1c8cd9a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# GooHak v1.3 by 1N3@CrowdShield
http://crowdshield.com

## Modified:
Modified to work on OSX using Sed:

`sed 's/iceweasel/open/g' goohak > hackgoo`


## ABOUT:
GooHak is a shell script to automatically launch google hacking queries against a target domain to find vulnerabilities and enumerate a target.

## DEPENDENCIES:
## DEPENDENCIES(Linux):
* iceweasel
* Linux

Expand Down
47 changes: 47 additions & 0 deletions hackgoo
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
# + -- --=[Hackgoo v1.6 by ZephrFish
# + -- --=[Modified for OSX Compatability
# + -- --=[sed 's/iceweasel/open/g' goohak > hackgoo
# Google D0rker - Multiple Search Terms for OSINT on a Domain

TARGET="$1"

if [ -z $TARGET ]; then
echo -e "+ -- --=[Hackgoo v1.6 by ZephrFish"
echo -e "+ -- --=[Modified for OSX Compatability"
echo -e "+ -- --=[sed 's/iceweasel/open/g' goohak > hackgoo"
exit
fi

open 2> /dev/null &
sleep 5

# Google Dorks
echo "Opening Browser with search terms per tab"

# FIND LOGIN PAGES:
open "https://www.google.ca/search?q=site:$TARGET+username+OR+password+OR+login+OR+root+OR+admin" 2> /dev/null
# SEARCH FOR BACKDOORS:
open "https://www.google.ca/search?q=site:$TARGET+inurl:shell+OR+inurl:backdoor+OR+inurl:wso+OR+inurl:cmd+OR+shadow+OR+passwd+OR+boot.ini+OR+inurl:backdoor" 2> /dev/null
# FIND SETUP OR INSTALL FILES:
open "https://www.google.ca/search?q=site:$TARGET+inurl:readme+OR+inurl:license+OR+inurl:install+OR+inurl:setup+OR+inurl:config" 2> /dev/null
# FIND WORDPRESS PLUGINS/UPLOADS/DOWNLOADS:
open "https://www.google.ca/search?q=site:$TARGET+inurl:wp-+OR+inurl:plugin+OR+inurl:upload+OR+inurl:download" 2> /dev/null
# FIND OPEN REDIRECTS:
open "https://www.google.ca/search?q=site:$TARGET+inurl:redir+OR+inurl:url+OR+inurl:redirect+OR+inurl:return+OR+inurl:src=http+OR+inurl:r=http" 2> /dev/null
# FIND FILES BY EXTENSION:
open "https://www.google.ca/search?q=site:$TARGET+ext:cgi+OR+ext:php+OR+ext:asp+OR+ext:aspx+OR+ext:jsp+OR+ext:jspx+OR+ext:swf+OR+ext:fla+OR+ext:xml" 2> /dev/null
# FIND DOCUMENTS BY EXTENSION:
open "https://www.google.ca/search?q=site:$TARGET+ext:doc+OR+ext:docx+OR+ext:csv+OR+ext:pdf+OR+ext:txt+OR+ext:log+OR+ext:bak" 2> /dev/null
# FIND APACHE STRUTS RCE's:
open "https://www.google.ca/search?q=site:$TARGET+ext:action+OR+ext:struts" 2> /dev/null
# FIND PASTEBIN POSTS FOR DOMAIN:
open "https://www.google.ca/search?q=site:pastebin.com+$TARGET" 2> /dev/null
# FIND EMPLOYEES ON LINKEDIN:
open "https://www.google.ca/search?q=site:linkedin.com+employees+$TARGET" 2> /dev/null

# Find Subdomains
open "https://www.google.ca/search?q=site:*.$TARGET" 2> /dev/null

# Find Sub-subdomains
open "https://www.google.ca/search?q=site:*.*.$TARGET" 2> /dev/null

0 comments on commit 1c8cd9a

Please sign in to comment.