Package core :: Package controllers :: Package intrusionTools :: Module execMethodHelpers
[hide private]
[frames] | no frames]

Module execMethodHelpers



execMethodHelpers.py

Copyright 2006 Andres Riancho

This file is part of w3af, w3af.sourceforge.net .

w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License.

w3af is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with w3af; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Functions [hide private]
  osDetectionExec(execMethod)
Uses the execMethod to run remote commands and determine what's the remote OS is and returns a string with 'windows' or 'linux' or raises a w3afException if unknown.
  getRemoteTempFile(execMethod)

Variables [hide private]
  digits = '0123456789'
  letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'

Function Details [hide private]

osDetectionExec(execMethod)

 
Uses the execMethod to run remote commands and determine what's the remote OS is and returns a string with 'windows' or 'linux' or raises a w3afException if unknown.

getRemoteTempFile(execMethod)

 
Returns:
The name of a file in the remote file system that the user that I'm executing commands with can write, read and execute. The normal responses for this are files in /tmp/ or %TEMP% depending on the remote Os.

Variables Details [hide private]

digits

None
Value:
'0123456789'                                                           
      

letters

None
Value:
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'