Skip to main content

files of interest (foi) - Identifies files based on their file type

Project description

Description

files of interest (foi) - Identifies files based on their file type

Installation

pip install foi

Usage

From command line:

python -m foi [-h] --path PATH [--files FILES]

Option Short Type Default Description
--path -p String - Path which shall be searched
--files -f String[] [txt, pdf, png, jpg] Comma separated list of file type to be searched for: pdf,jpg,txt

Programmatically:

from foi.search.Search import Search

s = Search(["md", "txt"]) # Provide the file types you are interested in
files = s.getFilePaths("path/to/dir")  # The path which shalle be searched for
                                       # the given file types

# Print findings
for file in files:
    print(file)

Example

python -m foi -p path/to/dir -f txt

################################################################################

NPDEP - Network Protocol Data Exfiltration Project
foi - files of interest
Identifies files based on their file type

Current working directory: path/to/dir

Datetime: 10/10/1970 10:10:10

################################################################################

Files to be searched: ['txt']

Path: path/to/dir

Files found:
---
path/to/dir/example.txt
path/to/dir/test.txt

################################################################################

Execution Time: 0.005753 sec

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

foi-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foi-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file foi-1.0.0.tar.gz.

File metadata

  • Download URL: foi-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for foi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dabfc44e503a5326f4ba684c732b0c8abfd79773d77ecf4554274c4648c8d912
MD5 6822584ba8a8ea371755714212607553
BLAKE2b-256 318a11a4daa6f4118ff9899336d5756638b0a74e977e18aab47ae3e5e32a55bb

See more details on using hashes here.

File details

Details for the file foi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: foi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for foi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c48f9a6376b5e61fca0dc1e3fabe8e4ca566f9266ec43d4529398c3fceb8da96
MD5 b732409bf4351083eec42e4b6e446039
BLAKE2b-256 f7460efffb50e89f90e1d1b84a52fbbc4aa24967d59b0ac2d53ec320f61fe004

See more details on using hashes here.

Supported by

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