Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arshadkazmi42/github-scanner-local

Locally scan all the repositories of a github organization
https://github.com/arshadkazmi42/github-scanner-local

bounty bug bug-bounty crawler github local no-api scanner

Last synced: 3 months ago
JSON representation

Locally scan all the repositories of a github organization

Awesome Lists containing this project

README

        

# github-scanner-local

Locally scan all the repositories of a github organization.

## Setup

- Clone below repositories as same location as github-scanner-local
- [gh-crawl](https://github.com/arshadkazmi42/gh-crawl)
- [bash-scripts](https://github.com/arshadkazmi42/bash-scripts)

- Install [npm-name-cli](https://github.com/sindresorhus/npm-name-cli) globally
- Install [get-dependencies](https://github.com/SharonGrossman/get-dependencies) globally
- Install [pip-name](https://github.com/danishprakash/pip-name)

```
$ npm i npm-name-cli -g

$ npm i get-dependencies -g

$ pip install pip-name
```

## Usage

```
$ sh run.sh {GITHUB_ORGANIZATION_NAME}

$ sh runNpmDeps.sh {FOLDER_NAME}

$ sh runPipDeps.sh {FOLDER_NAME}
```

## Working

#### `run.sh`

Uses `clone.sh`, `grepURL.sh` and `broken.sh`

#### `clone.sh`

Clones all the repositories of the organanization (Note: It does not clones `archived` repositories)

#### `grepURL.sh`

Find all the urls from all the repositories of the organization (Searches in the cloned folder) and stores in results directory

#### `broken.sh`

Checks all the urls found by `grepURL.sh` and captures the status code of the URL

## Commands

- Search for string in all cloned repositories

```
ls -d -1 target/* | grep -v target.txt | xargs -I {} sh search.sh {} "{{STRING_TO_SEARCH}}"
```

```
grep -r -o "{{STRING_TO_SEARCH}}" target/.
```