Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Brandon Perry
Works like a charm, man. Thanks a bunch. :) On Mon, Feb 2, 2015 at 3:17 PM, Brandon Perry wrote: > Trying now. > > On Mon, Feb 2, 2015 at 3:07 PM, Miroslav Stampar < > miroslav.stam...@gmail.com> wrote: > >> Fixed. Please update to the latest revision to have it patched. >> >> Bye >> >> On Mon,

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Brandon Perry
Trying now. On Mon, Feb 2, 2015 at 3:07 PM, Miroslav Stampar wrote: > Fixed. Please update to the latest revision to have it patched. > > Bye > > On Mon, Feb 2, 2015 at 9:45 PM, Brandon Perry > wrote: > >> I think it has to do with Accept specifically. >> >> Passing --headers="X-Forwarded-For:1

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Miroslav Stampar
Fixed. Please update to the latest revision to have it patched. Bye On Mon, Feb 2, 2015 at 9:45 PM, Brandon Perry wrote: > I think it has to do with Accept specifically. > > Passing --headers="X-Forwarded-For:192.168.1.31\nAccept:application/json" > results in the X-Forwarded-For header being p

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Brandon Perry
I think it has to do with Accept specifically. Passing --headers="X-Forwarded-For:192.168.1.31\nAccept:application/json" results in the X-Forwarded-For header being present, but Accept is still text/html. I am using --data as well, so it is a POST. This is an application I am working on privatel

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Brandon Perry
Ah! Let me try. On Mon, Feb 2, 2015 at 2:29 PM, Miroslav Stampar wrote: > --headers='Accept: application/json' is wrongly handled by Python :) > > For some strange reason, it messes the sys.argv when there is a whitespace > inside a single-quote formation: > > python -c "import sys; print sys.ar

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Miroslav Stampar
--headers='Accept: application/json' is wrongly handled by Python :) For some strange reason, it messes the sys.argv when there is a whitespace inside a single-quote formation: python -c "import sys; print sys.argv" --dummy="foo: bar" ['-c', '--dummy=foo: bar'] python -c "import sys; print sys.a

Re: [sqlmap-users] --headers not adding Accept

2015-02-02 Thread Miroslav Stampar
I'll take a look in couple of hours and let you know. Bye On Feb 1, 2015 4:27 PM, "Brandon Perry" wrote: > Hello! > > I am attempting to override the Accept header with Accept: > application/json (currently is text/html). > > When I use -r, I don't have a problem, but wanting to specify a single

[sqlmap-users] --headers not adding Accept

2015-02-01 Thread Brandon Perry
Hello! I am attempting to override the Accept header with Accept: application/json (currently is text/html). When I use -r, I don't have a problem, but wanting to specify a single command instead of command + request to reproduce. Using --headers='Accept: application/json' doesn't override the de