Open DanielHabenicht opened 3 years ago
Why do you need it? You have the actual flag in getflag
, use this instead.
Well, the content where I get the flag from isn't actually well-formed, so I thought using the search function would be less hassle.
How about if self.flag in file_request.text
?
yep that what I use now... But the function could be working too :) Otherwise you could also use it in the exploit function, right?
yep that what I use now... But the function could be working too :)
I agree that it might be nice to have a consistent interface, and only use self.flag in ...
if self.flag
is available
Otherwise you could also use it in the exploit function, right?
This was needed in the first place because self.flag
is not available in the exploit method and search_flag
was supposed to be a replacement for self.flag in ...
which can be used in other methods
So maybe that comes back to the general question, of "would you rather have an extra exploiter checker"?
I would like to use
self.search_flag(fileRequest.text)
in the getflag method but it throws the error: