Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadawck/seqparser
Cli tool to find specific regular expression like email, ip adress, phone number, bitcoin adress ... in a file
https://github.com/shadawck/seqparser
analysis cli ctf detection forensic-analysis forensics hackathon python3 regex sec
Last synced: 3 months ago
JSON representation
Cli tool to find specific regular expression like email, ip adress, phone number, bitcoin adress ... in a file
- Host: GitHub
- URL: https://github.com/shadawck/seqparser
- Owner: shadawck
- Created: 2020-03-17T15:08:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T09:25:57.000Z (almost 5 years ago)
- Last Synced: 2024-04-24T20:03:34.144Z (9 months ago)
- Topics: analysis, cli, ctf, detection, forensic-analysis, forensics, hackathon, python3, regex, sec
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SEQPARSER
[![codecov](https://codecov.io/gh/remiflavien1/seqparser/branch/master/graph/badge.svg)](https://codecov.io/gh/remiflavien1/seqparser) [![PyPI version](https://badge.fury.io/py/seqparser.svg)](https://badge.fury.io/py/seqparser) [![Requirements Status](https://requires.io/github/remiflavien1/SeqParser/requirements.svg?branch=master)](https://requires.io/github/remiflavien1/SeqParser/requirements/?branch=master) [![Code Coverage](https://github.com/remiflavien1/seqparser/workflows/Code%20coverage/badge.svg)](https://github.com/remiflavien1/seqparser/actions?query=workflow%3A%22Code+coverage%22) [![Quality check](https://github.com/remiflavien1/seqparser/workflows/Quality%20check/badge.svg)](https://github.com/remiflavien1/seqparser/actions?query=workflow%3A%22Quality+check%22)
Get dependencies for a given package management system and a given package.
## Install
You can install ```seqparser``` either via pip (PyPI) or from source.
To install using pip:
```bash
python3 -m pip install seqparser
```
Or manually:
```
git clone https://github.com/remiflavien1/seqparser
cd seqparser
python3 setup.py install
```## Usage
### CLI
#### Find command
Search through all regex from regIndex.txt in test/random.txt
```sh
$ seqparser find --all -f regindex.txt -s test/random.txtvalidEmail: ['[email protected]']
ip_adress: ['198.127.158.45', '192.168.1.1']
macAdress: ['406068601171', '454415000055', 'FF:FF:FF:FF:FF:FF', '00:A0:C9:14:C8:29', '00:00:5E:00:01:28', '406067601871', '006129876543', '406017401951']
bitcoin: ['3npMjJYuAEGyZr1uLBsDWSwz1xuPzdxcL4Y', '3cLwdE1xcNGpx3usW9jzYC3erDS3d', '17ZtZF9r8BruWo62ddHYH6ucMVUfKQR', '1kV8NfTA7X1bh5cPekpWmEfg6MiD', '3QWz49mGLkg1gw9T8kUWV8TeCxFCJKpKmQ7', '3XpULLXUcTpBp1VUh3aDYrkEymySWm8pjnJ', '1j2Gjjehdi5KRQW3yHCEWjCHZpn9sxDupN', '13rV3W8pVTKjYXVUK6eS9E4AyMn3YuEQa9E', '39ui5NBjs82TkbTKrV2nkub4RX7hjDwdD', '3935XvxKuSDXHgd1EyaNvUHUr78nspTLCBF', '1XVLr6QYeCSFkAT2hc43uKrZEJsL', '33689657852p1234AxX7kbN4K8D1f1m1rD7', '1Wrcy4pXFfHJsr4xhATMQdqkMKsYgDPRjHu', '197TPY8Rviih6ykQ6aikdc7p5gcJG', '3DbEb6pqptsmmW5TnfpQ9Sd2fv47USFL', '1MyXo1o3vPeWB1tDHfvKVrCmChCNJ', '3E1DLQUmm7u2vePTa2Qz9LrUp2QnfvepQvc', '1zsbg36cXCzD4kQpuhQUe1j2V2hPyntdsWH', '1b61jMdJwGoejWTc1TF8Y23E722vn4RTa', '3vkiwibfiwucd6vxijskbhpjdyajmzeor4m', '1F1vvS15QLi7YE4nkYn239Wd5vDXL49Qs', '1xk4RwYpaySpdCPmsh61FpWKuGr7K1Gvsfs', '1zsbg36cXCzD4kQpuhQUe1j2V2hPyntdsWH', '1b61jMdJwGoejWTc1TF8Y23E722vn4RTa']
onion_v2: ['c4i7yopvpo4p7cyd.onion']
onion_v3: ['jamie3vkiwibfiwucd6vxijskbhpjdyajmzeor4mc4i7yopvpo4p7cyd.onion']
```Search a specific regex from ```regIndex.txt``` in ```test/random.txt```
```sh
$ seqparser find --partial ip_adress -f regindex.txt -s test/random.txtip_adress: ['198.127.158.45', '192.168.1.1']
```#### List Command
Just list all the regular expression available in regIndex.txt
```sh
$ seqparser listvalidEmail
ip_adress
macAdress
bitcoin
onion_v2
onion_v3
...
```# ROADMAP
- Add support for [Pyre2](https://github.com/facebook/pyre2/)
- Add support for other regex expression (mostly for OSINT)
- Add specific analysis on some regex (with a --detail flag for example)
- Add a scoring feature based on exact matching and deviation from original regex
- Add output export
- Add Web dashboard visualization