removing special chars from b64 flag generator + changed qr code link

This commit is contained in:
thomashaw
2017-05-09 15:24:46 +01:00
parent 66aa51dd9d
commit 22cfa3027e
2 changed files with 6 additions and 2 deletions

View File

@@ -8,7 +8,11 @@ class Base64FlagGenerator < StringGenerator
def generate
require 'securerandom'
self.outputs << "flag{#{SecureRandom.base64}}"
flag = SecureRandom.base64
flag.tr!('/','', )
flag.tr!('+', '' )
flag.tr!('=', '')
self.outputs << "flag{#{flag}}"
end
end

View File

@@ -17,7 +17,7 @@
<reference>https://github.com/whomwah/rqrcode</reference>
<solution>Use a QR reader mobile app or online decoder e.g. http://blog.qr4.nl/Online-QR-Code_decoder.aspx</solution>
<solution>Use a QR reader mobile app or online decoder e.g. https://online-barcode-reader.inliteresearch.com/</solution>
<read_fact>strings_to_leak</read_fact>
<default_input into="strings_to_leak">