https://github.com/static-flow/gopatternmatcher
This tool allows for quickly searching for a specified pattern within HTTP Response bodies. Simply pipe in a list of URLs, specify your pattern and hit enter.
https://github.com/static-flow/gopatternmatcher
Last synced: 3 months ago
JSON representation
This tool allows for quickly searching for a specified pattern within HTTP Response bodies. Simply pipe in a list of URLs, specify your pattern and hit enter.
- Host: GitHub
- URL: https://github.com/static-flow/gopatternmatcher
- Owner: Static-Flow
- Created: 2020-02-20T05:25:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T18:11:33.000Z (over 6 years ago)
- Last Synced: 2025-12-18T03:11:39.621Z (6 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoPatternMatcher
This tool allows for quickly searching for a specified pattern within HTTP Response bodies. Simply pipe in a list of URLs, specify your pattern and hit enter.
# Help Output
```
Usage of gpm:
-context int
Number of characters on both sides of a match to include. (0 to include whole line, could be large for minified JS) (default 50)
-findall
Find all matches not just first one
-pattern string
Pattern definition to look for
-timeout int
timeout in milliseconds (default 10000)
-workers int
Number of workers to process urls (default 20)
```
# Examples
## Simple use case searching for username
cat urls.txt | gpm --pattern admin
## Specify --findall to search for all occurrences of .js files
cat urls.txt | gpm --patttern .js --findall
## Specify number of workers to concurrently process the URLs
cat urls.txt | gpm --pattern .js --findall --workers 30
## Specify timeout of web reuqests in milliseconds
cat urls.txt | gpm --pattern .js --findall --workers 30 --timeout 20000
## Specify number of characters on each side of match to include
cat urls.txt | gpm --pattern .js --findall --workers 30 --timeout 20000 --context 100