I am writing about command vulnerabilities. The code is written in python. Is this code vulnerable due to the code checking for False, rather than running on True.
I hope I have made myself clear, thanks!
Bump for help :/
>>58339770
OP here - Code should be x==2. Please ignore this error as I need the theory explaining to me.
>>58339770
Whats the difference? They are isomorphic. True/false is just a binary distinction, doesnt matter which label you put on it.
>>58339770
Vulnerable to what? Where are you receiving your input from? (the x in main)
>> if x==2
>> return True
>> return False
...
just bloody:
return x==2