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.pl
#Plugin Name: Highlight #Plugin URI: http://www.andre-simon.de #Description: Plugin which uses the highlight utility to generate coloured source code #Author: André Simon #Version: 1.2 #Author URI: http://www.andre-simon.de/ #This file is part of Highlight. # #Highlight is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #Highlight is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. # #You should have received a copy of the GNU General Public License #along with Highlight. If not, see <http://www.gnu.org/licenses/>. package MT::Plugin::Highlight; use strict; use IPC::Open3; use MT; use MT::Entry; use MT::Plugin; use MT::Template::Context; use MT::WeblogPublisher; my $plugin = new MT::Plugin(); $plugin->name("MT Highlight"); $plugin->description('Source code highlighter using highlight (http://www.andre-simon.de)'); $plugin->doc_link('http://wiki.andre-simon.de/'); $plugin->author_name('Andre Simon'); $plugin->author_link('http://www.andre-simon.de/'); $plugin->plugin_link('http://wiki.andre-simon.de/'); $plugin->version('1.3'); MT->add_callback("BuildPage", 1, $plugin, \&highlight_callback); MT->add_plugin($plugin); sub highlight_callback { my ($cb, %args) = @_; use Data::Dumper; my $html = ${$args{'Content'}}; $html =~ s/<highlight([^>]*?)lang="([^"]+?)"([^>]*?)>(.*?)<\/highlight>/highlight_code($2,$4)/ges; ${$args{'Content'}} = $html; return 1; } sub highlight_code { my ($lang, $source) = @_; $lang =~ s/[^a-zA-Z]//g; # delete special chars in user input $source =~ s/\<br \/\>//g; # get rid of <br> Tags inserted by MT $source =~ s/\<\/?p\>//g; # MT inserts <p> Tags if <, > are present in input code local(*HIS_IN, *HIS_OUT, *HIS_ERR); my @hl_args = ('-f', "-S$lang"); push (@hl_args, '--inline-css'); # use inline css definitions push (@hl_args, '-sedit-kwrite'); # coloring theme push (@hl_args, '-l'); # linenumbers push (@hl_args, '-j2'); # linenumber length push (@hl_args, '-z'); # linenumber zeroes push (@hl_args, '-Fgnu'); # reformat push (@hl_args, '-t4'); # replace tabs my $childpid = IPC::Open3::open3(*HIS_IN, *HIS_OUT, *HIS_ERR, 'highlight', @hl_args); print HIS_IN $source; close(HIS_IN); # Give end of file to kid. my @outlines = <HIS_OUT>; # Read till EOF. close HIS_OUT; close HIS_ERR; waitpid($childpid, 0); my $htext = join "", @outlines; return "<pre>".$htext."</pre>"; }
Close