Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Image /
ExifTool /
[ HOME SHELL ]
Name
Size
Permission
Action
Charset
[ DIR ]
drwxr-xr-x
Lang
[ DIR ]
drwxr-xr-x
AES.pm
18.66
KB
-rw-r--r--
AFCP.pm
10.38
KB
-rw-r--r--
AIFF.pm
9.59
KB
-rw-r--r--
APE.pm
9.06
KB
-rw-r--r--
APP12.pm
10.44
KB
-rw-r--r--
ASF.pm
30.21
KB
-rw-r--r--
Apple.pm
5.43
KB
-rw-r--r--
Audible.pm
11.52
KB
-rw-r--r--
BMP.pm
10.45
KB
-rw-r--r--
BPG.pm
7.53
KB
-rw-r--r--
BZZ.pm
17.46
KB
-rw-r--r--
BigTIFF.pm
11.27
KB
-rw-r--r--
BuildTagLookup.pm
121.94
KB
-rw-r--r--
CBOR.pm
11.51
KB
-rw-r--r--
Canon.pm
375.39
KB
-rw-r--r--
CanonCustom.pm
84.32
KB
-rw-r--r--
CanonRaw.pm
29.68
KB
-rw-r--r--
CanonVRD.pm
75.2
KB
-rw-r--r--
CaptureOne.pm
7.85
KB
-rw-r--r--
Casio.pm
62.21
KB
-rw-r--r--
Charset.pm
16.01
KB
-rw-r--r--
DICOM.pm
245.09
KB
-rw-r--r--
DJI.pm
6.31
KB
-rw-r--r--
DNG.pm
31.59
KB
-rw-r--r--
DPX.pm
9.51
KB
-rw-r--r--
DV.pm
9.75
KB
-rw-r--r--
DarwinCore.pm
15.43
KB
-rw-r--r--
DjVu.pm
12.46
KB
-rw-r--r--
EXE.pm
50.3
KB
-rw-r--r--
Exif.pm
246.64
KB
-rw-r--r--
FITS.pm
5.73
KB
-rw-r--r--
FLAC.pm
9.89
KB
-rw-r--r--
FLIF.pm
11.65
KB
-rw-r--r--
FLIR.pm
59.45
KB
-rw-r--r--
Fixup.pm
12.43
KB
-rw-r--r--
Flash.pm
27.5
KB
-rw-r--r--
FlashPix.pm
87.44
KB
-rw-r--r--
Font.pm
27.34
KB
-rw-r--r--
FotoStation.pm
7.97
KB
-rw-r--r--
FujiFilm.pm
54.47
KB
-rw-r--r--
GE.pm
2
KB
-rw-r--r--
GIF.pm
21.85
KB
-rw-r--r--
GIMP.pm
8.35
KB
-rw-r--r--
GPS.pm
19.53
KB
-rw-r--r--
GeoTiff.pm
87.51
KB
-rw-r--r--
Geotag.pm
62.87
KB
-rw-r--r--
GoPro.pm
28
KB
-rw-r--r--
H264.pm
39.29
KB
-rw-r--r--
HP.pm
8
KB
-rw-r--r--
HTML.pm
22.1
KB
-rw-r--r--
HtmlDump.pm
32.8
KB
-rw-r--r--
ICC_Profile.pm
45.63
KB
-rw-r--r--
ID3.pm
56.91
KB
-rw-r--r--
IPTC.pm
39.54
KB
-rw-r--r--
ISO.pm
6.81
KB
-rw-r--r--
ITC.pm
6.63
KB
-rw-r--r--
Import.pm
12.83
KB
-rw-r--r--
InDesign.pm
10.4
KB
-rw-r--r--
JPEG.pm
24.3
KB
-rw-r--r--
JPEGDigest.pm
212.38
KB
-rw-r--r--
JSON.pm
6.15
KB
-rw-r--r--
JVC.pm
3.57
KB
-rw-r--r--
Jpeg2000.pm
49.65
KB
-rw-r--r--
Kodak.pm
120.47
KB
-rw-r--r--
KyoceraRaw.pm
4.31
KB
-rw-r--r--
LIF.pm
4.66
KB
-rw-r--r--
LNK.pm
22.02
KB
-rw-r--r--
Leaf.pm
16.34
KB
-rw-r--r--
Lytro.pm
7.56
KB
-rw-r--r--
M2TS.pm
37.11
KB
-rw-r--r--
MIE.pm
102.09
KB
-rw-r--r--
MIEUnits.pod
13.68
KB
-rw-r--r--
MIFF.pm
9.05
KB
-rw-r--r--
MNG.pm
16.22
KB
-rw-r--r--
MOI.pm
4.14
KB
-rw-r--r--
MPC.pm
4.05
KB
-rw-r--r--
MPEG.pm
22.32
KB
-rw-r--r--
MPF.pm
8.94
KB
-rw-r--r--
MRC.pm
18.39
KB
-rw-r--r--
MWG.pm
30.64
KB
-rw-r--r--
MXF.pm
252.65
KB
-rw-r--r--
MacOS.pm
30.7
KB
-rw-r--r--
MakerNotes.pm
68.93
KB
-rw-r--r--
Matroska.pm
34.44
KB
-rw-r--r--
Microsoft.pm
52.13
KB
-rw-r--r--
Minolta.pm
99.93
KB
-rw-r--r--
MinoltaRaw.pm
16.49
KB
-rw-r--r--
Motorola.pm
5.31
KB
-rw-r--r--
Nikon.pm
431.96
KB
-rw-r--r--
NikonCapture.pm
28.13
KB
-rw-r--r--
NikonCustom.pm
290.78
KB
-rw-r--r--
NikonSettings.pm
71.88
KB
-rw-r--r--
Nintendo.pm
3.24
KB
-rw-r--r--
OOXML.pm
13.61
KB
-rw-r--r--
Ogg.pm
8.81
KB
-rw-r--r--
Olympus.pm
139.89
KB
-rw-r--r--
OpenEXR.pm
10.26
KB
-rw-r--r--
Opus.pm
2.22
KB
-rw-r--r--
Other.pm
2.63
KB
-rw-r--r--
PCX.pm
3.72
KB
-rw-r--r--
PDF.pm
90.77
KB
-rw-r--r--
PGF.pm
4.04
KB
-rw-r--r--
PICT.pm
33.2
KB
-rw-r--r--
PLIST.pm
17.07
KB
-rw-r--r--
PLUS.pm
147.71
KB
-rw-r--r--
PNG.pm
60.72
KB
-rw-r--r--
PPM.pm
4.97
KB
-rw-r--r--
PSP.pm
9.02
KB
-rw-r--r--
Palm.pm
11.9
KB
-rw-r--r--
Panasonic.pm
96.62
KB
-rw-r--r--
PanasonicRaw.pm
31.77
KB
-rw-r--r--
Parrot.pm
20.95
KB
-rw-r--r--
Pentax.pm
220.46
KB
-rw-r--r--
PhaseOne.pm
26.24
KB
-rw-r--r--
PhotoCD.pm
18.25
KB
-rw-r--r--
PhotoMechanic.pm
8.09
KB
-rw-r--r--
Photoshop.pm
43.36
KB
-rw-r--r--
PostScript.pm
29.11
KB
-rw-r--r--
PrintIM.pm
3.44
KB
-rw-r--r--
Qualcomm.pm
43.43
KB
-rw-r--r--
QuickTime.pm
409.72
KB
-rw-r--r--
QuickTimeStream.pl
126.03
KB
-rw-r--r--
RIFF.pm
70.97
KB
-rw-r--r--
RSRC.pm
9.58
KB
-rw-r--r--
RTF.pm
13.46
KB
-rw-r--r--
Radiance.pm
4.56
KB
-rw-r--r--
Rawzor.pm
6.17
KB
-rw-r--r--
Real.pm
26.89
KB
-rw-r--r--
Reconyx.pm
14.2
KB
-rw-r--r--
Red.pm
10.82
KB
-rw-r--r--
Ricoh.pm
37.18
KB
-rw-r--r--
Samsung.pm
54.64
KB
-rw-r--r--
Sanyo.pm
11.83
KB
-rw-r--r--
Scalado.pm
3.91
KB
-rw-r--r--
Shift.pl
23.28
KB
-rw-r--r--
Shortcuts.pm
9.81
KB
-rw-r--r--
Sigma.pm
33.16
KB
-rw-r--r--
SigmaRaw.pm
23.45
KB
-rw-r--r--
Sony.pm
439.69
KB
-rw-r--r--
SonyIDC.pm
11.95
KB
-rw-r--r--
Stim.pm
4.53
KB
-rw-r--r--
TagInfoXML.pm
33.14
KB
-rw-r--r--
TagLookup.pm
647.18
KB
-rw-r--r--
TagNames.pod
1.76
MB
-rw-r--r--
Text.pm
8.12
KB
-rw-r--r--
Theora.pm
3.41
KB
-rw-r--r--
Torrent.pm
11.58
KB
-rw-r--r--
Unknown.pm
1.69
KB
-rw-r--r--
VCard.pm
17.31
KB
-rw-r--r--
Validate.pm
29.75
KB
-rw-r--r--
Vorbis.pm
8.13
KB
-rw-r--r--
WTV.pm
12.97
KB
-rw-r--r--
WriteCanonRaw.pl
24.29
KB
-rw-r--r--
WriteExif.pl
130.6
KB
-rw-r--r--
WriteIPTC.pl
29.6
KB
-rw-r--r--
WritePDF.pl
29.02
KB
-rw-r--r--
WritePNG.pl
16.07
KB
-rw-r--r--
WritePhotoshop.pl
10.85
KB
-rw-r--r--
WritePostScript.pl
26.71
KB
-rw-r--r--
WriteQuickTime.pl
89.63
KB
-rw-r--r--
WriteXMP.pl
70.49
KB
-rw-r--r--
Writer.pl
301.76
KB
-rw-r--r--
XMP.pm
176.89
KB
-rw-r--r--
XMP2.pl
81.66
KB
-rw-r--r--
XMPStruct.pl
36.66
KB
-rw-r--r--
ZIP.pm
27.61
KB
-rw-r--r--
ZISRAW.pm
7.85
KB
-rw-r--r--
iWork.pm
7.79
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : InDesign.pm
#------------------------------------------------------------------------------ # File: InDesign.pm # # Description: Read/write meta information in Adobe InDesign files # # Revisions: 2009-06-17 - P. Harvey Created # # References: 1) http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart3.pdf #------------------------------------------------------------------------------ package Image::ExifTool::InDesign; use strict; use vars qw($VERSION); use Image::ExifTool qw(:DataAccess :Utils); $VERSION = '1.06'; # map for writing metadata to InDesign files (currently only write XMP) my %indMap = ( XMP => 'IND', ); # GUID's used in InDesign files my $masterPageGUID = "\x06\x06\xed\xf5\xd8\x1d\x46\xe5\xbd\x31\xef\xe7\xfe\x74\xb7\x1d"; my $objectHeaderGUID = "\xde\x39\x39\x79\x51\x88\x4b\x6c\x8E\x63\xee\xf8\xae\xe0\xdd\x38"; my $objectTrailerGUID = "\xfd\xce\xdb\x70\xf7\x86\x4b\x4f\xa4\xd3\xc7\x28\xb3\x41\x71\x06"; #------------------------------------------------------------------------------ # Read or write meta information in an InDesign file # Inputs: 0) ExifTool object reference, 1) dirInfo reference # Returns: 1 on success, 0 if this wasn't a valid InDesign file, or -1 on write error sub ProcessIND($$) { my ($et, $dirInfo) = @_; my $raf = $$dirInfo{RAF}; my $outfile = $$dirInfo{OutFile}; my ($hdr, $buff, $buf2, $err, $writeLen, $foundXMP); # validate the InDesign file return 0 unless $raf->Read($hdr, 16) == 16; return 0 unless $hdr eq $masterPageGUID; return 0 unless $raf->Read($buff, 8) == 8; $et->SetFileType($buff eq 'DOCUMENT' ? 'INDD' : 'IND'); # set the FileType tag # read the master pages $raf->Seek(0, 0) or $err = 'Seek error', goto DONE; unless ($raf->Read($buff, 4096) == 4096 and $raf->Read($buf2, 4096) == 4096) { $err = 'Unexpected end of file'; goto DONE; # (goto's can be our friend) } SetByteOrder('II'); unless ($buf2 =~ /^\Q$masterPageGUID/) { $err = 'Second master page is invalid'; goto DONE; } my $seq1 = Get64u(\$buff, 264); my $seq2 = Get64u(\$buf2, 264); # take the most current master page my $curPage = $seq2 > $seq1 ? \$buf2 : \$buff; # byte order of stream data may be different than headers my $streamInt32u = Get8u($curPage, 24); if ($streamInt32u == 1) { $streamInt32u = 'V'; # little-endian int32u } elsif ($streamInt32u == 2) { $streamInt32u = 'N'; # big-endian int32u } else { $err = 'Invalid stream byte order'; goto DONE; } my $pages = Get32u($curPage, 280); $pages < 2 and $err = 'Invalid page count', goto DONE; my $pos = $pages * 4096; if ($pos > 0x7fffffff and not $et->Options('LargeFileSupport')) { $err = 'InDesign files larger than 2 GB not supported (LargeFileSupport not set)'; goto DONE; } if ($outfile) { # make XMP the preferred group for writing $et->InitWriteDirs(\%indMap, 'XMP'); Write($outfile, $buff, $buf2) or $err = 1, goto DONE; my $result = Image::ExifTool::CopyBlock($raf, $outfile, $pos - 8192); unless ($result) { $err = defined $result ? 'Error reading InDesign database' : 1; goto DONE; } $writeLen = 0; } else { $raf->Seek($pos, 0) or $err = 'Seek error', goto DONE; } # scan through the contiguous objects for XMP my $verbose = $et->Options('Verbose'); my $out = $et->Options('TextOut'); for (;;) { $raf->Read($hdr, 32) or last; unless (length($hdr) == 32 and $hdr =~ /^\Q$objectHeaderGUID/) { # this must be null padding or we have an error $hdr =~ /^\0+$/ or $err = 'Corrupt file or unsupported InDesign version'; last; } my $len = Get32u(\$hdr, 24); if ($verbose) { printf $out "Contiguous object at offset 0x%x (%d bytes):\n", $raf->Tell(), $len; if ($verbose > 2) { my $len2 = $len < 1024000 ? $len : 1024000; $raf->Seek(-$raf->Read($buff, $len2), 1) or $err = 1; $et->VerboseDump(\$buff, Addr => $raf->Tell()); } } # check for XMP if stream data is long enough # (56 bytes is just enough for XMP header) if ($len > 56) { $raf->Read($buff, 56) == 56 or $err = 'Unexpected end of file', last; if ($buff =~ /^(....)<\?xpacket begin=(['"])\xef\xbb\xbf\2 id=(['"])W5M0MpCehiHzreSzNTczkc9d\3/s) { my $lenWord = $1; # save length word for writing later $len -= 4; # get length of XMP only $foundXMP = 1; # I have a sample where the XMP is 107 MB, and ActivePerl may run into # memory troubles (with its apparent 1 GB limit) if the XMP is larger # than about 400 MB, so guard against this if ($len > 300 * 1024 * 1024) { my $msg = sprintf('Insanely large XMP (%.0f MB)', $len / (1024 * 1024)); if ($outfile) { $et->Error($msg, 2) and $err = 1, last; } elsif ($et->Options('IgnoreMinorErrors')) { $et->Warn($msg); } else { $et->Warn("$msg. Ignored.", 1); $err = 1; last; } } # load and parse the XMP data unless ($raf->Seek(-52, 1) and $raf->Read($buff, $len) == $len) { $err = 'Error reading XMP stream'; last; } my %dirInfo = ( DataPt => \$buff, Parent => 'IND', NoDelete => 1, # do not allow this to be deleted when writing ); # validate xmp data length (should be same as length in header - 4) my $xmpLen = unpack($streamInt32u, $lenWord); unless ($xmpLen == $len) { if ($xmpLen < $len) { $dirInfo{DirLen} = $xmpLen; } else { $err = 'Truncated XMP stream (missing ' . ($xmpLen - $len) . ' bytes)'; } } my $tagTablePtr = GetTagTable('Image::ExifTool::XMP::Main'); if ($outfile) { last if $err; # make sure that XMP is writable my $classID = Get32u(\$hdr, 20); $classID & 0x40000000 or $err = 'XMP stream is not writable', last; my $xmp = $et->WriteDirectory(\%dirInfo, $tagTablePtr); if ($xmp and length $xmp) { # write new xmp with leading length word $buff = pack($streamInt32u, length $xmp) . $xmp; # update header with new length and invalid checksum Set32u(length($buff), \$hdr, 24); Set32u(0xffffffff, \$hdr, 28); } else { $$et{CHANGED} = 0; # didn't change anything $et->Warn("Can't delete XMP as a block from InDesign file") if defined $xmp; # put length word back at start of stream $buff = $lenWord . $buff; } } else { $et->ProcessDirectory(\%dirInfo, $tagTablePtr); } $len = 0; # we got the full stream (nothing left to read) } else { $len -= 56; # we got 56 bytes of the stream } } else { $buff = ''; # must reset this for writing later } if ($outfile) { # write object header and data Write($outfile, $hdr, $buff) or $err = 1, last; my $result = Image::ExifTool::CopyBlock($raf, $outfile, $len); unless ($result) { $err = defined $result ? 'Truncated stream data' : 1; last; } $writeLen += 32 + length($buff) + $len; } elsif ($len) { # skip over remaining stream data $raf->Seek($len, 1) or $err = 'Seek error', last; } $raf->Read($buff, 32) == 32 or $err = 'Unexpected end of file', last; unless ($buff =~ /^\Q$objectTrailerGUID/) { $err = 'Invalid object trailer'; last; } if ($outfile) { # make sure object UID and ClassID are the same in the trailer substr($hdr,16,8) eq substr($buff,16,8) or $err = 'Non-matching object trailer', last; # write object trailer Write($outfile, $objectTrailerGUID, substr($hdr,16)) or $err = 1, last; $writeLen += 32; } } if ($outfile) { # write null padding if necessary # (InDesign files must be an even number of 4096-byte blocks) my $part = $writeLen % 4096; Write($outfile, "\0" x (4096 - $part)) or $err = 1 if $part; } DONE: if (not $err) { $et->Warn('No XMP stream to edit') if $outfile and not $foundXMP; return 1; # success! } elsif (not $outfile) { # issue warning on read error $et->Warn($err) unless $err eq '1'; } elsif ($err ne '1') { # set error and return success code $et->Error($err); } else { return -1; # write error } return 1; } 1; # end __END__ =head1 NAME Image::ExifTool::InDesign - Read/write meta information in Adobe InDesign files =head1 SYNOPSIS This module is used by Image::ExifTool =head1 DESCRIPTION This module contains routines required by Image::ExifTool to read XMP meta information from Adobe InDesign (.IND, .INDD and .INDT) files. =head1 LIMITATIONS 1) Only XMP meta information is processed. 2) A new XMP stream may not be created, so XMP tags may only be written to InDesign files which previously contained XMP. 3) File sizes of greater than 2 GB are supported only if the system supports them and the LargeFileSupport option is enabled. =head1 AUTHOR Copyright 2003-2022, Phil Harvey (philharvey66 at gmail.com) This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 REFERENCES =over 4 =item L<http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart3.pdf> =back =head1 SEE ALSO L<Image::ExifTool(3pm)|Image::ExifTool> =cut
Close