fimap : tool for exploiting Remote/Local File Inclusion vulnerability | LFI Attacks

fimap is an LFI/RFI detection and exploitation tool written in python which can find, prepare, audit, exploit and even google automatically for local and remote file inclusion bugs in webapps. fimap is something like sqlmap just for LFI/RFI bugs instead of SQL injection. The download link is given below :

Now lets see some example of uses fimap.

For help menu :
 ./ -h
Now lets first try it with Web4Pentest VM's File Inclusion Pages.

Simple Scan :
 ./ -u
Output :

as we can see the 'page' parameter is vulnerable. Scanning the second example :
 ./ -u
Output :

Scanning with harvest mode : -H

This mode harvest all urls from a given root url of a server and save it to a file.
 ./ -H -u root_url -w output_file_name
Example :
 ./ -H -u -w op.txt
The output will be saved on op.txt

Now we can use that output file as input for scanning each url with fimap, with using mass scan option (-m)
 ./ -m -l op.txt

Interactive mode :

'-x' flag is used to start interactive mode in fimap. It lists all vulnerable targets based on previous scan results and gives the option to perform exploitation attempts against them. Example of interactive mode :
 ./ -x

Links to other Posts :

References  :