w3af-develop Mailing List for w3af (Page 11)
Status: Beta
Brought to you by:
andresriancho
You can subscribe to this list here.
2008 |
Jan
(20) |
Feb
(36) |
Mar
(45) |
Apr
(83) |
May
(100) |
Jun
(86) |
Jul
(68) |
Aug
(143) |
Sep
(41) |
Oct
(58) |
Nov
(47) |
Dec
(66) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(41) |
Feb
(33) |
Mar
(115) |
Apr
(61) |
May
(68) |
Jun
(83) |
Jul
(64) |
Aug
(33) |
Sep
(18) |
Oct
(62) |
Nov
(61) |
Dec
(24) |
2010 |
Jan
(38) |
Feb
(24) |
Mar
(56) |
Apr
(31) |
May
(19) |
Jun
(5) |
Jul
(13) |
Aug
(12) |
Sep
(34) |
Oct
(32) |
Nov
(37) |
Dec
(13) |
2011 |
Jan
(50) |
Feb
(56) |
Mar
(15) |
Apr
(12) |
May
(39) |
Jun
(16) |
Jul
(23) |
Aug
(7) |
Sep
(10) |
Oct
(32) |
Nov
(44) |
Dec
(40) |
2012 |
Jan
(40) |
Feb
(78) |
Mar
(21) |
Apr
(88) |
May
(56) |
Jun
(89) |
Jul
(55) |
Aug
(37) |
Sep
(31) |
Oct
(47) |
Nov
(13) |
Dec
(8) |
2013 |
Jan
(24) |
Feb
(20) |
Mar
(12) |
Apr
(23) |
May
(27) |
Jun
(22) |
Jul
(18) |
Aug
(14) |
Sep
(5) |
Oct
(7) |
Nov
(2) |
Dec
(1) |
2014 |
Jan
(7) |
Feb
(13) |
Mar
(52) |
Apr
(23) |
May
(3) |
Jun
|
Jul
|
Aug
(5) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
(4) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(12) |
Aug
(15) |
Sep
(9) |
Oct
(3) |
Nov
(4) |
Dec
(10) |
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Andres R. <and...@gm...> - 2013-06-25 12:00:51
|
Nothing special. The directory /var/www/scanreports/ needs to be writable by the www-data user. On Tue, Jun 25, 2013 at 8:56 AM, saleem <asa...@cd...> wrote: > as i have written earlier , same code i am using but this time i am trying > to generate the XML output file . > > this is my w3af script : > > http-settings > set timeout 60 > back > plugins > crawl web_spider > crawl config web_spider > set only_forward False > set follow_regex .* > set ignore_regex (?i)(logout|disconnect|signout|exit)+ > back > audit blind_sqli > back > output xml_file > output config xml_file > set output_file /var/www/scanreports/w3af_10.242.92.6_25062013_165727.xml > back > back > target > set target <url> > back > start > exit > > > and this is my php script : > <? > > $w3af_script="22222.w3af"; > > echo "Start of code ::*****"; > > if(is_readable($w3af_script)) > { > > echo "\n"."ready to execute the script in the terminal"; > > `python w3af_console -s $w3af_script`; > > } > > > if(is_readable("w3af_10.242.92.6_25062013_162721.xml")) > > { > echo "-----OOOOOOOOOOOoutput file got generated "; > > } > else > echo "-----FFFFailed to generate the outpt file "; > > > ?> > > > so when i run this as root user it is generating the xml file and if same i > run as www-data user i am unable to get the output xml file . > > please guide me in setting right permissions so that i can get XML as output > file . > > > > > > > > On Tuesday 25 June 2013 05:07 PM, Andres Riancho wrote: >> >> On Tue, Jun 25, 2013 at 7:06 AM, saleem <asa...@cd...> wrote: >>> >>> Thank u andrews for guiding me . >>> >>> i am facing a small problem ,i.e i am unable to generate the XML file >>> from >>> the browser is there any dependency for that ? >>> >>> if i run the same from terminal i am able to generate the XML file , i >>> am >>> using mozilla browser . >> >> The browser has nothing to do with all this. In any case it's PHP and >> the way you call w3af from it. >> >>> On Monday 24 June 2013 06:04 PM, Andres Riancho wrote: >>>> >>>> Saleem, >>>> >>>> On Mon, Jun 24, 2013 at 9:14 AM, saleem <asa...@cd...> wrote: >>>>> >>>>> Thanku so much for that andrews . >>>>> >>>>> now i am able to generate file , but i have having small problem, >>>>> >>>>> i am getting this error at the end of the txt file which got generated >>>>> . >>>>> >>>>> [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate >>>>> ioctl for device') >>>> >>>> Seen this before, but never needed to fix it. I mean... w3af continues >>>> to work, and you only get it when w3af is run "without a terminal". >>>> >>>> How did you fix your original error? >>>> >>>>> any solution for this kind of error !! >>>>> >>>>> >>>>> >>>>> On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: >>>>>> >>>>>> On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >>>>>>> >>>>>>> thanks for the response andrews. >>>>>>> >>>>>>> >>>>>>> Why do you suspect of permissions issue? >>>>>>> >>>>>>> >>>>>>> I suspect permission issue because when i run the code as root user >>>>>>> in >>>>>>> the >>>>>>> terminal it is generating the output file. >>>>>>> >>>>>>> if i run the same code in the browser it is not generating the output >>>>>>> files >>>>>>> . >>>>>> >>>>>> Can be because of other things, like the www-data user not having an >>>>>> environment variable set, or something like that. >>>>>> >>>>>> Try this: >>>>>> >>>>>> sudo -s -H >>>>>> <enter your root password> >>>>>> su www-data >>>>>> cd to-python-install >>>>>> python w3af_console ... >>>>>> >>>>>>> Are you trying "su www-data" and then running the exact same command? >>>>>>> >>>>>>> >>>>>>> i have given www-data:www-data permission to my code as well . >>>>>>> still it is not working. >>>>>>> >>>>>>> i will try to explain once again : >>>>>>> >>>>>>> i have a w3af script for w3af crawl - >>>>>>> http-settings >>>>>>> set timeout 60 >>>>>>> back >>>>>>> plugins >>>>>>> crawl web_spider >>>>>>> crawl config web_spider >>>>>>> set only_forward False >>>>>>> set follow_regex .*http:/localhost.* >>>>>>> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >>>>>>> back >>>>>>> output text_file >>>>>>> output config text_file >>>>>>> set output_file >>>>>>> /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >>>>>>> set verbose False >>>>>>> back >>>>>>> back >>>>>>> target >>>>>>> set target http://localhost:80 >>>>>>> back >>>>>>> start >>>>>>> exit >>>>>>> >>>>>>> >>>>>>> i have called this script in my php code i.e : >>>>>>> >>>>>>> <? >>>>>>> >>>>>>> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >>>>>>> echo "Start of code ::*****"; >>>>>>> >>>>>>> if(is_readable($w3af_script)) >>>>>>> { >>>>>>> >>>>>>> echo "\n"."ready to execute the script in the terminal"; >>>>>>> >>>>>>> `python /var/www/wsafe1/tools/w3af/w3af_console -s >>>>>>> $w3af_script`; >>>>>>> >>>>>>> } >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >>>>>>> { >>>>>>> echo "-----OOOOOOOOOOOoutput file got generated "; >>>>>>> >>>>>>> } >>>>>>> else >>>>>>> echo "-----FFFFailed to generate the outpt file "; >>>>>>> >>>>>>> >>>>>>> ?> >>>>>>> >>>>>>> >>>>>>> >>>>>>> now problem is , i am not getting the file generated if i run the >>>>>>> code >>>>>>> from >>>>>>> the browser or by normal user. >>>>>>> >>>>>>> root user is able to generate the files using the same code . >>>>>>> >>>>>>> >>>>>>> please help me out !!!!! >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>>>>>>> >>>>>>>> Saleem, >>>>>>>> >>>>>>>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> ok thanku for responding andres . >>>>>>>>> >>>>>>>>> fine i will tell u in detail what i have done . >>>>>>>>> >>>>>>>>> Earlier i had older version of w3af(r4473) in which my script was >>>>>>>>> working >>>>>>>>> fine >>>>>>>>> currently i am using >>>>>>>>> w3af - Web Application Attack and Audit Framework >>>>>>>>> Version: 1.5 >>>>>>>>> Revision: 790bb82add >>>>>>>> >>>>>>>> First of all, it was a great idea to update. >>>>>>>> >>>>>>>>> w3af script i have written (attachment) : >>>>>>>>> screenshot 1 >>>>>>>>> PHP script i have written was (attachment): >>>>>>>>> screenshot 2 >>>>>>>> >>>>>>>> I wouldn't run w3af in the request/response process. I'm unsure >>>>>>>> about >>>>>>>> how to do it for PHP, but in python there is Celery which allows you >>>>>>>> to queue work, process results, etc. >>>>>>>> >>>>>>>>> now i have given permission to that php script as well as w3af , >>>>>>>>> using >>>>>>>>> chmod command i have given 777 permissions. >>>>>>>> >>>>>>>> Why do you suspect of permissions issue? >>>>>>>> >>>>>>>>> problem is when i am executing it in terminal i am getting the >>>>>>>>> output >>>>>>>>> , >>>>>>>>> if >>>>>>>>> the same i am executing in the browser i am not getting the output >>>>>>>>> i.e >>>>>>>>> output files are not getting generated . >>>>>>>> >>>>>>>> Are you trying "su www-data" and then running the exact same >>>>>>>> command? >>>>>>>> >>>>>>>>> please help me out and sorry for my english. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>>>>>>> >>>>>>>>>> Saleem, >>>>>>>>>> >>>>>>>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Hi all , >>>>>>>>>>> >>>>>>>>>>> I have written a script which uses w3af script in the background, >>>>>>>>>>> and >>>>>>>>>>> trying >>>>>>>>>>> to execute that script through browser , but i am not getting any >>>>>>>>>>> output >>>>>>>>>>> if >>>>>>>>>>> i do the same in the terminal i am getting the output . >>>>>>>>>>> >>>>>>>>>>> please help me out !!! >>>>>>>>>> >>>>>>>>>> It's almost impossible to answer this question without more >>>>>>>>>> detail. >>>>>>>>>> Also, why do you think this is a w3af problem and not just you >>>>>>>>>> setting >>>>>>>>>> incorrect permissions to the filesystem files? More than glad to >>>>>>>>>> help >>>>>>>>>> if you send details, >>>>>>>>>> >>>>>>>>>> Regards, >>>>>>>>>> >>>>>>>>>>> Thanks & Regards , >>>>>>>>>>> saleem >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>>>> >>>>>>>>>>> This e-mail is for the sole use of the intended recipient(s) and >>>>>>>>>>> may >>>>>>>>>>> contain confidential and privileged information. If you are not >>>>>>>>>>> the >>>>>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>>>>> destroy >>>>>>>>>>> all copies and the original message. Any unauthorized review, >>>>>>>>>>> use, >>>>>>>>>>> disclosure, dissemination, forwarding, printing or copying of >>>>>>>>>>> this >>>>>>>>>>> email >>>>>>>>>>> is strictly prohibited and appropriate legal action will be >>>>>>>>>>> taken. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>> This SF.net email is sponsored by Windows: >>>>>>>>>>> >>>>>>>>>>> Build for Windows Store. >>>>>>>>>>> >>>>>>>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> W3af-develop mailing list >>>>>>>>>>> W3a...@li... >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Andrés Riancho >>>>>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>>>>> Web Application Attack and Audit Framework >>>>>>>>>> Twitter: @w3af >>>>>>>>>> GPG: 0x93C344F3 >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>> >>>>>>>>> This e-mail is for the sole use of the intended recipient(s) and >>>>>>>>> may >>>>>>>>> contain confidential and privileged information. If you are not the >>>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>>> destroy >>>>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>>>> email >>>>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>> >>>>>>>> -- >>>>>>>> Andrés Riancho >>>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>>> Web Application Attack and Audit Framework >>>>>>>> Twitter: @w3af >>>>>>>> GPG: 0x93C344F3 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>>> contain confidential and privileged information. If you are not the >>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>> destroy >>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>> email >>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>> -- >>>>>> Andrés Riancho >>>>>> Project Leader at w3af - http://w3af.org/ >>>>>> Web Application Attack and Audit Framework >>>>>> Twitter: @w3af >>>>>> GPG: 0x93C344F3 >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>> contain confidential and privileged information. If you are not the >>>>> intended recipient, please contact the sender by reply e-mail and >>>>> destroy >>>>> all copies and the original message. Any unauthorized review, use, >>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>> email >>>>> is strictly prohibited and appropriate legal action will be taken. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>> >>>> -- >>>> Andrés Riancho >>>> Project Leader at w3af - http://w3af.org/ >>>> Web Application Attack and Audit Framework >>>> Twitter: @w3af >>>> GPG: 0x93C344F3 >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> This e-mail is for the sole use of the intended recipient(s) and may >>> contain confidential and privileged information. If you are not the >>> intended recipient, please contact the sender by reply e-mail and destroy >>> all copies and the original message. Any unauthorized review, use, >>> disclosure, dissemination, forwarding, printing or copying of this email >>> is strictly prohibited and appropriate legal action will be taken. >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> >> > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-25 11:55:23
|
as i have written earlier , same code i am using but this time i am trying to generate the XML output file . this is my w3af script : http-settings set timeout 60 back plugins crawl web_spider crawl config web_spider set only_forward False set follow_regex .* set ignore_regex (?i)(logout|disconnect|signout|exit)+ back audit blind_sqli back output xml_file output config xml_file set output_file /var/www/scanreports/w3af_10.242.92.6_25062013_165727.xml back back target set target <url> back start exit and this is my php script : <? $w3af_script="22222.w3af"; echo "Start of code ::*****"; if(is_readable($w3af_script)) { echo "\n"."ready to execute the script in the terminal"; `python w3af_console -s $w3af_script`; } if(is_readable("w3af_10.242.92.6_25062013_162721.xml")) { echo "-----OOOOOOOOOOOoutput file got generated "; } else echo "-----FFFFailed to generate the outpt file "; ?> so when i run this as root user it is generating the xml file and if same i run as www-data user i am unable to get the output xml file . please guide me in setting right permissions so that i can get XML as output file . On Tuesday 25 June 2013 05:07 PM, Andres Riancho wrote: > On Tue, Jun 25, 2013 at 7:06 AM, saleem <asa...@cd...> wrote: >> Thank u andrews for guiding me . >> >> i am facing a small problem ,i.e i am unable to generate the XML file from >> the browser is there any dependency for that ? >> >> if i run the same from terminal i am able to generate the XML file , i am >> using mozilla browser . > The browser has nothing to do with all this. In any case it's PHP and > the way you call w3af from it. > >> On Monday 24 June 2013 06:04 PM, Andres Riancho wrote: >>> Saleem, >>> >>> On Mon, Jun 24, 2013 at 9:14 AM, saleem <asa...@cd...> wrote: >>>> Thanku so much for that andrews . >>>> >>>> now i am able to generate file , but i have having small problem, >>>> >>>> i am getting this error at the end of the txt file which got generated . >>>> >>>> [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate >>>> ioctl for device') >>> Seen this before, but never needed to fix it. I mean... w3af continues >>> to work, and you only get it when w3af is run "without a terminal". >>> >>> How did you fix your original error? >>> >>>> any solution for this kind of error !! >>>> >>>> >>>> >>>> On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: >>>>> On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >>>>>> thanks for the response andrews. >>>>>> >>>>>> >>>>>> Why do you suspect of permissions issue? >>>>>> >>>>>> >>>>>> I suspect permission issue because when i run the code as root user in >>>>>> the >>>>>> terminal it is generating the output file. >>>>>> >>>>>> if i run the same code in the browser it is not generating the output >>>>>> files >>>>>> . >>>>> Can be because of other things, like the www-data user not having an >>>>> environment variable set, or something like that. >>>>> >>>>> Try this: >>>>> >>>>> sudo -s -H >>>>> <enter your root password> >>>>> su www-data >>>>> cd to-python-install >>>>> python w3af_console ... >>>>> >>>>>> Are you trying "su www-data" and then running the exact same command? >>>>>> >>>>>> >>>>>> i have given www-data:www-data permission to my code as well . >>>>>> still it is not working. >>>>>> >>>>>> i will try to explain once again : >>>>>> >>>>>> i have a w3af script for w3af crawl - >>>>>> http-settings >>>>>> set timeout 60 >>>>>> back >>>>>> plugins >>>>>> crawl web_spider >>>>>> crawl config web_spider >>>>>> set only_forward False >>>>>> set follow_regex .*http:/localhost.* >>>>>> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >>>>>> back >>>>>> output text_file >>>>>> output config text_file >>>>>> set output_file >>>>>> /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >>>>>> set verbose False >>>>>> back >>>>>> back >>>>>> target >>>>>> set target http://localhost:80 >>>>>> back >>>>>> start >>>>>> exit >>>>>> >>>>>> >>>>>> i have called this script in my php code i.e : >>>>>> >>>>>> <? >>>>>> >>>>>> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >>>>>> echo "Start of code ::*****"; >>>>>> >>>>>> if(is_readable($w3af_script)) >>>>>> { >>>>>> >>>>>> echo "\n"."ready to execute the script in the terminal"; >>>>>> >>>>>> `python /var/www/wsafe1/tools/w3af/w3af_console -s >>>>>> $w3af_script`; >>>>>> >>>>>> } >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >>>>>> { >>>>>> echo "-----OOOOOOOOOOOoutput file got generated "; >>>>>> >>>>>> } >>>>>> else >>>>>> echo "-----FFFFailed to generate the outpt file "; >>>>>> >>>>>> >>>>>> ?> >>>>>> >>>>>> >>>>>> >>>>>> now problem is , i am not getting the file generated if i run the code >>>>>> from >>>>>> the browser or by normal user. >>>>>> >>>>>> root user is able to generate the files using the same code . >>>>>> >>>>>> >>>>>> please help me out !!!!! >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>>>>>> Saleem, >>>>>>> >>>>>>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>>>>>>> ok thanku for responding andres . >>>>>>>> >>>>>>>> fine i will tell u in detail what i have done . >>>>>>>> >>>>>>>> Earlier i had older version of w3af(r4473) in which my script was >>>>>>>> working >>>>>>>> fine >>>>>>>> currently i am using >>>>>>>> w3af - Web Application Attack and Audit Framework >>>>>>>> Version: 1.5 >>>>>>>> Revision: 790bb82add >>>>>>> First of all, it was a great idea to update. >>>>>>> >>>>>>>> w3af script i have written (attachment) : >>>>>>>> screenshot 1 >>>>>>>> PHP script i have written was (attachment): >>>>>>>> screenshot 2 >>>>>>> I wouldn't run w3af in the request/response process. I'm unsure about >>>>>>> how to do it for PHP, but in python there is Celery which allows you >>>>>>> to queue work, process results, etc. >>>>>>> >>>>>>>> now i have given permission to that php script as well as w3af , >>>>>>>> using >>>>>>>> chmod command i have given 777 permissions. >>>>>>> Why do you suspect of permissions issue? >>>>>>> >>>>>>>> problem is when i am executing it in terminal i am getting the output >>>>>>>> , >>>>>>>> if >>>>>>>> the same i am executing in the browser i am not getting the output >>>>>>>> i.e >>>>>>>> output files are not getting generated . >>>>>>> Are you trying "su www-data" and then running the exact same command? >>>>>>> >>>>>>>> please help me out and sorry for my english. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>>>>>> Saleem, >>>>>>>>> >>>>>>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> >>>>>>>>> wrote: >>>>>>>>>> Hi all , >>>>>>>>>> >>>>>>>>>> I have written a script which uses w3af script in the background, >>>>>>>>>> and >>>>>>>>>> trying >>>>>>>>>> to execute that script through browser , but i am not getting any >>>>>>>>>> output >>>>>>>>>> if >>>>>>>>>> i do the same in the terminal i am getting the output . >>>>>>>>>> >>>>>>>>>> please help me out !!! >>>>>>>>> It's almost impossible to answer this question without more detail. >>>>>>>>> Also, why do you think this is a w3af problem and not just you >>>>>>>>> setting >>>>>>>>> incorrect permissions to the filesystem files? More than glad to >>>>>>>>> help >>>>>>>>> if you send details, >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> >>>>>>>>>> Thanks & Regards , >>>>>>>>>> saleem >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>>> >>>>>>>>>> This e-mail is for the sole use of the intended recipient(s) and >>>>>>>>>> may >>>>>>>>>> contain confidential and privileged information. If you are not the >>>>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>>>> destroy >>>>>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>>>>> email >>>>>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>> This SF.net email is sponsored by Windows: >>>>>>>>>> >>>>>>>>>> Build for Windows Store. >>>>>>>>>> >>>>>>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>>>>>> _______________________________________________ >>>>>>>>>> W3af-develop mailing list >>>>>>>>>> W3a...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Andrés Riancho >>>>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>>>> Web Application Attack and Audit Framework >>>>>>>>> Twitter: @w3af >>>>>>>>> GPG: 0x93C344F3 >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>>>> contain confidential and privileged information. If you are not the >>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>> destroy >>>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>>> email >>>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>> -- >>>>>>> Andrés Riancho >>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>> Web Application Attack and Audit Framework >>>>>>> Twitter: @w3af >>>>>>> GPG: 0x93C344F3 >>>>>>> >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>> contain confidential and privileged information. If you are not the >>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>> destroy >>>>>> all copies and the original message. Any unauthorized review, use, >>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>> email >>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>> -- >>>>> Andrés Riancho >>>>> Project Leader at w3af - http://w3af.org/ >>>>> Web Application Attack and Audit Framework >>>>> Twitter: @w3af >>>>> GPG: 0x93C344F3 >>>>> >>>>> >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>>> This e-mail is for the sole use of the intended recipient(s) and may >>>> contain confidential and privileged information. If you are not the >>>> intended recipient, please contact the sender by reply e-mail and destroy >>>> all copies and the original message. Any unauthorized review, use, >>>> disclosure, dissemination, forwarding, printing or copying of this email >>>> is strictly prohibited and appropriate legal action will be taken. >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>> >>> -- >>> Andrés Riancho >>> Project Leader at w3af - http://w3af.org/ >>> Web Application Attack and Audit Framework >>> Twitter: @w3af >>> GPG: 0x93C344F3 >>> >>> >> >> ------------------------------------------------------------------------------------------------------------------------------- >> >> This e-mail is for the sole use of the intended recipient(s) and may >> contain confidential and privileged information. If you are not the >> intended recipient, please contact the sender by reply e-mail and destroy >> all copies and the original message. Any unauthorized review, use, >> disclosure, dissemination, forwarding, printing or copying of this email >> is strictly prohibited and appropriate legal action will be taken. >> ------------------------------------------------------------------------------------------------------------------------------- >> > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-25 11:38:01
|
On Tue, Jun 25, 2013 at 7:06 AM, saleem <asa...@cd...> wrote: > Thank u andrews for guiding me . > > i am facing a small problem ,i.e i am unable to generate the XML file from > the browser is there any dependency for that ? > > if i run the same from terminal i am able to generate the XML file , i am > using mozilla browser . The browser has nothing to do with all this. In any case it's PHP and the way you call w3af from it. > > On Monday 24 June 2013 06:04 PM, Andres Riancho wrote: >> >> Saleem, >> >> On Mon, Jun 24, 2013 at 9:14 AM, saleem <asa...@cd...> wrote: >>> >>> Thanku so much for that andrews . >>> >>> now i am able to generate file , but i have having small problem, >>> >>> i am getting this error at the end of the txt file which got generated . >>> >>> [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate >>> ioctl for device') >> >> Seen this before, but never needed to fix it. I mean... w3af continues >> to work, and you only get it when w3af is run "without a terminal". >> >> How did you fix your original error? >> >>> any solution for this kind of error !! >>> >>> >>> >>> On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: >>>> >>>> On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >>>>> >>>>> thanks for the response andrews. >>>>> >>>>> >>>>> Why do you suspect of permissions issue? >>>>> >>>>> >>>>> I suspect permission issue because when i run the code as root user in >>>>> the >>>>> terminal it is generating the output file. >>>>> >>>>> if i run the same code in the browser it is not generating the output >>>>> files >>>>> . >>>> >>>> Can be because of other things, like the www-data user not having an >>>> environment variable set, or something like that. >>>> >>>> Try this: >>>> >>>> sudo -s -H >>>> <enter your root password> >>>> su www-data >>>> cd to-python-install >>>> python w3af_console ... >>>> >>>>> Are you trying "su www-data" and then running the exact same command? >>>>> >>>>> >>>>> i have given www-data:www-data permission to my code as well . >>>>> still it is not working. >>>>> >>>>> i will try to explain once again : >>>>> >>>>> i have a w3af script for w3af crawl - >>>>> http-settings >>>>> set timeout 60 >>>>> back >>>>> plugins >>>>> crawl web_spider >>>>> crawl config web_spider >>>>> set only_forward False >>>>> set follow_regex .*http:/localhost.* >>>>> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >>>>> back >>>>> output text_file >>>>> output config text_file >>>>> set output_file >>>>> /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >>>>> set verbose False >>>>> back >>>>> back >>>>> target >>>>> set target http://localhost:80 >>>>> back >>>>> start >>>>> exit >>>>> >>>>> >>>>> i have called this script in my php code i.e : >>>>> >>>>> <? >>>>> >>>>> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >>>>> echo "Start of code ::*****"; >>>>> >>>>> if(is_readable($w3af_script)) >>>>> { >>>>> >>>>> echo "\n"."ready to execute the script in the terminal"; >>>>> >>>>> `python /var/www/wsafe1/tools/w3af/w3af_console -s >>>>> $w3af_script`; >>>>> >>>>> } >>>>> >>>>> >>>>> >>>>> >>>>> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >>>>> { >>>>> echo "-----OOOOOOOOOOOoutput file got generated "; >>>>> >>>>> } >>>>> else >>>>> echo "-----FFFFailed to generate the outpt file "; >>>>> >>>>> >>>>> ?> >>>>> >>>>> >>>>> >>>>> now problem is , i am not getting the file generated if i run the code >>>>> from >>>>> the browser or by normal user. >>>>> >>>>> root user is able to generate the files using the same code . >>>>> >>>>> >>>>> please help me out !!!!! >>>>> >>>>> >>>>> >>>>> >>>>> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>>>>> >>>>>> Saleem, >>>>>> >>>>>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>>>>>> >>>>>>> ok thanku for responding andres . >>>>>>> >>>>>>> fine i will tell u in detail what i have done . >>>>>>> >>>>>>> Earlier i had older version of w3af(r4473) in which my script was >>>>>>> working >>>>>>> fine >>>>>>> currently i am using >>>>>>> w3af - Web Application Attack and Audit Framework >>>>>>> Version: 1.5 >>>>>>> Revision: 790bb82add >>>>>> >>>>>> First of all, it was a great idea to update. >>>>>> >>>>>>> w3af script i have written (attachment) : >>>>>>> screenshot 1 >>>>>>> PHP script i have written was (attachment): >>>>>>> screenshot 2 >>>>>> >>>>>> I wouldn't run w3af in the request/response process. I'm unsure about >>>>>> how to do it for PHP, but in python there is Celery which allows you >>>>>> to queue work, process results, etc. >>>>>> >>>>>>> now i have given permission to that php script as well as w3af , >>>>>>> using >>>>>>> chmod command i have given 777 permissions. >>>>>> >>>>>> Why do you suspect of permissions issue? >>>>>> >>>>>>> problem is when i am executing it in terminal i am getting the output >>>>>>> , >>>>>>> if >>>>>>> the same i am executing in the browser i am not getting the output >>>>>>> i.e >>>>>>> output files are not getting generated . >>>>>> >>>>>> Are you trying "su www-data" and then running the exact same command? >>>>>> >>>>>>> please help me out and sorry for my english. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>>>>> >>>>>>>> Saleem, >>>>>>>> >>>>>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi all , >>>>>>>>> >>>>>>>>> I have written a script which uses w3af script in the background, >>>>>>>>> and >>>>>>>>> trying >>>>>>>>> to execute that script through browser , but i am not getting any >>>>>>>>> output >>>>>>>>> if >>>>>>>>> i do the same in the terminal i am getting the output . >>>>>>>>> >>>>>>>>> please help me out !!! >>>>>>>> >>>>>>>> It's almost impossible to answer this question without more detail. >>>>>>>> Also, why do you think this is a w3af problem and not just you >>>>>>>> setting >>>>>>>> incorrect permissions to the filesystem files? More than glad to >>>>>>>> help >>>>>>>> if you send details, >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>>> Thanks & Regards , >>>>>>>>> saleem >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>> >>>>>>>>> This e-mail is for the sole use of the intended recipient(s) and >>>>>>>>> may >>>>>>>>> contain confidential and privileged information. If you are not the >>>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>>> destroy >>>>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>>>> email >>>>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> This SF.net email is sponsored by Windows: >>>>>>>>> >>>>>>>>> Build for Windows Store. >>>>>>>>> >>>>>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>>>>> _______________________________________________ >>>>>>>>> W3af-develop mailing list >>>>>>>>> W3a...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Andrés Riancho >>>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>>> Web Application Attack and Audit Framework >>>>>>>> Twitter: @w3af >>>>>>>> GPG: 0x93C344F3 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>>> contain confidential and privileged information. If you are not the >>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>> destroy >>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>> email >>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>> -- >>>>>> Andrés Riancho >>>>>> Project Leader at w3af - http://w3af.org/ >>>>>> Web Application Attack and Audit Framework >>>>>> Twitter: @w3af >>>>>> GPG: 0x93C344F3 >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>> contain confidential and privileged information. If you are not the >>>>> intended recipient, please contact the sender by reply e-mail and >>>>> destroy >>>>> all copies and the original message. Any unauthorized review, use, >>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>> email >>>>> is strictly prohibited and appropriate legal action will be taken. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>> >>>> -- >>>> Andrés Riancho >>>> Project Leader at w3af - http://w3af.org/ >>>> Web Application Attack and Audit Framework >>>> Twitter: @w3af >>>> GPG: 0x93C344F3 >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> This e-mail is for the sole use of the intended recipient(s) and may >>> contain confidential and privileged information. If you are not the >>> intended recipient, please contact the sender by reply e-mail and destroy >>> all copies and the original message. Any unauthorized review, use, >>> disclosure, dissemination, forwarding, printing or copying of this email >>> is strictly prohibited and appropriate legal action will be taken. >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> >> > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-25 10:04:58
|
Thank u andrews for guiding me . i am facing a small problem ,i.e i am unable to generate the XML file from the browser is there any dependency for that ? if i run the same from terminal i am able to generate the XML file , i am using mozilla browser . On Monday 24 June 2013 06:04 PM, Andres Riancho wrote: > Saleem, > > On Mon, Jun 24, 2013 at 9:14 AM, saleem <asa...@cd...> wrote: >> Thanku so much for that andrews . >> >> now i am able to generate file , but i have having small problem, >> >> i am getting this error at the end of the txt file which got generated . >> >> [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate >> ioctl for device') > Seen this before, but never needed to fix it. I mean... w3af continues > to work, and you only get it when w3af is run "without a terminal". > > How did you fix your original error? > >> any solution for this kind of error !! >> >> >> >> On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: >>> On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >>>> thanks for the response andrews. >>>> >>>> >>>> Why do you suspect of permissions issue? >>>> >>>> >>>> I suspect permission issue because when i run the code as root user in >>>> the >>>> terminal it is generating the output file. >>>> >>>> if i run the same code in the browser it is not generating the output >>>> files >>>> . >>> Can be because of other things, like the www-data user not having an >>> environment variable set, or something like that. >>> >>> Try this: >>> >>> sudo -s -H >>> <enter your root password> >>> su www-data >>> cd to-python-install >>> python w3af_console ... >>> >>>> Are you trying "su www-data" and then running the exact same command? >>>> >>>> >>>> i have given www-data:www-data permission to my code as well . >>>> still it is not working. >>>> >>>> i will try to explain once again : >>>> >>>> i have a w3af script for w3af crawl - >>>> http-settings >>>> set timeout 60 >>>> back >>>> plugins >>>> crawl web_spider >>>> crawl config web_spider >>>> set only_forward False >>>> set follow_regex .*http:/localhost.* >>>> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >>>> back >>>> output text_file >>>> output config text_file >>>> set output_file /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >>>> set verbose False >>>> back >>>> back >>>> target >>>> set target http://localhost:80 >>>> back >>>> start >>>> exit >>>> >>>> >>>> i have called this script in my php code i.e : >>>> >>>> <? >>>> >>>> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >>>> echo "Start of code ::*****"; >>>> >>>> if(is_readable($w3af_script)) >>>> { >>>> >>>> echo "\n"."ready to execute the script in the terminal"; >>>> >>>> `python /var/www/wsafe1/tools/w3af/w3af_console -s >>>> $w3af_script`; >>>> >>>> } >>>> >>>> >>>> >>>> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >>>> { >>>> echo "-----OOOOOOOOOOOoutput file got generated "; >>>> >>>> } >>>> else >>>> echo "-----FFFFailed to generate the outpt file "; >>>> >>>> >>>> ?> >>>> >>>> >>>> >>>> now problem is , i am not getting the file generated if i run the code >>>> from >>>> the browser or by normal user. >>>> >>>> root user is able to generate the files using the same code . >>>> >>>> >>>> please help me out !!!!! >>>> >>>> >>>> >>>> >>>> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>>>> Saleem, >>>>> >>>>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>>>>> ok thanku for responding andres . >>>>>> >>>>>> fine i will tell u in detail what i have done . >>>>>> >>>>>> Earlier i had older version of w3af(r4473) in which my script was >>>>>> working >>>>>> fine >>>>>> currently i am using >>>>>> w3af - Web Application Attack and Audit Framework >>>>>> Version: 1.5 >>>>>> Revision: 790bb82add >>>>> First of all, it was a great idea to update. >>>>> >>>>>> w3af script i have written (attachment) : >>>>>> screenshot 1 >>>>>> PHP script i have written was (attachment): >>>>>> screenshot 2 >>>>> I wouldn't run w3af in the request/response process. I'm unsure about >>>>> how to do it for PHP, but in python there is Celery which allows you >>>>> to queue work, process results, etc. >>>>> >>>>>> now i have given permission to that php script as well as w3af , using >>>>>> chmod command i have given 777 permissions. >>>>> Why do you suspect of permissions issue? >>>>> >>>>>> problem is when i am executing it in terminal i am getting the output , >>>>>> if >>>>>> the same i am executing in the browser i am not getting the output i.e >>>>>> output files are not getting generated . >>>>> Are you trying "su www-data" and then running the exact same command? >>>>> >>>>>> please help me out and sorry for my english. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>>>> Saleem, >>>>>>> >>>>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>>>>>>> Hi all , >>>>>>>> >>>>>>>> I have written a script which uses w3af script in the background, and >>>>>>>> trying >>>>>>>> to execute that script through browser , but i am not getting any >>>>>>>> output >>>>>>>> if >>>>>>>> i do the same in the terminal i am getting the output . >>>>>>>> >>>>>>>> please help me out !!! >>>>>>> It's almost impossible to answer this question without more detail. >>>>>>> Also, why do you think this is a w3af problem and not just you setting >>>>>>> incorrect permissions to the filesystem files? More than glad to help >>>>>>> if you send details, >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>>> Thanks & Regards , >>>>>>>> saleem >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>>>> contain confidential and privileged information. If you are not the >>>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>>> destroy >>>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>>> email >>>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> This SF.net email is sponsored by Windows: >>>>>>>> >>>>>>>> Build for Windows Store. >>>>>>>> >>>>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>>>> _______________________________________________ >>>>>>>> W3af-develop mailing list >>>>>>>> W3a...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Andrés Riancho >>>>>>> Project Leader at w3af - http://w3af.org/ >>>>>>> Web Application Attack and Audit Framework >>>>>>> Twitter: @w3af >>>>>>> GPG: 0x93C344F3 >>>>>>> >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>> contain confidential and privileged information. If you are not the >>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>> destroy >>>>>> all copies and the original message. Any unauthorized review, use, >>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>> email >>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>> -- >>>>> Andrés Riancho >>>>> Project Leader at w3af - http://w3af.org/ >>>>> Web Application Attack and Audit Framework >>>>> Twitter: @w3af >>>>> GPG: 0x93C344F3 >>>>> >>>>> >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>>> This e-mail is for the sole use of the intended recipient(s) and may >>>> contain confidential and privileged information. If you are not the >>>> intended recipient, please contact the sender by reply e-mail and destroy >>>> all copies and the original message. Any unauthorized review, use, >>>> disclosure, dissemination, forwarding, printing or copying of this email >>>> is strictly prohibited and appropriate legal action will be taken. >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>> >>> -- >>> Andrés Riancho >>> Project Leader at w3af - http://w3af.org/ >>> Web Application Attack and Audit Framework >>> Twitter: @w3af >>> GPG: 0x93C344F3 >>> >>> >> >> ------------------------------------------------------------------------------------------------------------------------------- >> >> This e-mail is for the sole use of the intended recipient(s) and may >> contain confidential and privileged information. If you are not the >> intended recipient, please contact the sender by reply e-mail and destroy >> all copies and the original message. Any unauthorized review, use, >> disclosure, dissemination, forwarding, printing or copying of this email >> is strictly prohibited and appropriate legal action will be taken. >> ------------------------------------------------------------------------------------------------------------------------------- >> > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-24 12:34:43
|
Saleem, On Mon, Jun 24, 2013 at 9:14 AM, saleem <asa...@cd...> wrote: > Thanku so much for that andrews . > > now i am able to generate file , but i have having small problem, > > i am getting this error at the end of the txt file which got generated . > > [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate > ioctl for device') Seen this before, but never needed to fix it. I mean... w3af continues to work, and you only get it when w3af is run "without a terminal". How did you fix your original error? > any solution for this kind of error !! > > > > On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: >> >> On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >>> >>> thanks for the response andrews. >>> >>> >>> Why do you suspect of permissions issue? >>> >>> >>> I suspect permission issue because when i run the code as root user in >>> the >>> terminal it is generating the output file. >>> >>> if i run the same code in the browser it is not generating the output >>> files >>> . >> >> Can be because of other things, like the www-data user not having an >> environment variable set, or something like that. >> >> Try this: >> >> sudo -s -H >> <enter your root password> >> su www-data >> cd to-python-install >> python w3af_console ... >> >>> Are you trying "su www-data" and then running the exact same command? >>> >>> >>> i have given www-data:www-data permission to my code as well . >>> still it is not working. >>> >>> i will try to explain once again : >>> >>> i have a w3af script for w3af crawl - >>> http-settings >>> set timeout 60 >>> back >>> plugins >>> crawl web_spider >>> crawl config web_spider >>> set only_forward False >>> set follow_regex .*http:/localhost.* >>> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >>> back >>> output text_file >>> output config text_file >>> set output_file /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >>> set verbose False >>> back >>> back >>> target >>> set target http://localhost:80 >>> back >>> start >>> exit >>> >>> >>> i have called this script in my php code i.e : >>> >>> <? >>> >>> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >>> echo "Start of code ::*****"; >>> >>> if(is_readable($w3af_script)) >>> { >>> >>> echo "\n"."ready to execute the script in the terminal"; >>> >>> `python /var/www/wsafe1/tools/w3af/w3af_console -s >>> $w3af_script`; >>> >>> } >>> >>> >>> >>> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >>> { >>> echo "-----OOOOOOOOOOOoutput file got generated "; >>> >>> } >>> else >>> echo "-----FFFFailed to generate the outpt file "; >>> >>> >>> ?> >>> >>> >>> >>> now problem is , i am not getting the file generated if i run the code >>> from >>> the browser or by normal user. >>> >>> root user is able to generate the files using the same code . >>> >>> >>> please help me out !!!!! >>> >>> >>> >>> >>> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>>> >>>> Saleem, >>>> >>>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>>>> >>>>> ok thanku for responding andres . >>>>> >>>>> fine i will tell u in detail what i have done . >>>>> >>>>> Earlier i had older version of w3af(r4473) in which my script was >>>>> working >>>>> fine >>>>> currently i am using >>>>> w3af - Web Application Attack and Audit Framework >>>>> Version: 1.5 >>>>> Revision: 790bb82add >>>> >>>> First of all, it was a great idea to update. >>>> >>>>> w3af script i have written (attachment) : >>>>> screenshot 1 >>>>> PHP script i have written was (attachment): >>>>> screenshot 2 >>>> >>>> I wouldn't run w3af in the request/response process. I'm unsure about >>>> how to do it for PHP, but in python there is Celery which allows you >>>> to queue work, process results, etc. >>>> >>>>> now i have given permission to that php script as well as w3af , using >>>>> chmod command i have given 777 permissions. >>>> >>>> Why do you suspect of permissions issue? >>>> >>>>> problem is when i am executing it in terminal i am getting the output , >>>>> if >>>>> the same i am executing in the browser i am not getting the output i.e >>>>> output files are not getting generated . >>>> >>>> Are you trying "su www-data" and then running the exact same command? >>>> >>>>> please help me out and sorry for my english. >>>>> >>>>> >>>>> >>>>> >>>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>>> >>>>>> Saleem, >>>>>> >>>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>>>>>> >>>>>>> Hi all , >>>>>>> >>>>>>> I have written a script which uses w3af script in the background, and >>>>>>> trying >>>>>>> to execute that script through browser , but i am not getting any >>>>>>> output >>>>>>> if >>>>>>> i do the same in the terminal i am getting the output . >>>>>>> >>>>>>> please help me out !!! >>>>>> >>>>>> It's almost impossible to answer this question without more detail. >>>>>> Also, why do you think this is a w3af problem and not just you setting >>>>>> incorrect permissions to the filesystem files? More than glad to help >>>>>> if you send details, >>>>>> >>>>>> Regards, >>>>>> >>>>>>> Thanks & Regards , >>>>>>> saleem >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>>> contain confidential and privileged information. If you are not the >>>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>>> destroy >>>>>>> all copies and the original message. Any unauthorized review, use, >>>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>>> email >>>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> This SF.net email is sponsored by Windows: >>>>>>> >>>>>>> Build for Windows Store. >>>>>>> >>>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>>> _______________________________________________ >>>>>>> W3af-develop mailing list >>>>>>> W3a...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Andrés Riancho >>>>>> Project Leader at w3af - http://w3af.org/ >>>>>> Web Application Attack and Audit Framework >>>>>> Twitter: @w3af >>>>>> GPG: 0x93C344F3 >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>> contain confidential and privileged information. If you are not the >>>>> intended recipient, please contact the sender by reply e-mail and >>>>> destroy >>>>> all copies and the original message. Any unauthorized review, use, >>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>> email >>>>> is strictly prohibited and appropriate legal action will be taken. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>> >>>> -- >>>> Andrés Riancho >>>> Project Leader at w3af - http://w3af.org/ >>>> Web Application Attack and Audit Framework >>>> Twitter: @w3af >>>> GPG: 0x93C344F3 >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> This e-mail is for the sole use of the intended recipient(s) and may >>> contain confidential and privileged information. If you are not the >>> intended recipient, please contact the sender by reply e-mail and destroy >>> all copies and the original message. Any unauthorized review, use, >>> disclosure, dissemination, forwarding, printing or copying of this email >>> is strictly prohibited and appropriate legal action will be taken. >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> >> > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-24 12:13:22
|
Thanku so much for that andrews . now i am able to generate file , but i have having small problem, i am getting this error at the end of the txt file which got generated . [Mon Jun 24 17:19:43 2013 - console] termios error: (25, 'Inappropriate ioctl for device') any solution for this kind of error !! On Monday 24 June 2013 04:58 PM, Andres Riancho wrote: > On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: >> thanks for the response andrews. >> >> >> Why do you suspect of permissions issue? >> >> >> I suspect permission issue because when i run the code as root user in the >> terminal it is generating the output file. >> >> if i run the same code in the browser it is not generating the output files >> . > Can be because of other things, like the www-data user not having an > environment variable set, or something like that. > > Try this: > > sudo -s -H > <enter your root password> > su www-data > cd to-python-install > python w3af_console ... > >> Are you trying "su www-data" and then running the exact same command? >> >> >> i have given www-data:www-data permission to my code as well . >> still it is not working. >> >> i will try to explain once again : >> >> i have a w3af script for w3af crawl - >> http-settings >> set timeout 60 >> back >> plugins >> crawl web_spider >> crawl config web_spider >> set only_forward False >> set follow_regex .*http:/localhost.* >> set ignore_regex (?i)(logout|disconnect|signout|exit)+ >> back >> output text_file >> output config text_file >> set output_file /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt >> set verbose False >> back >> back >> target >> set target http://localhost:80 >> back >> start >> exit >> >> >> i have called this script in my php code i.e : >> >> <? >> >> $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; >> echo "Start of code ::*****"; >> >> if(is_readable($w3af_script)) >> { >> >> echo "\n"."ready to execute the script in the terminal"; >> >> `python /var/www/wsafe1/tools/w3af/w3af_console -s $w3af_script`; >> >> } >> >> >> if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) >> { >> echo "-----OOOOOOOOOOOoutput file got generated "; >> >> } >> else >> echo "-----FFFFailed to generate the outpt file "; >> >> >> ?> >> >> >> >> now problem is , i am not getting the file generated if i run the code from >> the browser or by normal user. >> >> root user is able to generate the files using the same code . >> >> >> please help me out !!!!! >> >> >> >> >> On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >>> Saleem, >>> >>> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>>> ok thanku for responding andres . >>>> >>>> fine i will tell u in detail what i have done . >>>> >>>> Earlier i had older version of w3af(r4473) in which my script was working >>>> fine >>>> currently i am using >>>> w3af - Web Application Attack and Audit Framework >>>> Version: 1.5 >>>> Revision: 790bb82add >>> First of all, it was a great idea to update. >>> >>>> w3af script i have written (attachment) : >>>> screenshot 1 >>>> PHP script i have written was (attachment): >>>> screenshot 2 >>> I wouldn't run w3af in the request/response process. I'm unsure about >>> how to do it for PHP, but in python there is Celery which allows you >>> to queue work, process results, etc. >>> >>>> now i have given permission to that php script as well as w3af , using >>>> chmod command i have given 777 permissions. >>> Why do you suspect of permissions issue? >>> >>>> problem is when i am executing it in terminal i am getting the output , >>>> if >>>> the same i am executing in the browser i am not getting the output i.e >>>> output files are not getting generated . >>> Are you trying "su www-data" and then running the exact same command? >>> >>>> please help me out and sorry for my english. >>>> >>>> >>>> >>>> >>>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>>> Saleem, >>>>> >>>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>>>>> Hi all , >>>>>> >>>>>> I have written a script which uses w3af script in the background, and >>>>>> trying >>>>>> to execute that script through browser , but i am not getting any >>>>>> output >>>>>> if >>>>>> i do the same in the terminal i am getting the output . >>>>>> >>>>>> please help me out !!! >>>>> It's almost impossible to answer this question without more detail. >>>>> Also, why do you think this is a w3af problem and not just you setting >>>>> incorrect permissions to the filesystem files? More than glad to help >>>>> if you send details, >>>>> >>>>> Regards, >>>>> >>>>>> Thanks & Regards , >>>>>> saleem >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>>> contain confidential and privileged information. If you are not the >>>>>> intended recipient, please contact the sender by reply e-mail and >>>>>> destroy >>>>>> all copies and the original message. Any unauthorized review, use, >>>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>>> email >>>>>> is strictly prohibited and appropriate legal action will be taken. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> This SF.net email is sponsored by Windows: >>>>>> >>>>>> Build for Windows Store. >>>>>> >>>>>> http://p.sf.net/sfu/windows-dev2dev >>>>>> _______________________________________________ >>>>>> W3af-develop mailing list >>>>>> W3a...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>>> >>>>> >>>>> -- >>>>> Andrés Riancho >>>>> Project Leader at w3af - http://w3af.org/ >>>>> Web Application Attack and Audit Framework >>>>> Twitter: @w3af >>>>> GPG: 0x93C344F3 >>>>> >>>>> >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>>> This e-mail is for the sole use of the intended recipient(s) and may >>>> contain confidential and privileged information. If you are not the >>>> intended recipient, please contact the sender by reply e-mail and destroy >>>> all copies and the original message. Any unauthorized review, use, >>>> disclosure, dissemination, forwarding, printing or copying of this email >>>> is strictly prohibited and appropriate legal action will be taken. >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>> >>> -- >>> Andrés Riancho >>> Project Leader at w3af - http://w3af.org/ >>> Web Application Attack and Audit Framework >>> Twitter: @w3af >>> GPG: 0x93C344F3 >>> >>> >> >> ------------------------------------------------------------------------------------------------------------------------------- >> >> This e-mail is for the sole use of the intended recipient(s) and may >> contain confidential and privileged information. If you are not the >> intended recipient, please contact the sender by reply e-mail and destroy >> all copies and the original message. Any unauthorized review, use, >> disclosure, dissemination, forwarding, printing or copying of this email >> is strictly prohibited and appropriate legal action will be taken. >> ------------------------------------------------------------------------------------------------------------------------------- >> > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-24 11:28:53
|
On Mon, Jun 24, 2013 at 8:08 AM, saleem <asa...@cd...> wrote: > thanks for the response andrews. > > > Why do you suspect of permissions issue? > > > I suspect permission issue because when i run the code as root user in the > terminal it is generating the output file. > > if i run the same code in the browser it is not generating the output files > . Can be because of other things, like the www-data user not having an environment variable set, or something like that. Try this: sudo -s -H <enter your root password> su www-data cd to-python-install python w3af_console ... > > Are you trying "su www-data" and then running the exact same command? > > > i have given www-data:www-data permission to my code as well . > still it is not working. > > i will try to explain once again : > > i have a w3af script for w3af crawl - > http-settings > set timeout 60 > back > plugins > crawl web_spider > crawl config web_spider > set only_forward False > set follow_regex .*http:/localhost.* > set ignore_regex (?i)(logout|disconnect|signout|exit)+ > back > output text_file > output config text_file > set output_file /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt > set verbose False > back > back > target > set target http://localhost:80 > back > start > exit > > > i have called this script in my php code i.e : > > <? > > $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; > echo "Start of code ::*****"; > > if(is_readable($w3af_script)) > { > > echo "\n"."ready to execute the script in the terminal"; > > `python /var/www/wsafe1/tools/w3af/w3af_console -s $w3af_script`; > > } > > > if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) > { > echo "-----OOOOOOOOOOOoutput file got generated "; > > } > else > echo "-----FFFFailed to generate the outpt file "; > > > ?> > > > > now problem is , i am not getting the file generated if i run the code from > the browser or by normal user. > > root user is able to generate the files using the same code . > > > please help me out !!!!! > > > > > On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: >> >> Saleem, >> >> On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >>> >>> ok thanku for responding andres . >>> >>> fine i will tell u in detail what i have done . >>> >>> Earlier i had older version of w3af(r4473) in which my script was working >>> fine >>> currently i am using >>> w3af - Web Application Attack and Audit Framework >>> Version: 1.5 >>> Revision: 790bb82add >> >> First of all, it was a great idea to update. >> >>> w3af script i have written (attachment) : >>> screenshot 1 >>> PHP script i have written was (attachment): >>> screenshot 2 >> >> I wouldn't run w3af in the request/response process. I'm unsure about >> how to do it for PHP, but in python there is Celery which allows you >> to queue work, process results, etc. >> >>> now i have given permission to that php script as well as w3af , using >>> chmod command i have given 777 permissions. >> >> Why do you suspect of permissions issue? >> >>> problem is when i am executing it in terminal i am getting the output , >>> if >>> the same i am executing in the browser i am not getting the output i.e >>> output files are not getting generated . >> >> Are you trying "su www-data" and then running the exact same command? >> >>> please help me out and sorry for my english. >>> >>> >>> >>> >>> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>>> >>>> Saleem, >>>> >>>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>>>> >>>>> Hi all , >>>>> >>>>> I have written a script which uses w3af script in the background, and >>>>> trying >>>>> to execute that script through browser , but i am not getting any >>>>> output >>>>> if >>>>> i do the same in the terminal i am getting the output . >>>>> >>>>> please help me out !!! >>>> >>>> It's almost impossible to answer this question without more detail. >>>> Also, why do you think this is a w3af problem and not just you setting >>>> incorrect permissions to the filesystem files? More than glad to help >>>> if you send details, >>>> >>>> Regards, >>>> >>>>> Thanks & Regards , >>>>> saleem >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>>> This e-mail is for the sole use of the intended recipient(s) and may >>>>> contain confidential and privileged information. If you are not the >>>>> intended recipient, please contact the sender by reply e-mail and >>>>> destroy >>>>> all copies and the original message. Any unauthorized review, use, >>>>> disclosure, dissemination, forwarding, printing or copying of this >>>>> email >>>>> is strictly prohibited and appropriate legal action will be taken. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------------------- >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by Windows: >>>>> >>>>> Build for Windows Store. >>>>> >>>>> http://p.sf.net/sfu/windows-dev2dev >>>>> _______________________________________________ >>>>> W3af-develop mailing list >>>>> W3a...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>>> >>>> >>>> >>>> -- >>>> Andrés Riancho >>>> Project Leader at w3af - http://w3af.org/ >>>> Web Application Attack and Audit Framework >>>> Twitter: @w3af >>>> GPG: 0x93C344F3 >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> This e-mail is for the sole use of the intended recipient(s) and may >>> contain confidential and privileged information. If you are not the >>> intended recipient, please contact the sender by reply e-mail and destroy >>> all copies and the original message. Any unauthorized review, use, >>> disclosure, dissemination, forwarding, printing or copying of this email >>> is strictly prohibited and appropriate legal action will be taken. >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> >> > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-24 11:06:24
|
thanks for the response andrews. Why do you suspect of permissions issue? I suspect permission issue because when i run the code as root user in the terminal it is generating the output file. if i run the same code in the browser it is not generating the output files . Are you trying "su www-data" and then running the exact same command? i have given www-data:www-data permission to my code as well . still it is not working. i will try to explain once again : i have a w3af script for w3af crawl - http-settings set timeout 60 back plugins crawl web_spider crawl config web_spider set only_forward False set follow_regex .*http:/localhost.* set ignore_regex (?i)(logout|disconnect|signout|exit)+ back output text_file output config text_file set output_file /var/www/wsafe1/scanreports/crawl_localhost_222222222.txt set verbose False back back target set target http://localhost:80 back start exit i have called this script in my php code i.e : <? $w3af_script="/var/www/wsafe1/crawl_localhost_222222222.w3af"; echo "Start of code ::*****"; if(is_readable($w3af_script)) { echo "\n"."ready to execute the script in the terminal"; `python /var/www/wsafe1/tools/w3af/w3af_console -s $w3af_script`; } if(is_readable("/var/www/wsafe1/scanreports/crawl_localhost_222222222.txt")) { echo "-----OOOOOOOOOOOoutput file got generated "; } else echo "-----FFFFailed to generate the outpt file "; ?> now problem is , i am not getting the file generated if i run the code from the browser or by normal user. root user is able to generate the files using the same code . please help me out !!!!! On Monday 24 June 2013 04:14 PM, Andres Riancho wrote: > Saleem, > > On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: >> ok thanku for responding andres . >> >> fine i will tell u in detail what i have done . >> >> Earlier i had older version of w3af(r4473) in which my script was working >> fine >> currently i am using >> w3af - Web Application Attack and Audit Framework >> Version: 1.5 >> Revision: 790bb82add > First of all, it was a great idea to update. > >> w3af script i have written (attachment) : >> screenshot 1 >> PHP script i have written was (attachment): >> screenshot 2 > I wouldn't run w3af in the request/response process. I'm unsure about > how to do it for PHP, but in python there is Celery which allows you > to queue work, process results, etc. > >> now i have given permission to that php script as well as w3af , using >> chmod command i have given 777 permissions. > Why do you suspect of permissions issue? > >> problem is when i am executing it in terminal i am getting the output , if >> the same i am executing in the browser i am not getting the output i.e >> output files are not getting generated . > Are you trying "su www-data" and then running the exact same command? > >> please help me out and sorry for my english. >> >> >> >> >> On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >>> Saleem, >>> >>> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>>> Hi all , >>>> >>>> I have written a script which uses w3af script in the background, and >>>> trying >>>> to execute that script through browser , but i am not getting any output >>>> if >>>> i do the same in the terminal i am getting the output . >>>> >>>> please help me out !!! >>> It's almost impossible to answer this question without more detail. >>> Also, why do you think this is a w3af problem and not just you setting >>> incorrect permissions to the filesystem files? More than glad to help >>> if you send details, >>> >>> Regards, >>> >>>> Thanks & Regards , >>>> saleem >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>>> This e-mail is for the sole use of the intended recipient(s) and may >>>> contain confidential and privileged information. If you are not the >>>> intended recipient, please contact the sender by reply e-mail and destroy >>>> all copies and the original message. Any unauthorized review, use, >>>> disclosure, dissemination, forwarding, printing or copying of this email >>>> is strictly prohibited and appropriate legal action will be taken. >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------- >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Windows: >>>> >>>> Build for Windows Store. >>>> >>>> http://p.sf.net/sfu/windows-dev2dev >>>> _______________________________________________ >>>> W3af-develop mailing list >>>> W3a...@li... >>>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >>> >>> >>> -- >>> Andrés Riancho >>> Project Leader at w3af - http://w3af.org/ >>> Web Application Attack and Audit Framework >>> Twitter: @w3af >>> GPG: 0x93C344F3 >>> >>> >> >> ------------------------------------------------------------------------------------------------------------------------------- >> >> This e-mail is for the sole use of the intended recipient(s) and may >> contain confidential and privileged information. If you are not the >> intended recipient, please contact the sender by reply e-mail and destroy >> all copies and the original message. Any unauthorized review, use, >> disclosure, dissemination, forwarding, printing or copying of this email >> is strictly prohibited and appropriate legal action will be taken. >> ------------------------------------------------------------------------------------------------------------------------------- >> > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-24 10:44:51
|
Saleem, On Mon, Jun 24, 2013 at 1:11 AM, saleem <asa...@cd...> wrote: > ok thanku for responding andres . > > fine i will tell u in detail what i have done . > > Earlier i had older version of w3af(r4473) in which my script was working > fine > currently i am using > w3af - Web Application Attack and Audit Framework > Version: 1.5 > Revision: 790bb82add First of all, it was a great idea to update. > w3af script i have written (attachment) : > screenshot 1 > PHP script i have written was (attachment): > screenshot 2 I wouldn't run w3af in the request/response process. I'm unsure about how to do it for PHP, but in python there is Celery which allows you to queue work, process results, etc. > now i have given permission to that php script as well as w3af , using > chmod command i have given 777 permissions. Why do you suspect of permissions issue? > problem is when i am executing it in terminal i am getting the output , if > the same i am executing in the browser i am not getting the output i.e > output files are not getting generated . Are you trying "su www-data" and then running the exact same command? > please help me out and sorry for my english. > > > > > On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: >> >> Saleem, >> >> On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >>> >>> Hi all , >>> >>> I have written a script which uses w3af script in the background, and >>> trying >>> to execute that script through browser , but i am not getting any output >>> if >>> i do the same in the terminal i am getting the output . >>> >>> please help me out !!! >> >> It's almost impossible to answer this question without more detail. >> Also, why do you think this is a w3af problem and not just you setting >> incorrect permissions to the filesystem files? More than glad to help >> if you send details, >> >> Regards, >> >>> Thanks & Regards , >>> saleem >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> This e-mail is for the sole use of the intended recipient(s) and may >>> contain confidential and privileged information. If you are not the >>> intended recipient, please contact the sender by reply e-mail and destroy >>> all copies and the original message. Any unauthorized review, use, >>> disclosure, dissemination, forwarding, printing or copying of this email >>> is strictly prohibited and appropriate legal action will be taken. >>> >>> ------------------------------------------------------------------------------------------------------------------------------- >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> W3af-develop mailing list >>> W3a...@li... >>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> >> > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-24 04:10:22
|
ok thanku for responding andres . fine i will tell u in detail what i have done . Earlier i had older version of w3af(r4473) in which my script was working fine currently i am using w3af - Web Application Attack and Audit Framework Version: 1.5 Revision: 790bb82add w3af script i have written (attachment) : screenshot 1 PHP script i have written was (attachment): screenshot 2 now i have given permission to that php script as well as w3af , using chmod command i have given 777 permissions. problem is when i am executing it in terminal i am getting the output , if the same i am executing in the browser i am not getting the output i.e output files are not getting generated . please help me out and sorry for my english. On Monday 24 June 2013 12:35 AM, Andres Riancho wrote: > Saleem, > > On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: >> Hi all , >> >> I have written a script which uses w3af script in the background, and trying >> to execute that script through browser , but i am not getting any output if >> i do the same in the terminal i am getting the output . >> >> please help me out !!! > It's almost impossible to answer this question without more detail. > Also, why do you think this is a w3af problem and not just you setting > incorrect permissions to the filesystem files? More than glad to help > if you send details, > > Regards, > >> Thanks & Regards , >> saleem >> >> >> >> >> ------------------------------------------------------------------------------------------------------------------------------- >> >> This e-mail is for the sole use of the intended recipient(s) and may >> contain confidential and privileged information. If you are not the >> intended recipient, please contact the sender by reply e-mail and destroy >> all copies and the original message. Any unauthorized review, use, >> disclosure, dissemination, forwarding, printing or copying of this email >> is strictly prohibited and appropriate legal action will be taken. >> ------------------------------------------------------------------------------------------------------------------------------- >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> W3af-develop mailing list >> W3a...@li... >> https://lists.sourceforge.net/lists/listinfo/w3af-develop > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-23 19:05:50
|
Saleem, On Fri, Jun 21, 2013 at 12:31 PM, saleem <asa...@cd...> wrote: > Hi all , > > I have written a script which uses w3af script in the background, and trying > to execute that script through browser , but i am not getting any output if > i do the same in the terminal i am getting the output . > > please help me out !!! It's almost impossible to answer this question without more detail. Also, why do you think this is a w3af problem and not just you setting incorrect permissions to the filesystem files? More than glad to help if you send details, Regards, > Thanks & Regards , > saleem > > > > > ------------------------------------------------------------------------------------------------------------------------------- > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------------------------------------------------------------------------- > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > W3af-develop mailing list > W3a...@li... > https://lists.sourceforge.net/lists/listinfo/w3af-develop -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: saleem <asa...@cd...> - 2013-06-21 15:45:29
|
Hi all , I have written a script which uses w3af script in the background, and trying to execute that script through browser , but i am not getting any output if i do the same in the terminal i am getting the output . please help me out !!! Thanks & Regards , saleem ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- |
From: Andres R. <and...@gm...> - 2013-06-12 19:49:37
|
Lists, I've been working hard on making w3af a python module, the information, and of course a request for all here [0].- [0] http://w3af.org/import-w3af Regards, -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: Vint S. <vin...@gm...> - 2013-05-28 14:35:20
|
Hi Achim, Thanks for the explanation. What will be the next step for creating this check? Obviously I am very new to this, but am eager to learn and help out! -Daniel On Wed, May 22, 2013 at 11:45 AM, Achim Hoffmann <web...@si...>wrote: > Am 22.05.2013 16:42, schrieb Vint Surf: > > Will the open relay qualification be applicable for the HTTP Host Header > > exploit or another? > > there is an open relay if the server accepts a FQDN in the GET or POST > method > (URL line), this has nothing to do with the Host: header at first glance. > > This was just a side note, so don't look too close on it at the moment. > > Achim > |
From: Achim H. <web...@si...> - 2013-05-22 15:45:25
|
Am 22.05.2013 16:42, schrieb Vint Surf: > Will the open relay qualification be applicable for the HTTP Host Header > exploit or another? there is an open relay if the server accepts a FQDN in the GET or POST method (URL line), this has nothing to do with the Host: header at first glance. This was just a side note, so don't look too close on it at the moment. Achim |
From: Vint S. <vin...@gm...> - 2013-05-22 14:42:49
|
Hi Achim, Thanks for clarifying the SERVER_NAME. I now understand that this is set on the webserver itself. How best to proceed to develop the 4 tests below and any others that may be needed? Will the open relay qualification be applicable for the HTTP Host Header exploit or another? Thanks! On Mon, May 20, 2013 at 12:02 PM, Achim Hoffmann <web...@si...>wrote: > Hi Vint, > > see my comments/answers inline. > > Achim > > > Am 16.05.2013 18:12, schrieb Vint Surf: > > Responses in-line. Thanks! > > > >> I'm thinking in order to determine if HTTP host header can be exploited, > > we > >> would need to: > >> A) determine if SERVER_NAME, HTTP_HOST, or both have values > >> B) verify the URI to see if the SERVER_NAME and HTTP_HOST match? > >> C) Determine if there are wildcard entries for SERVER_NAME > > > >> Lets move one step back, what do you mean by SERVER_NAME? > > > > SERVER_NAME would be the server included in the POST command? > > no! > SERVER_NAME ist the name as defined by the web server's configuration. > I.e. in apache's httpd.conf the ServerName variable, if not set it contains > what the Host: header contains. > > > i.e. POST https://addons.mozilla.org/en-US > > > So maybe send a POST with the valid server_name but with a random HOST > > header and see if a response is returned? If so, I guess this can be > > exploited? > > Yes, that's a test for that. > But keep in mind that different web servers may behave different here. > Unfortunately I don't have more details. > You need at least 4 tests: > 1. non-malicious one > POST http://good.tld/path > Host: good.tld > > 2. malicious > a) POST http://good.tld/path > Host: evil.tld > > b) POST http://evil.tld/path > Host: good.tld > > c) POST http://evil.tld/path > Host: evil.tld > > BTW, if such a POST request works, it's also an open relay. > > Other web servers may use different configurations (see apache above) and > behave different. > > > >> Also, is HTTP_HOST the host header send in a request? If so, we > > control that and we can set it or not. > > > > Yes, I was referring to the malicious host also sent in a request. > > > >> I believe a curl request can be created to verify the above? > > > > Lets forget about the how for a while, first lets understand the > > problem and the algorithm to identify it, > > > > > > > >> I apologize if this is not the right solution, but would appreciate any > >> assistance. Thanks! > > > > No reason to apologize! We all need to learn about these new > > vulnerabilities, > > > > PD: Can we take this conversation back to w3af-develop ? > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > W3af-develop mailing list > W3a...@li... > https://lists.sourceforge.net/lists/listinfo/w3af-develop > |
From: Andres R. <and...@gm...> - 2013-05-20 16:18:54
|
Achim, On Mon, May 20, 2013 at 1:09 PM, Achim Hoffmann <web...@si...> wrote: > Hi Andrés, > > sounds like fuzzer.py is what I asked for. Thanks. Good to hear, > Questions now are: > 1. how can a private file be used there? w3af is pluggable up to some extent, I didn't design it to be able to have multiple fuzzers. While this wouldn't take much time to implement, it's not in my roadmap at the moment. I would say that if you want to have a private version of that fuzzer.py file, you'll have to either do the refactoring yourself to "expose a fuzzer api to the w3af core" or more simply, overwrite my version with yours :) > 2. how to use a dynamically generated file there? What do you mean by dynamically generated file? I wouldn't generate python code dynamically, at least not for this. I would extend the misc-settings to configure the fuzzer and have decent defaults. > Ciao, > Achim > > > Am 15.05.2013 15:41, schrieb Andres Riancho: >> Achim, >> >> On Wed, May 15, 2013 at 9:53 AM, Achim Hoffmann <web...@si...> wrote: >>> Hi all, >>> >>> I'm searching for a plugin which can multiple encode a payload. >>> Does such a thing exist in w3af? >> >> No, it doesn't. w3af doesn't play with encoding as much as it should. >> >> As a side note, I think I wouldn't implement this as a plugin, I would >> add it in the create_mutants function [0]. This function takes >> fuzzable requests as input and outputs modified requests. Example: >> >> Input: >> - http://host.tld/foo?id=1 >> - [payload1, payload2] >> >> Output: >> - http://host.tld/foo?id=payload1 >> - http://host.tld/foo?id=payload2 >> >> If you read [0] you'll notice that it would be a good idea to add a >> fuzzer_config (see: _get_fuzzer_config) where the user can configure >> at a framework wide level the "encoding depth". By default I would set >> it to zero: only use the regular RFC required encoding. >> >> If create_mutants is modified, it would be possible to have it output >> something like: >> - http://host.tld/foo?id=payload1 >> - http://host.tld/foo?id=payload2 >> - http://host.tld/foo?id=encodeEntity(payload1) >> - http://host.tld/foo?id=encodeEntity(payload2) >> .... >> - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload1))) >> - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload2))) >> >> This would be a good thing to have, and the implementation at this >> level will affect all plugins which use the create_mutants function >> (all which send payloads if I'm not mistaken). Create mutants also >> mutates the path (as in your /path/foo<u>xss/other example), >> post-data, etc. >> >> [0] https://github.com/andresriancho/w3af/blob/master/core/data/fuzzer/fuzzer.py >> >> >>> The idea is as follows: >>> given the url like >>> >>> /path/foo<u>xss/other >>> >>> I want to test these variants: >>> >>> /path/foo<u>xss/other >>> /path/foo%3Cu%3Exss/other >>> /path/foo%253cu%253exss/other >>> /path/foo%25253cu%25253exss/other >>> /path/foo%26%6C%74%3Bu%26%67%74%3Bxss/other >>> /path/foo%26%6C%74%3B%75%26%67%74%3Bxss/other >>> /path/foo%2526%256C%2574%253Bu%2526%2567%2574%253Bxss/other >>> /path/foo%3Cu%3Exss/other >>> /path/foo%253Cu%253Exss/other >>> >>> The idea (abstract) is like: >>> >>> encodeEntity(payload) >>> encodeURL(payload) >>> encodeURL(encodeURL(payload)) >>> encodeURL(encodeURL(encodeURL(payload))) >>> encodeURL(encodeEntity(payload)) >>> encodeEntity(encodeURL(payload)) >>> encodeEntity(encodeURL(encodeURL(payload))) >>> >>> The payload can be anywhere in the URL, header or body. >>> Test in the URL at first glance will be great. >>> >>> Is there such a plugin, or one which can simply be extended? >>> >>> Any help appreciated >>> Achim >>> >>> >>> BTW, I already have a tool to generate such payloads in the browser >>> https://www.owasp.org/index.php/Category:OWASP_EnDe >>> you can nest the encoding functions how ever you like (see [Functions] button) >>> >>> ------------------------------------------------------------------------------ >>> AlienVault Unified Security Management (USM) platform delivers complete >>> security visibility with the essential security capabilities. Easily and >>> efficiently configure, manage, and operate all of your security controls >>> from a single console and one unified framework. Download a free trial. >>> http://p.sf.net/sfu/alienvault_d2d >>> _______________________________________________ >>> W3af-develop mailing list >>> W3a...@li... >>> https://lists.sourceforge.net/lists/listinfo/w3af-develop >> >> >> >> -- >> Andrés Riancho >> Project Leader at w3af - http://w3af.org/ >> Web Application Attack and Audit Framework >> Twitter: @w3af >> GPG: 0x93C344F3 >> > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: Achim H. <web...@si...> - 2013-05-20 16:09:27
|
Hi Andrés, sounds like fuzzer.py is what I asked for. Thanks. Questions now are: 1. how can a private file be used there? 2. how to use a dynamically generated file there? Ciao, Achim Am 15.05.2013 15:41, schrieb Andres Riancho: > Achim, > > On Wed, May 15, 2013 at 9:53 AM, Achim Hoffmann <web...@si...> wrote: >> Hi all, >> >> I'm searching for a plugin which can multiple encode a payload. >> Does such a thing exist in w3af? > > No, it doesn't. w3af doesn't play with encoding as much as it should. > > As a side note, I think I wouldn't implement this as a plugin, I would > add it in the create_mutants function [0]. This function takes > fuzzable requests as input and outputs modified requests. Example: > > Input: > - http://host.tld/foo?id=1 > - [payload1, payload2] > > Output: > - http://host.tld/foo?id=payload1 > - http://host.tld/foo?id=payload2 > > If you read [0] you'll notice that it would be a good idea to add a > fuzzer_config (see: _get_fuzzer_config) where the user can configure > at a framework wide level the "encoding depth". By default I would set > it to zero: only use the regular RFC required encoding. > > If create_mutants is modified, it would be possible to have it output > something like: > - http://host.tld/foo?id=payload1 > - http://host.tld/foo?id=payload2 > - http://host.tld/foo?id=encodeEntity(payload1) > - http://host.tld/foo?id=encodeEntity(payload2) > .... > - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload1))) > - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload2))) > > This would be a good thing to have, and the implementation at this > level will affect all plugins which use the create_mutants function > (all which send payloads if I'm not mistaken). Create mutants also > mutates the path (as in your /path/foo<u>xss/other example), > post-data, etc. > > [0] https://github.com/andresriancho/w3af/blob/master/core/data/fuzzer/fuzzer.py > > >> The idea is as follows: >> given the url like >> >> /path/foo<u>xss/other >> >> I want to test these variants: >> >> /path/foo<u>xss/other >> /path/foo%3Cu%3Exss/other >> /path/foo%253cu%253exss/other >> /path/foo%25253cu%25253exss/other >> /path/foo%26%6C%74%3Bu%26%67%74%3Bxss/other >> /path/foo%26%6C%74%3B%75%26%67%74%3Bxss/other >> /path/foo%2526%256C%2574%253Bu%2526%2567%2574%253Bxss/other >> /path/foo%3Cu%3Exss/other >> /path/foo%253Cu%253Exss/other >> >> The idea (abstract) is like: >> >> encodeEntity(payload) >> encodeURL(payload) >> encodeURL(encodeURL(payload)) >> encodeURL(encodeURL(encodeURL(payload))) >> encodeURL(encodeEntity(payload)) >> encodeEntity(encodeURL(payload)) >> encodeEntity(encodeURL(encodeURL(payload))) >> >> The payload can be anywhere in the URL, header or body. >> Test in the URL at first glance will be great. >> >> Is there such a plugin, or one which can simply be extended? >> >> Any help appreciated >> Achim >> >> >> BTW, I already have a tool to generate such payloads in the browser >> https://www.owasp.org/index.php/Category:OWASP_EnDe >> you can nest the encoding functions how ever you like (see [Functions] button) >> >> ------------------------------------------------------------------------------ >> AlienVault Unified Security Management (USM) platform delivers complete >> security visibility with the essential security capabilities. Easily and >> efficiently configure, manage, and operate all of your security controls >> from a single console and one unified framework. Download a free trial. >> http://p.sf.net/sfu/alienvault_d2d >> _______________________________________________ >> W3af-develop mailing list >> W3a...@li... >> https://lists.sourceforge.net/lists/listinfo/w3af-develop > > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > |
From: Achim H. <web...@si...> - 2013-05-20 16:02:30
|
Hi Vint, see my comments/answers inline. Achim Am 16.05.2013 18:12, schrieb Vint Surf: > Responses in-line. Thanks! > >> I'm thinking in order to determine if HTTP host header can be exploited, > we >> would need to: >> A) determine if SERVER_NAME, HTTP_HOST, or both have values >> B) verify the URI to see if the SERVER_NAME and HTTP_HOST match? >> C) Determine if there are wildcard entries for SERVER_NAME > >> Lets move one step back, what do you mean by SERVER_NAME? > > SERVER_NAME would be the server included in the POST command? no! SERVER_NAME ist the name as defined by the web server's configuration. I.e. in apache's httpd.conf the ServerName variable, if not set it contains what the Host: header contains. > i.e. POST https://addons.mozilla.org/en-US > So maybe send a POST with the valid server_name but with a random HOST > header and see if a response is returned? If so, I guess this can be > exploited? Yes, that's a test for that. But keep in mind that different web servers may behave different here. Unfortunately I don't have more details. You need at least 4 tests: 1. non-malicious one POST http://good.tld/path Host: good.tld 2. malicious a) POST http://good.tld/path Host: evil.tld b) POST http://evil.tld/path Host: good.tld c) POST http://evil.tld/path Host: evil.tld BTW, if such a POST request works, it's also an open relay. Other web servers may use different configurations (see apache above) and behave different. >> Also, is HTTP_HOST the host header send in a request? If so, we > control that and we can set it or not. > > Yes, I was referring to the malicious host also sent in a request. > >> I believe a curl request can be created to verify the above? > > Lets forget about the how for a while, first lets understand the > problem and the algorithm to identify it, > > > >> I apologize if this is not the right solution, but would appreciate any >> assistance. Thanks! > > No reason to apologize! We all need to learn about these new > vulnerabilities, > > PD: Can we take this conversation back to w3af-develop ? |
From: Vint S. <vin...@gm...> - 2013-05-16 16:12:10
|
Responses in-line. Thanks! > I'm thinking in order to determine if HTTP host header can be exploited, we > would need to: > A) determine if SERVER_NAME, HTTP_HOST, or both have values > B) verify the URI to see if the SERVER_NAME and HTTP_HOST match? > C) Determine if there are wildcard entries for SERVER_NAME > Lets move one step back, what do you mean by SERVER_NAME? SERVER_NAME would be the server included in the POST command? i.e. POST https://addons.mozilla.org/en-US So maybe send a POST with the valid server_name but with a random HOST header and see if a response is returned? If so, I guess this can be exploited? > Also, is HTTP_HOST the host header send in a request? If so, we control that and we can set it or not. Yes, I was referring to the malicious host also sent in a request. > I believe a curl request can be created to verify the above? Lets forget about the how for a while, first lets understand the problem and the algorithm to identify it, > I apologize if this is not the right solution, but would appreciate any > assistance. Thanks! No reason to apologize! We all need to learn about these new vulnerabilities, PD: Can we take this conversation back to w3af-develop ? On Thu, May 16, 2013 at 12:02 PM, Andres Riancho <and...@gm...>wrote: > Vint, > > Answers inline, > > On Thu, May 16, 2013 at 12:27 PM, Vint Surf <vin...@gm...> wrote: > > Hi Andres, > > > > Hope you're doing well! I wanted to send over a quick e-mail to see if > I am > > on the right track with the HTTP host header attacks. > > > > So after reading the article from Skeleton Scribe, it seems as though > issues > > can occur if there are multiple HTTP_Host headers or if the HTTP_Host > header > > and SERVER_NAME do not match. > > > > I'm thinking in order to determine if HTTP host header can be exploited, > we > > would need to: > > A) determine if SERVER_NAME, HTTP_HOST, or both have values > > B) verify the URI to see if the SERVER_NAME and HTTP_HOST match? > > C) Determine if there are wildcard entries for SERVER_NAME > > Lets move one step back, what do you mean by SERVER_NAME? > > Also, is HTTP_HOST the host header send in a request? If so, we > control that and we can set it or not. > > > I believe a curl request can be created to verify the above? > > > Lets forget about the how for a while, first lets understand the > problem and the algorithm to identify it, > I apologize if this is not the right solution, but would appreciate any > > assistance. Thanks! > > No reason to apologize! We all need to learn about these new > vulnerabilities, > > PD: Can we take this conversation back to w3af-develop ? > > > > > On Wed, May 15, 2013 at 11:00 AM, Vint Surf <vin...@gm...> wrote: > >> > >> Sorry for the delay....I will be reviewing the materials today and will > be > >> in touch shortly regarding potential solutions in "human terms" for the > http > >> host header attacks. > >> > >> > >> On Sat, May 11, 2013 at 11:35 AM, Andres Riancho > >> <and...@gm...> wrote: > >>> > >>> On Sat, May 11, 2013 at 4:59 AM, Achim Hoffmann <web...@si...> > >>> wrote: > >>> > Hi Andrés, > >>> > > >>> > Am 10.05.2013 23:34, schrieb Andres Riancho: > >>> >> for mutant in mutants: > >>> >> mutant.set_mod_value(value1) > >>> >> response1 = send_mutant(mutant) > >>> >> > >>> >> mutant.set_mod_value(value2) > >>> >> response3 = send_mutant(mutant) > >>> >> > >>> >> mutant.set_mod_value(value3) > >>> >> response3 = send_mutant(mutant) > >>> >> ``` > >>> >> > >>> >> Which in human would say... create empty mutants for each parameter, > >>> >> then, for each mutant set the values, send the requests and save the > >>> >> responses. > >>> > > >>> > if that's the way to do it in w3af, it's ok. I don't see a problem > >>> > then. > >>> > I'm a bad -very bad- python programmer, hence will leave that to > >>> > experts ;-) > >>> > >>> D M will be doing that, your list will help him understand what to do, > >>> > >>> > Anyway, you still have in mind that it's about the Host HTTP header? > >>> > >>> Now that you mention it, it is possible that this won't work with the > >>> Host header. > >>> > >>> > Can w3af easily manipulate that header, even in the way you described > >>> > above, > >>> > and are there no libs/APIs/whatever used, which set their own header? > >>> > I just remind that, 'cause I know from other languages/frameworks > that > >>> > it is > >>> > very difficult to write code against the standard. > >>> > >>> We'll find a different way to do it, not with create_mutants, but > >>> we'll find a way. > >>> > >>> Regards, > >>> > >>> > > >>> > List is comming soon ... > >>> > Achim > >>> > >>> > >>> > >>> -- > >>> Andrés Riancho > >>> Project Leader at w3af - http://w3af.org/ > >>> Web Application Attack and Audit Framework > >>> Twitter: @w3af > >>> GPG: 0x93C344F3 > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Learn Graph Databases - Download FREE O'Reilly Book > >>> "Graph Databases" is the definitive new guide to graph databases and > >>> their applications. This 200-page book is written by three acclaimed > >>> leaders in the field. The early access version is available now. > >>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > >>> _______________________________________________ > >>> W3af-develop mailing list > >>> W3a...@li... > >>> https://lists.sourceforge.net/lists/listinfo/w3af-develop > >> > >> > > > > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > |
From: Vint S. <vin...@gm...> - 2013-05-15 15:00:13
|
Sorry for the delay....I will be reviewing the materials today and will be in touch shortly regarding potential solutions in "human terms" for the http host header attacks. On Sat, May 11, 2013 at 11:35 AM, Andres Riancho <and...@gm...>wrote: > On Sat, May 11, 2013 at 4:59 AM, Achim Hoffmann <web...@si...> > wrote: > > Hi Andrés, > > > > Am 10.05.2013 23:34, schrieb Andres Riancho: > >> for mutant in mutants: > >> mutant.set_mod_value(value1) > >> response1 = send_mutant(mutant) > >> > >> mutant.set_mod_value(value2) > >> response3 = send_mutant(mutant) > >> > >> mutant.set_mod_value(value3) > >> response3 = send_mutant(mutant) > >> ``` > >> > >> Which in human would say... create empty mutants for each parameter, > >> then, for each mutant set the values, send the requests and save the > >> responses. > > > > if that's the way to do it in w3af, it's ok. I don't see a problem then. > > I'm a bad -very bad- python programmer, hence will leave that to experts > ;-) > > D M will be doing that, your list will help him understand what to do, > > > Anyway, you still have in mind that it's about the Host HTTP header? > > Now that you mention it, it is possible that this won't work with the > Host header. > > > Can w3af easily manipulate that header, even in the way you described > above, > > and are there no libs/APIs/whatever used, which set their own header? > > I just remind that, 'cause I know from other languages/frameworks that > it is > > very difficult to write code against the standard. > > We'll find a different way to do it, not with create_mutants, but > we'll find a way. > > Regards, > > > > > List is comming soon ... > > Achim > > > > -- > Andrés Riancho > Project Leader at w3af - http://w3af.org/ > Web Application Attack and Audit Framework > Twitter: @w3af > GPG: 0x93C344F3 > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > W3af-develop mailing list > W3a...@li... > https://lists.sourceforge.net/lists/listinfo/w3af-develop > |
From: Andres R. <and...@gm...> - 2013-05-15 13:42:11
|
Achim, On Wed, May 15, 2013 at 9:53 AM, Achim Hoffmann <web...@si...> wrote: > Hi all, > > I'm searching for a plugin which can multiple encode a payload. > Does such a thing exist in w3af? No, it doesn't. w3af doesn't play with encoding as much as it should. As a side note, I think I wouldn't implement this as a plugin, I would add it in the create_mutants function [0]. This function takes fuzzable requests as input and outputs modified requests. Example: Input: - http://host.tld/foo?id=1 - [payload1, payload2] Output: - http://host.tld/foo?id=payload1 - http://host.tld/foo?id=payload2 If you read [0] you'll notice that it would be a good idea to add a fuzzer_config (see: _get_fuzzer_config) where the user can configure at a framework wide level the "encoding depth". By default I would set it to zero: only use the regular RFC required encoding. If create_mutants is modified, it would be possible to have it output something like: - http://host.tld/foo?id=payload1 - http://host.tld/foo?id=payload2 - http://host.tld/foo?id=encodeEntity(payload1) - http://host.tld/foo?id=encodeEntity(payload2) .... - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload1))) - http://host.tld/foo?id=encodeEntity(encodeURL(encodeURL(payload2))) This would be a good thing to have, and the implementation at this level will affect all plugins which use the create_mutants function (all which send payloads if I'm not mistaken). Create mutants also mutates the path (as in your /path/foo<u>xss/other example), post-data, etc. [0] https://github.com/andresriancho/w3af/blob/master/core/data/fuzzer/fuzzer.py > The idea is as follows: > given the url like > > /path/foo<u>xss/other > > I want to test these variants: > > /path/foo<u>xss/other > /path/foo%3Cu%3Exss/other > /path/foo%253cu%253exss/other > /path/foo%25253cu%25253exss/other > /path/foo%26%6C%74%3Bu%26%67%74%3Bxss/other > /path/foo%26%6C%74%3B%75%26%67%74%3Bxss/other > /path/foo%2526%256C%2574%253Bu%2526%2567%2574%253Bxss/other > /path/foo%3Cu%3Exss/other > /path/foo%253Cu%253Exss/other > > The idea (abstract) is like: > > encodeEntity(payload) > encodeURL(payload) > encodeURL(encodeURL(payload)) > encodeURL(encodeURL(encodeURL(payload))) > encodeURL(encodeEntity(payload)) > encodeEntity(encodeURL(payload)) > encodeEntity(encodeURL(encodeURL(payload))) > > The payload can be anywhere in the URL, header or body. > Test in the URL at first glance will be great. > > Is there such a plugin, or one which can simply be extended? > > Any help appreciated > Achim > > > BTW, I already have a tool to generate such payloads in the browser > https://www.owasp.org/index.php/Category:OWASP_EnDe > you can nest the encoding functions how ever you like (see [Functions] button) > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > W3af-develop mailing list > W3a...@li... > https://lists.sourceforge.net/lists/listinfo/w3af-develop -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: Achim H. <web...@si...> - 2013-05-15 12:53:58
|
Hi all, I'm searching for a plugin which can multiple encode a payload. Does such a thing exist in w3af? The idea is as follows: given the url like /path/foo<u>xss/other I want to test these variants: /path/foo<u>xss/other /path/foo%3Cu%3Exss/other /path/foo%253cu%253exss/other /path/foo%25253cu%25253exss/other /path/foo%26%6C%74%3Bu%26%67%74%3Bxss/other /path/foo%26%6C%74%3B%75%26%67%74%3Bxss/other /path/foo%2526%256C%2574%253Bu%2526%2567%2574%253Bxss/other /path/foo%3Cu%3Exss/other /path/foo%253Cu%253Exss/other The idea (abstract) is like: encodeEntity(payload) encodeURL(payload) encodeURL(encodeURL(payload)) encodeURL(encodeURL(encodeURL(payload))) encodeURL(encodeEntity(payload)) encodeEntity(encodeURL(payload)) encodeEntity(encodeURL(encodeURL(payload))) The payload can be anywhere in the URL, header or body. Test in the URL at first glance will be great. Is there such a plugin, or one which can simply be extended? Any help appreciated Achim BTW, I already have a tool to generate such payloads in the browser https://www.owasp.org/index.php/Category:OWASP_EnDe you can nest the encoding functions how ever you like (see [Functions] button) |
From: Andres R. <and...@gm...> - 2013-05-14 17:49:31
|
List, I've developed a new plugin which uses ClamAV to find malware on your site. The basic idea is that w3af will send all http response bodies to clamd, and then report any findings it returns. I need your help for testing! Follow these steps if you've got some minutes to spare: git clone gi...@gi...:andresriancho/w3af.git cd w3af git checkout feature/clam git pull ./w3af_console # Install the new clamd dependency using pip # Install clamd in your system (this is for ubuntu): sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs sudo freshclam sudo service clamav-daemon start Then, run a scan against your site using the new grep.clamav plugin. Remember that for the grep plugin to analyze your site, you need to activate a crawl plugin like web_spider. If you want to test with something "real", remember you can use the EICAR test binary[0] Happy testing! [0] http://www.eicar.org/85-0-Download.html Regards, -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |
From: Andres R. <and...@gm...> - 2013-05-11 15:44:44
|
Dom, On Fri, May 10, 2013 at 11:48 AM, Dominique Righetto <dom...@gm...> wrote: > Andres, > > In which Github repository did you manage W3AF documentation files ? You mean the documents which live in "doc" folder? That's managed in the w3af repository, together with the source code. > I asked this because in "doc" folder of the "master" branch the ODT and PDF > files are not sync for FR/EN and I want to add the VIM syntax file URL into > the documentation... Yep... the only one that "could" be in sync there is the ODT and PDF. The translations were done a while ago and nobody contributed to keep them updated. If you want to add it to the documentation, just add it to the ODT, then generate the new PDF and send me a pull-request. (all in EN) > Thanks in advance > -- > Cordialement, Best regards, > Dominique Righetto > dom...@gm... > dom...@ow... > Twitter: @righettod > GPG: 0x323D19BA > http://www.righettod.eu > "No trees were killed to send this message, but a large number of electrons > were terribly inconvenienced." -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 |