From 473672047fc0c3e3ce108ab027e4674e711e29a8 Mon Sep 17 00:00:00 2001 From: h00die Date: Tue, 30 Jan 2024 17:56:59 -0500 Subject: [PATCH] updates to jenkins ccli ampersand file read --- .../gather/jenkins_cli_ampersand_arbitrary_file_read.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb b/modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb index c0f7d1edca00..63af3129a07c 100644 --- a/modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb +++ b/modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb @@ -149,7 +149,7 @@ def parameter_one "\x03\x00\x00\x01\x31\x00\x00\x00" end - def data_generator(pad = false) + def data_generator(pad: false) data = [] data << request_header data << parameter_one if pad == true @@ -162,7 +162,7 @@ def data_generator(pad = false) data.join('') end - def upload_request(uuid, multi_line_file = true) + def upload_request(uuid, multi_line_file: true) # send upload request asking for file # In testing against Docker image on localhost, .01 seems to be the magic to get the download request to hit very slightly ahead of the upload request