def __init__(self, startlen, endlen=None, charset=None):
self.startlen = startlen<EOL>if endlen is None:<EOL><INDENT>self.endlen = startlen<EOL><DEDENT>else:<EOL><INDENT>self.endlen = endlen<EOL><DEDENT>if charset is None:<EOL><INDENT>charset = map(chr, range(<NUM_LIT:0>, <NUM_LIT>))<EOL><DEDENT>elif type(charset) == str:<EOL><INDENT>charset = list(charset)<EOL><DEDENT>charset = unique(charset)<EOL>charset.sort()<EOL>self.charset = tuple(charset)<EOL>
This class is used to generate raw strings for bruteforcing.

@type startlen: Integer
@param startlen: The minimum size of the string to bruteforce.

@type endlen: Integer
@param endlen: The maximum size of the string to bruteforce.

@type charset: String, Tuple or None
@param charset: the character set to use while generating the
strings.  If None, the full binary space will be used (0 - 255).