From 86b2ef9be33e020056de4283420cbbaa9bf84bea Mon Sep 17 00:00:00 2001 From: Imre Jonk Date: Thu, 4 Nov 2021 05:48:39 +0100 Subject: [PATCH] Initialize $plainTextBytes with an empty string This prevents a warning printed after the first block has been processed: ``` Use of uninitialized value $plainTextBytes in concatenation (.) or string at padBuster.pl line 361. ``` --- padBuster.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/padBuster.pl b/padBuster.pl index d3977d2..b2dddd3 100644 --- a/padBuster.pl +++ b/padBuster.pl @@ -175,7 +175,7 @@ } # PlainTextBytes is where the complete decrypted sample will be stored (decrypt only) -my $plainTextBytes; +my $plainTextBytes = ""; # This is a bool to make sure we know where to replace the sample string my $wasSampleFound = 0;