Skip to content

shamo0/gimme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Gimme

Gimme is a log analysis tool written in Python that can extract various information from log files, including IP addresses, email addresses, file paths, filenames, URLs, domains, and dates.

Usage

To use Gimme, simply run the gimme.py script and provide one or more log files as input. You can specify which functionality you want to use by passing one or more arguments to the script. For example, to extract all available information from a log file called example.log, you can run:

python gimme.py -a example.log The available command line options are:

  • -a: Extract all available information (emails, IPs, domains, URLs, and filenames) from the log file(s).
  • -e: Extract email addresses from the log file(s).
  • -i: Extract IP addresses from the log file(s).
  • -d: Extract domains from the log file(s).
  • -u: Extract URLs from the log file(s).
  • -f: Extract filenames from the log file(s).
  • -h: Display a help menu with available options.

You can provide one or more log files as input by specifying their paths as arguments after the options. For example, to extract email addresses and domains from two log files called access.log and error.log, you can run:

python gimme.py -e -d access.log error.log

The results will be printed to the console in a formatted manner, with any matches highlighted in red.

Example Log File

An example log file containing IPs, emails, file paths, names, dates, and domains is included in this repository as example.log. You can use this file to test the functionality of Gimme.

Requirements

Gimme requires Python 3 to run, and the following packages are also required:

  • argparse
  • colorama
  • re
You can install these packages using pip by running:

pip install argparse colorama

Author

Gimme was created by shamoo0.

License

Gimme is licensed under the MIT License. Feel free to use, modify, and distribute the code as you see fit.