mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
removing special chars from b64 flag generator + changed qr code link
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user