PATH:
var
/
softaculous
/
litecart
<?php $username = '[[admin_username]]'; $enc_password = '[[encrypted_pass]]'; $htpasswd_file = '[[softpath]]/[[admin_folder]]/.htpasswd'; $htpasswd = file_get_contents($htpasswd_file); if(preg_match('#(?<=^|\r\n|\r|\n)\#*('. preg_quote($username, '#') .'):.*?#', $htpasswd)){ $htpasswd = preg_replace('#(?<=^|\r\n|\r|\n)(\#*'. preg_quote($username, '#') .'):[^\r|\n]+(\r\n?|\n)*#', '$1:{SHA}'. $enc_password . PHP_EOL, $htpasswd); echo '<htpasswd>'.$htpasswd.'</htpasswd>'; } if(is_writable($htpasswd_file)){ $htpasswd = file_put_contents($htpasswd_file, $htpasswd); } @unlink('write_htpass.php'); ?>
[+]
php56
[-] robots.txt
[edit]
[+]
php81
[+]
admin
[+]
php53
[-] upgrade.php
[edit]
[-] update_pass.php
[edit]
[+]
..
[-] edit.xml
[edit]
[-] import.php
[edit]
[-] notes.txt
[edit]
[-] extend.php
[edit]
[-] md5
[edit]
[-] clone.php
[edit]
[-] changelog.txt
[edit]
[-] install.js
[edit]
[+]
php71
[-] install.php
[edit]
[-] fileindex.php
[edit]
[-] upgrade.xml
[edit]
[-] edit.php
[edit]
[-] write_htpass.php
[edit]
[-] info.xml
[edit]
[-] install.xml
[edit]
[+]
images
[+]
php82