{"id":32216421,"url":"https://github.com/lilithsec/file-find-includestimerange","last_synced_at":"2025-10-22T07:59:17.623Z","repository":{"id":88183328,"uuid":"605291477","full_name":"LilithSec/File-Find-IncludesTimeRange","owner":"LilithSec","description":"Finds time stamped files with time stamps between a specified range.","archived":false,"fork":false,"pushed_at":"2023-08-11T21:11:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T07:59:16.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LilithSec.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-22T21:14:21.000Z","updated_at":"2023-02-27T05:32:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"3816bde3-7756-43fc-bda0-0423e83d1dce","html_url":"https://github.com/LilithSec/File-Find-IncludesTimeRange","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LilithSec/File-Find-IncludesTimeRange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LilithSec%2FFile-Find-IncludesTimeRange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LilithSec%2FFile-Find-IncludesTimeRange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LilithSec%2FFile-Find-IncludesTimeRange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LilithSec%2FFile-Find-IncludesTimeRange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LilithSec","download_url":"https://codeload.github.com/LilithSec/File-Find-IncludesTimeRange/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LilithSec%2FFile-Find-IncludesTimeRange/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280402192,"owners_count":26324587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-22T07:59:15.771Z","updated_at":"2025-10-22T07:59:17.608Z","avatar_url":"https://github.com/LilithSec.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File::Find::IncludesTimeRange\n\nTakes a array of time stamped items(largely meant for use with files)\nreturns ones that include the specified time range.\n\nOriginally developed for use with Suricata conditional PCAPs and Daemonlogger.\n\n```perl\nuse File::Find::IncludesTimeRange;\nuse Time::Piece;\nuse Data::Dumper;\n\n\nmy @files=(\n    'daemonlogger.1677468390.pcap',\n    'daemonlogger.1677468511.pcap',\n    'daemonlogger.1677468632.pcap',\n    'daemonlogger.1677468753.pcap',\n    'daemonlogger.1677468874.pcap',\n    'daemonlogger.1677468995.pcap',\n    'daemonlogger.1677469116.pcap',\n    'daemonlogger.1677469237.pcap',\n    'daemonlogger.1677469358.pcap',\n    'daemonlogger.1677469479.pcap',\n    'daemonlogger.1677469600.pcap',\n    'daemonlogger.1677469721.pcap',\n    );\n\nprint Dumper(\\@files);\n\nmy $start=Time::Piece-\u003estrptime('1677468511', '%s');\nmy $end=Time::Piece-\u003estrptime(  '1677468833', '%s');\n\nmy $found=File::Find::IncludesTimeRange-\u003efind(\n                                              items=\u003e\\@files,\n                                              start=\u003e$start,\n                                              end=\u003e$end,\n                                              regex=\u003e'(?\u003ctimestamp\u003e\\d\\d\\d\\d\\d\\d+)(\\.pcap|(?\u003csubsec\u003e\\.\\d+)\\.pcap)$',\n                                              strptime=\u003e'%s',\n                                             );\n\nprint Dumper($found);\n```\n\n## File::Find::IncludesTimeRange-\u003efind\n\nSearches through a list of items , finds the ones that appear to be timestamped.\nIt will then sort the found time stamps and return the ones that include the\nspecified time periods.\n\nThere following options are taken.\n\n```orgmode\n    - items :: A array ref of items to examine.\n\n    - start :: A Time::Piece object set to the start time.\n\n    - end :: A Time::Piece object set to the end time.\n\n    - regex :: A regex to use for matching the files. Requires uses of the named\n               group 'timestamp' for capturing the timestamp. If it includes micro\n               seconds in it, since Time::Piece-\u003estrptime does not handle those,\n               those can be captured via the group 'subsec'. They will then be\n               appended to to the epoch time of any parsed timestamp for sorting\n               purposes.\n        - Default :: (?\u003ctimestamp\u003e\\d\\d\\d\\d\\d\\d+)(\\.pcap|(?\u003csubsec\u003e\\.\\d+)\\.pcap)$\n\n    - strptime :: The format for use with L\u003cTime::Piece\u003e-\u003estrptime.\n        - Default :: %s\n\n    - ts_is_unixtime :: Skips using Time::Piece and strptime as it is\n                        just a simple numeric test. For this subsecs\n                        should be included in the capture group\n                        'timestamp' for the regex.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilithsec%2Ffile-find-includestimerange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flilithsec%2Ffile-find-includestimerange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilithsec%2Ffile-find-includestimerange/lists"}