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

Overview

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.
You might also like...
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

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

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

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

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

⚡ 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:~$

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

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

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.
    opened by d3m0n-r00t 0
Owner
Sreekanth Sasi
CyberSecurity enthusiast, Certified Ethical Hacker, Developer, pythonist.
Sreekanth Sasi
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

Christian Bargmann 3 Oct 14, 2021
null 2 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

Wade Zhang 0 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

Gabriel Forster 0 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.

Amazon Web Services - Labs 755 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

Furkan KARACA 3 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.

null 10 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

Luiz Otávio de Farias Correa 4 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

Siva Prakash 3 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

Mansour Behabadi 6 Nov 25, 2022