Files
SecGen/modules/generators/random/random_hex/secgen_metadata.xml
thomashaw 241e83a7a9 generators/random/random_hex: added number_of_lines and line_length params
generators/challenges/encoded_diff: encodes a flag in hex, generates random_hex, shuffles the ordering, inserts a flag in a random position. accounts for line length vs flag length with random hex padding.
secgen_functions::leak_file.pp: Added division between data leaked to the same file
2017-03-28 10:51:57 +01:00

32 lines
1.1 KiB
XML

<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Hex Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Uses Ruby's SecureRandom to generate a message made up of hex digits (a-f0-9).</description>
<type>string_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<reference>http://ruby-doc.org/stdlib-2.2.2/libdoc/securerandom/rdoc/SecureRandom.html#method-c-hex</reference>
<read_fact>line_length</read_fact>
<read_fact>number_of_lines</read_fact>
<!--Default behaviour returns 1 random hex string, override the read_facts for multi-line data. -->
<default_input into="line_length">
<value>16</value>
</default_input>
<default_input into="number_of_lines">
<value>1</value>
</default_input>
<output_type>generated_strings</output_type>
</generator>