Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files30
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- Option/
- Makefile
- catrom.pl
- diffsize.pl
- disrom.pl
- efirom.c
- einfo.c
- elf2efi.c
- fixrom.pl
- fnrec.pl
- geniso
- genkeymap.pl
- genliso
- gensdsk
- get-pci-ids
- hijack.c
- iccfix.c
- licence.pl
- mergerom.pl
- modrom.pl
- mucurses_test.c
- niclist.pl
- nrv2b.c
- padimg.pl
- parserom.pl
- romcheck.pl
- sortobjdump.pl
- swapdevids.pl
- symcheck.pl
- zbin.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Devices/PC/ipxe/src/util/padimg.pl
Perl · 1,246 bytes#!/usr/bin/perl -w
use strict;
use warnings;
use Getopt::Long;
use Fcntl;
my $verbosity = 0;
my $blksize = 512;
my $byte = 0;
my %opts = (
'verbose|v+' => sub { $verbosity++; },
'quiet|q+' => sub { $verbosity--; },
'blksize|s=o' => sub { $blksize = $_[1]; },
'byte|b=o' => sub { $byte = $_[1]; },
);
Getopt::Long::Configure ( 'bundling', 'auto_abbrev' );
GetOptions ( %opts ) or die "Could not parse command-line options\n";
while ( my $filename = shift ) {
die "$filename is not a file\n" unless -f $filename;
my $oldsize = -s $filename;
my $padsize = ( ( -$oldsize ) % $blksize );
my $newsize = ( $oldsize + $padsize );
next unless $padsize;
if ( $verbosity >= 1 ) {
printf "Padding %s from %d to %d bytes with %d x 0x%02x\n",
$filename, $oldsize, $newsize, $padsize, $byte;
}
if ( $byte ) {
sysopen ( my $fh, $filename, ( O_WRONLY | O_APPEND ) )
or die "Could not open $filename for appending: $!\n";
syswrite $fh, ( chr ( $byte ) x $padsize )
or die "Could not append to $filename: $!\n";
close ( $fh );
} else {
truncate $filename, $newsize
or die "Could not resize $filename: $!\n";
}
die "Failed to pad $filename\n"
unless ( ( ( -s $filename ) % $blksize ) == 0 );
}