Skip to main content

Cli tool to find specific regular expression like email, ip adress, phone number, bitcoin adress ... in a file

Project description

SEQPARSER

codecov PyPI version Requirements Status Code Coverage Quality check

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:

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

$ seqparser find --all -f regindex.txt -s test/random.txt

validEmail: ['sometest@gmail.com']
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

$ seqparser find --partial ip_adress -f regindex.txt -s test/random.txt

ip_adress: ['198.127.158.45', '192.168.1.1']

List Command

Just list all the regular expression available in regIndex.txt

$ seqparser list

validEmail
ip_adress
macAdress
bitcoin
onion_v2
onion_v3
...

ROADMAP

  • Add support for 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seqparser-1.1.2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

seqparser-1.1.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page