# Post Exploitation

Kill shell without saving history file

```bash
kill -9 $$        # The $$ var always returns the PID of running shell
HISTSIZE=0        # Prevent system from storing any entered commands
PATH=$PATH:/root/newhackingtool    # Adds new folder to path, preserves existing path
shred -f -n 10 /var/log/auth.log.*    # shread all auth logs ten times :)
service rsyslog stop    # disable all system logging
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.m4lwhere.org/offensive/post-exploitation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
