SkillAgentSearch skills...

LFIDump

A simple python script to dump remote files through a local file read or local file inclusion web vulnerability.

Install / Use

/learn @p0dalirius/LFIDump
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> A simple python script to dump remote files through a local file read or local file inclusion web vulnerability. <br> <img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/p0dalirius/LFIDump"> <a href="https://twitter.com/intent/follow?screen_name=podalirius_" title="Follow"><img src="https://img.shields.io/twitter/follow/podalirius_?label=Podalirius&style=social"></a> <a href="https://www.youtube.com/c/Podalirius_?sub_confirmation=1" title="Subscribe"><img alt="YouTube Channel Subscribers" src="https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social"></a> <br> </p>

Features

  • [x] Dump a single file with -f /path/to/remote/file.txt
  • [x] Dump lots of files from a wordlist with -F /path/to/local/wordlist.txt
  • [x] Insecure mode (for broken SSL/TLS) with -k/--insecure
  • [x] Custom local dump dir with -d/--dump-dir

Usage

$ ./LFIDump.py -h
usage: LFIDump.py [-h] [-v] [-s] -u URL [-f FILE | -F FILELIST] [-D DUMP_DIR] [-k]

Description message

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode. (default: False)
  -s, --only-success    Only print successful read file attempts.
  -u URL, --url URL     URL to connect to. (example: http://localhost/?page=LFIPATH)
  -f FILE, --file FILE  Remote file to read.
  -F FILELIST, --filelist FILELIST
                        File containing a list of paths to files to read remotely.
  -D DUMP_DIR, --dump-dir DUMP_DIR
                        Directory where the dumped files will be stored.
  -k, --insecure        Allow insecure server connections when using SSL (default: False)

Examples

  • Dump a single file

    ./LFIDump.py -u "http://localhost:8000/lfi.php?page=LFIPATH" -f /etc/passwd
    
  • Dump files from a wordlist

    ./LFIDump.py -u "http://localhost:8000/lfi.php?page=LFIPATH" -F ./wordlists/all.txt
    

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

View on GitHub
GitHub Stars78
CategoryDevelopment
Updated14d ago
Forks15

Languages

Python

Security Score

85/100

Audited on Mar 24, 2026

No findings