⚝
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
/
usermin
/
htaccess
/
View File Name :
change_files.cgi
#!/usr/bin/perl # change_files.cgi # Modify or delete a
clause in a .htaccess file require './htaccess-lib.pl'; &ReadParse(); $hconf = &get_htaccess_config($in{'file'}); $d = $hconf->[$in{'idx'}]; $lref = &read_file_lines($d->{'file'}); if ($in{'delete'}) { # deleting a directive $gap = $d->{'eline'} - $d->{'line'} + 1; splice(@$lref, $d->{'line'}, $d->{'eline'} - $d->{'line'} + 1); splice(@$hconf, $in{'idx'}, 1); &renumber($hconf, $d->{'line'}, $d->{'file'}, -$gap); } else { # changing a directive if ($in{'regexp'}) { if ($httpd_modules{'core'} >= 1.3) { $newdir = "
"; $enddir = "
"; } else { $newdir = "
"; $enddir = "
"; } } else { $newdir = "
"; $enddir = "
"; } $lref->[$d->{'line'}] = $newdir; $lref->[$d->{'eline'}] = $enddir; } &flush_file_lines(); &redirect("htaccess_index.cgi?file=".&urlize($in{'file'}));