enjoiz/XXEinjector

File without a newline at the end throws error.

Closed this issue · 1 comments

If the file specified with --file= does not have a newline at the end, the program throws the error: [-] Wrong HTTP file format.
I believe it is on this line of code:

break if File.readlines($file)[z].chomp.empty?

It seems that the line number in the file does not exist, so it throws an error.

Putting an extra newline at the end of my file fixed the error.

Actually, I realized my request didn't have a newline in between the headers and payload .__.
Makes sense.