This is an update of https://code.google.com/archive/p/goofile/ for Python 3, with the addition of a setup.py file for easy pip installation.
To install, download or clone repository:
git clone https://github.com/sosukeinu/goofile.git goofile
then cd
into the resulting directory
cd goofile
then, install using pip
pip install .
You can then run the script from anywhere on your system using:
goofile -d {domain to search} -f {filetype, i.e. pdf}
for example
goofile -d kali.org -f pdf
The above technique might trigger Google's Bot detection after too many requests. To work around this, you can set up a Custom Site Search Engine
In order to get this new method to work, it requires some setup. You must follow the process below to create and configure a Custom Search Engine, and retrieve an API key and Search Engine ID, which you will then pass along with your request.
First get an API Key from Custom Site Search Engine Intro Page
select "Get a key"
create a project
copy the API key, and keep this in a safe place for use
Then return to Custom Site Search Engine Intro Page and Click on "Custom Search Engine"
on the next page, click "Create a custom search engine"
give the search engine a site to search (this can be anything) and select "Create"
this redirects you to your dashboard
grab your search engine ID, and put this in a safe place for use.
Lastly be sure to set this to search the entire web, or you'll get no results
Once you've configured your search Engine as above, you can run the file search by passing the API Key and Search Engine ID along with the request, as below:
goofile -d kali.org -f pdf -k {your-api-key} -e {search-engine-id}
Further, you can do things like pass a search term along with the query
goofile -d scp.nrc.gov -f pdf -k {your-api-key} -e {search-engine-id} -q detonation
Note: The free account is limited to 100 queries per day.
You can always manage your projects here: Dashboard