Module fuzzer
fuzzer.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
|
createMutants(freq,
mutantStrList,
append=False,
fuzzableParamList=[])
|
|
_fuzzFileName(freq,
mutantStrList)
|
|
_createMutantsWorker(freq,
fuzzableType,
dataContainer,
mutantStrList,
fuzzableParamList,
append)
An auxiliary function to createMutants.
|
|
createRandAlpha(length=0)
Create a random string ONLY with letters
|
|
createRandAlNum(length=0)
Create a random string with random length
|
|
createRandNum(length=0,
excludeNumbers=[])
Create a random string ONLY with numbers
|
|
createFormatString(length)
|
createMutants(freq,
mutantStrList,
append=False,
fuzzableParamList=[])
| |
-
- Parameters:
freq - A fuzzable request with a dataContainer inside.
mutantStrList - a list with mutant strings to use
append - This indicates if the content of mutantStrList should be
appended to the variable value
fuzzableParamList - If [] then all params are fuzzed. If ['a'] , then only 'a' is
fuzzed.
- Returns:
- A Mutant object List.
|
_fuzzFileName(freq,
mutantStrList)
| |
-
- Parameters:
freq - A fuzzable request with a dataContainer inside.
mutantStrList - a list with mutant strings to use
- Returns:
- Mutants that have the filename URL changed with the strings at
mutantStrList
|
_createMutantsWorker(freq,
fuzzableType,
dataContainer,
mutantStrList,
fuzzableParamList,
append)
| |
An auxiliary function to createMutants.
-
|
createRandAlpha(length=0)
| |
Create a random string ONLY with letters
-
- Returns:
- A random string only composed by letters.
|
createRandAlNum(length=0)
| |
Create a random string with random length
-
- Returns:
- A random string of with length > 10 and length < 30.
|
createRandNum(length=0,
excludeNumbers=[])
| |
Create a random string ONLY with numbers
-
- Returns:
- A random string only composed by numbers.
|
createFormatString(length)
| |
-
- Returns:
- A string with $length %s and a final %n
|