A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS

   _____  ____    ______ _____ _   _ _____             _____ _____  _____ 
  / ____|/ __ \  |  ____|_   _| \ | |  __ \      /\   |  __ \_   _|/ ____|
 | |  __| |  | | | |__    | | |  \| | |  | |    /  \  | |__) || | | (___  
 | | |_ | |  | | |  __|   | | | . ` | |  | |   / /\ \ |  ___/ | |  \___ \ 
 | |__| | |__| | | |     _| |_| |\  | |__| |  / ____ \| |    _| |_ ____) |
  \_____|\____/  |_|    |_____|_| \_|_____/  /_/    \_\_|   |_____|_____/ 
                                                                          
                                                               @demonroot     

This tool is build to find APIs. Just go recursively go around files and read them and scan for API keys with regex. This tool is still in the developement phase. There is posibility of false positive. Please do contribute.

Installation

  • To install gofindapis...
curl https://raw.githubusercontent.com/d3m0n-r00t/gofindapis/master/install.sh > ~/install-gofindapis.sh && chmod +x ~/install-gofindapis.sh
~/install-gofindapis.sh
gofindapis <path_to_scan>
  • To add gofindapis as pre-commit hook.
cd git-project
curl https://raw.githubusercontent.com/d3m0n-r00t/gofindapis/master/pre-commit > .git/hooks/pre-commit

The .goignore file

Any files can be avoided from being scanned by gofindapis by the use of a .goignore file. Just add the file in the git directory and the files in the file wont be scanned. For example to avoid scanning .git folder and its files add the following in .goignore.

.git

TO DO

  • Find a way to add this tool as git pre-commit hook check. --- DONE
  • Optimization. --- DONE
  • Build the script and make it a binary so that we can run it from anywhere. --- DONE
  • Find a general way to give root path of the git project in pre-commit script in .git/hooks/pre-commit. --- DONE
  • Find more regex and reduce false positives.
Owner
Sreekanth Sasi
CyberSecurity enthusiast, Certified Ethical Hacker, Developer, pythonist.
Sreekanth Sasi
Similar Resources

A web server that sits beside jupyterhub and scrapes answers out of notebook files.

A Prototype grader tool that runs with jupyterhub that essentially parses jupyter notebooks and responds with a set of form fields automatically fille

Feb 22, 2022

Rest API to get KVB departures - Written in Go with hexagonal architecture and tracing via OpenTelemetry and Jaeger

KVB API Rest API to get upcoming departures per KVB train station Implemented in Go with hexagonal architecture and tracing via OpenTelemetry and Jaeg

May 7, 2022

actionlint is a static checker for GitHub Actions workflow files.

actionlint actionlint is a static checker for GitHub Actions workflow files. Features: Syntax check for workflow files to check unexpected or missing

Dec 27, 2022

Simple program that uploads large files to Amazon S3 over slow connections.

shrimp is a small program that can reliably upload large files to Amazon S3. My personal use case is to upload large files to S3 over a slow residenti

Nov 30, 2022

A tool to decrypt files by AWS KMS

KMS-Decrypter Decrypt all files in folder then output to destination folder by AWS KMS. Usage Usage of ./.out/decrypter: -f string path to e

Sep 20, 2022

⚡ Cloud disk to transfer files ⚡

LeiliNetdisk V1.0 云存储”系统原型(实现一个超精简版云盘) 环境配置 ➜ ~ multipass launch -n main -c 1 -m 4G -d 20G Launched: main ➜ ~ multipass shell main ubuntu@main:~$

Jan 4, 2022

Aws-parameter-bulk - Export AWS SSM Parameter Store values in bulk to .env files

aws-parameter-bulk Utility to read parameters from AWS Systems Manager (SSM) Par

Oct 18, 2022

This is a small Go program, which can tell you what processes are actively using a set of files

winuse This is a small Go program, which can tell you what processes are actively using a set of files. It primarily exists to show off how one can bi

Jan 28, 2022
Comments
  • Need help Gooys!!!!

    Need help Gooys!!!!

    • [x] Ignore function needs to be optimized to such that once a directory is added the files in the directory will be ignored. Currently files have to be added seperatly.
Lookup or replace AWS account IDs with their names and vice versa

awsacc A trusty helper for working with AWS account IDs. Working with AWS account IDs often involves more manual effort than necessary. Often account

Oct 14, 2021
Feb 7, 2022
koanfenv provides koanf callbacks that translate environment variables to koanf keys.

koanfenv koanfenv provides callbacks which convert environment variables to koanf keys. These callbacks are used for env.Provider . Usage config := st

Dec 12, 2021
Convert IBM stanza-style files to json and publish as an API

stanza_to_json Convert IBM stanza-style files to json and publish as an API Background IBM Stanza files have been extended to be used in other ways, b

Feb 2, 2022
lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

Jan 6, 2023
Lol-champions-api - A REST API app for CRUD' ing informations related to League of Legends champions, written with Go

LOL-CHAMPIONS-API Just a REST API app for CRUD' ing informations related to Leag

Mar 17, 2022
A small, fast, reliable pastemyst API wrapper written in Golang

A small, fast, reliable pastemyst API wrapper written in Golang. Official pastemyst API docs found here.

Dec 12, 2022
Pterodactyl API wrapper written in Golang

WARNING That repository isn't available for production environment. Many endpoints aren't yet implemented. Be careful if you are using that module. pt

Oct 4, 2022
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Feb 6, 2022
starenv allows populating environmental variables from variety of sources, such as AWS Parameter Store, GPG encrypted files and more, with extreme ease.

starenv (*env) allows populating environmental variables from variety of sources, such as AWS Parameter Store, GPG encrypted files and more, with extr

Nov 25, 2022