GithubHelp home page GithubHelp logo

bbhunter / gitscraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamtlangley/gitscraper

1.0 0.0 0.0 109.83 MB

A tool which scrapes public github repositories for common naming conventions in variables, folders and files

PHP 100.00%

gitscraper's Introduction

gitscraper

A tool which scrapes public github repositories for common naming conventions in variables, folders and files

This current upload contains the results from 16,018,052 php files from 102808 different repositories

Gitscraper examines PHP files to create SecList / Dictionary files which can be used against any environment ( not just PHP ) for pentesting & bounty hunters.

How to Run

php gitscraper.php {GitHub Username} {GitHub Personal KEY}

It will collect the following:

  1. Folder & File Names

  2. GET & POST variables

  3. HTTP Header Variables

  4. Laravel GET,POST,PUT & DELETE Routes

Each time one of the above is found it is added into its appropriate file in the /raw directory. These raw files are then sorted and ordered by the most duplicated content at the top and then cleaned as best as possible and put in the /cleaned directory

Current command for cleaning files ( to be run in /raw directory )

for filename in *; do sort $filename | grep -v ' ' | grep -v -P "\t" | uniq -d -c | sort -n -r | cut -c 9- > ../cleaned/$filename ; done

  1. ( sort ) Sort the file so all occurences are next to each other
  2. ( grep ) Remove lines that contain spaces
  3. ( grep ) Remove lines that contain tabs
  4. ( uniq ) Pick out all the uniqe lines and prepend with the number of times found
  5. ( sort ) Sort by the instance of times found to the most common is at the top
  6. ( cut ) Remove the instances found number
  7. ( > ) Echo out to cleaned directory

gitscraper's People

Contributors

adamtlangley avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.