Skip to main content

Discover files in directories with execute-only permission - when 'ls' fails but access is possible

Project description

rfind - Restricted File Finder

.

Overview

rfind is a security and system administration tool designed for situations where you have execute (x) permission on a directory but lack read (r) permission. In such cases, traditional directory listing commands like ls fail with "Permission denied", yet you can still access files if you know their names.

This tool helps you discover what files exist in such restricted directories through intelligent enumeration techniques.

The Problem

On Unix-like systems (including Linux and Android), directory permissions work like this:

  • Read (r) permission: List directory contents
  • Execute (x) permission: Access files within the directory (if you know their names)
  • Both are needed: To both list AND access files

When you have x but not r, you're in a "blind" situation - you can't see what's there, but you can touch what you find.

How rfind Helps

rfind provides several approaches to discover files:

  1. Smart pattern matching - Common file naming conventions
  2. Brute-force enumeration - Systematic checking of possible names
  3. Multi-process scanning - Leverage all CPU cores for speed
  4. Custom character sets - Tailor searches to specific environments

Use Cases

  • Security auditing - Discovering hidden or protected files
  • Digital forensics - Investigating system directories
  • System administration - Recovering from permission issues
  • Penetration testing - Exploring restricted environments
  • Android device analysis - Accessing protected system directories

Installation

pip install rfind

Basic Usage

# Scan a directory with limited permissions
rfind /system/bin

# Use smart mode for common patterns
rfind --smart /dev

Technical Details

The tool employs parallel processing to efficiently enumerate possible filenames based on:

· Length constraints (1-6 characters typically) · Character sets (alphanumeric, specific symbols, etc.) · Common naming patterns in Unix/Linux/Android systems

Ethical Use

This tool should only be used on:

· Systems you own or have explicit permission to test · For legitimate security auditing and system administration · Educational and research purposes

Development Status

Early alpha release. Core functionality is implemented with ongoing development for additional features and optimizations.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.

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

rfind-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

rfind-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file rfind-0.1.0.tar.gz.

File metadata

  • Download URL: rfind-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for rfind-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbcccd01877e8eb6fa35960ea252521e08416af888484a2e727bc9371dac3402
MD5 a08ece21e94fb160a120f73572dcc393
BLAKE2b-256 2a5c316bae6554bc768b2647d798af7c66376a4ee9517d430e3ba27a8a1b0b98

See more details on using hashes here.

File details

Details for the file rfind-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rfind-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for rfind-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08c452635a575ee667ca962096cd95183584d151d571318af7614a46635e4b1d
MD5 4bb39dfca634c27b9c773f2f3505da8e
BLAKE2b-256 af7ad22775077038c7d23579f947a53ce09a665b458ac8fb3abe1b66a44c2280

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