Alex,

On Sat, Dec 27, 2008 at 4:47 PM, Alex Fiuvertiz <[email protected]> wrote:
> Hi,
>
> It seems like w3af is using the %HOMEDRIVE% variable when writing the
> .w3af\sessions directory (and other sub directories).
> Can this be altered in any way from within the w3af system console?
> I have tried to add this environment variable in Windows/Control
> Panel: System->Advanced->Environment Variables but it doesn't seem to
> have any effect (I do cmd and echo %HOMEDRIVE% and it still shows up
> as the wrong drive).
>
> I think this could be fixed by my system administrator but I want to
> know if I can fix this by myself?
>
> The reason for me wanting to change this is that my homedrive is set
> to Z: (which is where our home directories are located/mapped) and the
> amount of storage is minimal at the specified place and w3af does not
> like when this space is full.
>
> Thanks for helping me out! Running revision 2275

Thanks for your interest in w3af!
I'm not a windows power user, so I don't really know about %HOMEDRIVE%
or anything like that ;) w3af uses the pythonic way of getting the
users home, which is:

import user
print user.home

The real code is located in "core/controllers/misc/homeDir.py" and looks like

def get_home_dir():
    '''
    @return: The location of the w3af directory inside the home
directory of the current user.
    '''
    home_path = user.home + os.path.sep + '.w3af'
    return home_path

I have some ideas for you...:

- Modify the code and hardcode the home_path
- Or actually modify the HOME env, because I think that this is what
you really need to do. Here is a quote from the python documentation
"The home directory is assumed to be named by the HOME environment
variable; if this is not set, the current directory is used." [0]

[0] http://docs.python.org/library/user.html

> / Alex
>
> ------------------------------------------------------------------------------
> _______________________________________________
> W3af-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>



-- 
Andres Riancho
http://w3af.sourceforge.net/
Web Application Attack and Audit Framework

------------------------------------------------------------------------------
_______________________________________________
W3af-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-users

Reply via email to