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 : WritePhotoshop.pl
#------------------------------------------------------------------------------ # File: WritePhotoshop.pl # # Description: Write Photoshop IRB meta information # # Revisions: 12/17/2004 - P. Harvey Created #------------------------------------------------------------------------------ package Image::ExifTool::Photoshop; use strict; #------------------------------------------------------------------------------ # Strip resource name from value prepare resource name for writing into IRB # Inputs: 0) tagInfo ref, 1) resource name (padded pascal string), 2) new value ref # Returns: none (updates name and value if necessary) sub SetResourceName($$$) { my ($tagInfo, $name, $valPt) = @_; my $setName = $$tagInfo{SetResourceName}; if (defined $setName) { # extract resource name from value if ($$valPt =~ m{.*/#(.{0,255})#/$}s) { $name = $1; # strip name from value $$valPt = substr($$valPt, 0, -4 - length($name)); } elsif ($setName eq '1') { return; # use old name } else { $name = $setName; } # convert to padded pascal string $name = chr(length $name) . $name; $name .= "\0" if length($name) & 0x01; $_[1] = $name; # return new name } } #------------------------------------------------------------------------------ # Write Photoshop IRB resource # Inputs: 0) ExifTool object reference, 1) source dirInfo reference, # 2) tag table reference # Returns: IRB resource data (may be empty if no Photoshop data) # Notes: Increments ExifTool CHANGED flag for each tag changed sub WritePhotoshop($$$) { my ($et, $dirInfo, $tagTablePtr) = @_; $et or return 1; # allow dummy access to autoload this package my $dataPt = $$dirInfo{DataPt}; unless ($dataPt) { my $emptyData = ''; $dataPt = \$emptyData; } my $start = $$dirInfo{DirStart} || 0; my $dirLen = $$dirInfo{DirLen} || (length($$dataPt) - $start); my $dirEnd = $start + $dirLen; my $newData = ''; # make a hash of new tag info, keyed on tagID my $newTags = $et->GetNewTagInfoHash($tagTablePtr); my ($addDirs, $editDirs) = $et->GetAddDirHash($tagTablePtr); SetByteOrder('MM'); # Photoshop is always big-endian # # rewrite existing tags in the old directory, deleting ones as necessary # (the Photoshop directory entries aren't in any particular order) # # Format: 0) Type, 4 bytes - '8BIM' (or the rare 'PHUT', 'DCSR', 'AgHg' or 'MeSa') # 1) TagID,2 bytes # 2) Name, pascal string padded to even no. bytes # 3) Size, 4 bytes - N # 4) Data, N bytes my ($pos, $value, $size, $tagInfo, $tagID); for ($pos=$start; $pos+8<$dirEnd; $pos+=$size) { # each entry must be on same even byte boundary as directory start ++$pos if ($pos ^ $start) & 0x01; my $type = substr($$dataPt, $pos, 4); if ($type !~ /^(8BIM|PHUT|DCSR|AgHg|MeSa)$/) { $et->Error("Bad Photoshop IRB resource"); undef $newData; last; } $tagID = Get16u($dataPt, $pos + 4); # get resource block name (pascal string padded to an even # of bytes) my $namelen = 1 + Get8u($dataPt, $pos + 6); ++$namelen if $namelen & 0x01; if ($pos + $namelen + 10 > $dirEnd) { $et->Error("Bad APP13 resource block"); undef $newData; last; } my $name = substr($$dataPt, $pos + 6, $namelen); $size = Get32u($dataPt, $pos + 6 + $namelen); $pos += $namelen + 10; if ($size + $pos > $dirEnd) { $et->Error("Bad APP13 resource data size $size"); undef $newData; last; } if ($$newTags{$tagID} and $type eq '8BIM') { $tagInfo = $$newTags{$tagID}; delete $$newTags{$tagID}; my $nvHash = $et->GetNewValueHash($tagInfo); # check to see if we are overwriting this tag $value = substr($$dataPt, $pos, $size); my $isOverwriting = $et->IsOverwriting($nvHash, $value); # handle special 'new' and 'old' values for IPTCDigest if (not $isOverwriting and $tagInfo eq $iptcDigestInfo) { if (grep /^new$/, @{$$nvHash{DelValue}}) { $isOverwriting = 1 if $$et{NewIPTCDigest} and $$et{NewIPTCDigest} eq $value; } if (grep /^old$/, @{$$nvHash{DelValue}}) { $isOverwriting = 1 if $$et{OldIPTCDigest} and $$et{OldIPTCDigest} eq $value; } } if ($isOverwriting) { $et->VerboseValue("- Photoshop:$$tagInfo{Name}", $value); # handle IPTCDigest specially because we want to write it last # so the new IPTC digest will be known if ($tagInfo eq $iptcDigestInfo) { $$newTags{$tagID} = $tagInfo; # add later $value = undef; } else { $value = $et->GetNewValue($nvHash); } ++$$et{CHANGED}; next unless defined $value; # next if tag is being deleted # set resource name if necessary SetResourceName($tagInfo, $name, \$value); $et->VerboseValue("+ Photoshop:$$tagInfo{Name}", $value); } } else { if ($type eq '8BIM') { $tagInfo = $$editDirs{$tagID}; unless ($tagInfo) { # process subdirectory anyway if writable (except EXIF to avoid recursion) # --> this allows IPTC to be processed if found here in TIFF images # (note that I have seen a case of XMP in PSD-EXIFInfo-IFD0, and the EXIF # exclusion means that this won't be written unless an EXIF tag is # specifically edited, see forum10768 -- maybe this should be changed # if it happens again) my $tmpInfo = $et->GetTagInfo($tagTablePtr, $tagID); if ($tmpInfo and $$tmpInfo{SubDirectory} and $tmpInfo->{SubDirectory}->{TagTable} ne 'Image::ExifTool::Exif::Main') { my $table = Image::ExifTool::GetTagTable($tmpInfo->{SubDirectory}->{TagTable}); $tagInfo = $tmpInfo if $$table{WRITE_PROC}; } } } if ($tagInfo) { $$addDirs{$tagID} and delete $$addDirs{$tagID}; my %subdirInfo = ( DataPt => $dataPt, DirStart => $pos, DataLen => $dirLen, DirLen => $size, Parent => $$dirInfo{DirName}, ); my $subTable = Image::ExifTool::GetTagTable($tagInfo->{SubDirectory}->{TagTable}); my $writeProc = $tagInfo->{SubDirectory}->{WriteProc}; my $newValue = $et->WriteDirectory(\%subdirInfo, $subTable, $writeProc); if (defined $newValue) { next unless length $newValue; # remove subdirectory entry $value = $newValue; SetResourceName($tagInfo, $name, \$value); } else { $value = substr($$dataPt, $pos, $size); # rewrite old directory } } else { $value = substr($$dataPt, $pos, $size); } } my $newSize = length $value; # write this directory entry $newData .= $type . Set16u($tagID) . $name . Set32u($newSize) . $value; $newData .= "\0" if $newSize & 0x01; # must null pad to even byte } # # write any remaining entries we didn't find in the old directory # (might as well write them in numerical tag order) # my @tagsLeft = sort { $a <=> $b } keys(%$newTags), keys(%$addDirs); foreach $tagID (@tagsLeft) { my $name = "\0\0"; if ($$newTags{$tagID}) { $tagInfo = $$newTags{$tagID}; my $nvHash = $et->GetNewValueHash($tagInfo); $value = $et->GetNewValue($nvHash); # handle new IPTCDigest value specially if ($tagInfo eq $iptcDigestInfo and defined $value) { if ($value eq 'new') { $value = $$et{NewIPTCDigest}; } elsif ($value eq 'old') { $value = $$et{OldIPTCDigest}; } # (we already know we want to create this tag) } else { # don't add this tag unless specified next unless $$nvHash{IsCreating}; } next unless defined $value; # next if tag is being deleted $et->VerboseValue("+ Photoshop:$$tagInfo{Name}", $value); ++$$et{CHANGED}; } else { $tagInfo = $$addDirs{$tagID}; # create new directory my %subdirInfo = ( Parent => $$dirInfo{DirName}, ); my $subTable = Image::ExifTool::GetTagTable($tagInfo->{SubDirectory}->{TagTable}); my $writeProc = $tagInfo->{SubDirectory}->{WriteProc}; $value = $et->WriteDirectory(\%subdirInfo, $subTable, $writeProc); next unless $value; } # set resource name if necessary SetResourceName($tagInfo, $name, \$value); $size = length($value); # write the new directory entry $newData .= '8BIM' . Set16u($tagID) . $name . Set32u($size) . $value; $newData .= "\0" if $size & 0x01; # must null pad to even numbered byte ++$$et{CHANGED}; } return $newData; } 1; # end __END__ =head1 NAME Image::ExifTool::WritePhotoshop.pl - Write Photoshop IRB meta information =head1 SYNOPSIS This file is autoloaded by Image::ExifTool::Photoshop. =head1 DESCRIPTION This file contains routines to write Photoshop metadata. =head1 NOTES Photoshop IRB blocks may have an associated resource name. By default, the existing name is preserved when rewriting a resource, and an empty name is used when creating a new resource. However, a different resource name may be specified by defining a C<SetResourceName> entry in the tag information hash. With this defined, a new resource name may be appended to the value in the form "VALUE/#NAME#/" (the slashes and hashes are literal). If C<SetResourceName> is anything other than '1', the value is used as a default resource name, and applied if no appended name is provided. =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 SEE ALSO L<Image::ExifTool::Photoshop(3pm)|Image::ExifTool::Photoshop>, L<Image::ExifTool(3pm)|Image::ExifTool> =cut
Close