Re: Modify the body of a post request Multipar/form-data?
Thanks, I like that ! The files is really very well documented !! I have already read your firefox extension for my module and now it's your apache extension !! Thanks a lot, Eddy On Fri, Jun 11, 2010 at 11:23 PM, Arturo 'Buanzo' Busleiman < bua...@buanzo.com.ar> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Eddy wrote: > > For illustrate my problem : > > > > I have register a filter like in deflate : > > Your problem reminds me of the time when I tried to get help from this list > to implement > mod_openpgp - I recommend you check out mod_transform.c off svn:// > svn.buanzo.org/mod_openpgp which > is a module implemented by Kevin Kiley (author of the excellent mod_gzip) > that allows full request > transformation. > > - -- > Arturo "Buanzo" Busleiman > Independent Linux and Security Consultant - OWASP - SANS - OISSG > http://www.buanzo.com.ar/pro/eng.html > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEAREKAAYFAkwSqWIACgkQAlpOsGhXcE2YYgCeMqMRjKdLlkKgkRU7q4VqR9Hz > Sj8An1EGpaxBiBlFYbHzaOSEb67NuW1l > =tcyQ > -END PGP SIGNATURE- >
Re: Modify the body of a post request Multipar/form-data?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Eddy wrote: > For illustrate my problem : > > I have register a filter like in deflate : Your problem reminds me of the time when I tried to get help from this list to implement mod_openpgp - I recommend you check out mod_transform.c off svn://svn.buanzo.org/mod_openpgp which is a module implemented by Kevin Kiley (author of the excellent mod_gzip) that allows full request transformation. - -- Arturo "Buanzo" Busleiman Independent Linux and Security Consultant - OWASP - SANS - OISSG http://www.buanzo.com.ar/pro/eng.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREKAAYFAkwSqWIACgkQAlpOsGhXcE2YYgCeMqMRjKdLlkKgkRU7q4VqR9Hz Sj8An1EGpaxBiBlFYbHzaOSEb67NuW1l =tcyQ -END PGP SIGNATURE-
Re: Modify the body of a post request Multipar/form-data?
For illustrate my problem : I have register a filter like in deflate : ap_register_input_filter(PerseusFilterName,perseus_in_filter, NULL, AP_FTYPE_CONTENT_SET); In httpd.conf : SetInputFilter PERSEUS So, I test with a crypted content and i hae in error.log : Perseus handler, Perseus header found : pcc [Thu Jun 10 11:29:28 2010] [error] [client 127.0.0.1] PHP Warning: Missing boundary in multipart/form-data POS T data in Unknown on line 0, referer: http://localhost/ Input Filter begin The handler do nothing, then php processes the encrypted content and fails. Then, my Filter begin and decrypt the data but it's too late. May-be I forget something, i don't understand the problem. For the deflate module, just set SetInputFilter Deflate in httpd.conf enought? Eddy On Thu, Jun 10, 2010 at 10:54 AM, Eddy wrote: > Yes i try to do the same thing but I have a problem, my filter begins too > late and php has already process the data. > I must do a error somewhere. > Thanks for your help. > Eddy > > On Thu, Jun 10, 2010 at 10:29 AM, Nick Kew wrote: > >> >> On 10 Jun 2010, at 07:34, Eddy wrote: >> >> > How modify (decrypt data) the body content before all module ? >> >> That's what filters do. >> >> See mod_ssl for secure encryption. Or in your case since it's only the >> body content, see for example mod_deflate for a comparable task. >> >> -- >> Nick Kew >> > >
Re: Modify the body of a post request Multipar/form-data?
Yes i try to do the same thing but I have a problem, my filter begins too late and php has already process the data. I must do a error somewhere. Thanks for your help. Eddy On Thu, Jun 10, 2010 at 10:29 AM, Nick Kew wrote: > > On 10 Jun 2010, at 07:34, Eddy wrote: > > > How modify (decrypt data) the body content before all module ? > > That's what filters do. > > See mod_ssl for secure encryption. Or in your case since it's only the > body content, see for example mod_deflate for a comparable task. > > -- > Nick Kew >
Re: Modify the body of a post request Multipar/form-data?
On 10 Jun 2010, at 07:34, Eddy wrote: > How modify (decrypt data) the body content before all module ? That's what filters do. See mod_ssl for secure encryption. Or in your case since it's only the body content, see for example mod_deflate for a comparable task. -- Nick Kew