I have over 100 different parameters that will be tested against a single variable. But I am having trouble assigned the parameters as variables. For example: The parameters are as follows:
/master.passwd
etc/passwd
etc/shadow%00
/etc/passwd
/etc/passwd%00
../etc/passwd
../etc/passwd%00
../../etc/passwd
../../etc/passwd%00
and each parameter will be added to a variable named
tree
How can I use python to assign one variable to 100's of parameters and than add each parameter to the variable named tree? I have looked at list[], dict{}, and a tuple() but I am not coming up with a solution.