hyun.psd; gzuncompress
|
Server IP : 173.236.192.202 / Your IP : 216.73.216.85 Web Server : Apache System : Linux iad1-shared-e1-03 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : andfor18 ( 14551322) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /dh/bin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] | [ Lock Shell ] | [ Logout ] |
|---|
#!/usr/bin/perl
use strict;
my $header = shift @ARGV;
my $add = shift @ARGV;
$add =~ tr/+/ /;
$add =~ s/\%([A-Z0-9][A-Z0-9])/pack("C",hex($1))/eg;
$add .= ' ' unless $add =~ /\s$/;
# read headers
while (<>) {
chomp;
last if $_ eq ''; # end of headers!
my ($h, $v) = /^(\S+): (.*)/;
if (defined $h) {
if ($h eq $header) {
$v = $add . $v;
}
print "$h: $v\n";
} else {
print "$_\n"; ## weird
}
}
# sep
print "\n";
# body
while (<>) {
print;
}