hansmach1ne / LFImap

Local File Inclusion discovery and exploitation tool
Apache License 2.0
226 stars 34 forks source link

Error trace when testing headers with placeholder #116

Closed hansmach1ne closed 2 months ago

hansmach1ne commented 2 months ago

file.txt:

GET /?test HTTP/1.1
Host: mach1ne.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Te: trailers
Connection: close
Header: PWN
└─$ python3 lfimap/lfimap.py -R ../file.txt

[i] Testing header 'Header'
Traceback (most recent call last):
  File "/home/kali/Desktop/LFImap/lfimap/lfimap.py", line 774, in <module>
    main()
  File "/home/kali/Desktop/LFImap/lfimap/lfimap.py", line 726, in main
    test_input(url, post)
  File "/home/kali/Desktop/LFImap/lfimap/src/attacks/input.py", line 18, in test_input
    if args['is_tested_param_post']:
       ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'is_tested_param_post'