> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/privesc/cron-jobs/cron-expression-calculator.md).

# Cron-Ausdrucksrechner

Cron-Ausdrucksrechner für gängige Zeitpläne, Feldsyntax, Sonderzeichen und Notizen zur Überprüfung von Privilegienerweiterungen.

Suche nach einem Cron-Ausdruck wie `* * * * *`, `*/5 * * * *`, `0 0 * * *`oder `@reboot` um seinen Zeitplan und die Pentest-Notizen zu lesen.

## Cron-Finder

<table data-view="cards" data-full-width="true" data-search="true"><thead><tr><th>Ausdruck</th><th>Bedeutung</th><th>Typische Verwendung</th><th>Hinweise prüfen</th></tr></thead><tbody><tr><td><code>* * * * *</code></td><td>Jede Minute</td><td>Schnell wiederkehrende Aufgabe</td><td>Sehr wertvoll für PrivEsc, wenn das Skript beschreibbar ist.</td></tr><tr><td><code>*/2 * * * *</code></td><td>Alle 2 Minuten</td><td>Abfrageaufgabe</td><td>Verwende pspy, um die Ausführung zu beobachten.</td></tr><tr><td><code>*/5 * * * *</code></td><td>Alle 5 Minuten</td><td>Integritätsprüfungen, Synchronisationsaufträge</td><td>Prüfe den Befehls-Pfad und beschreibbare Ziele.</td></tr><tr><td><code>*/10 * * * *</code></td><td>Alle 10 Minuten</td><td>Wartungsauftrag</td><td>Suche nach relativen Pfaden und einem unsicheren PATH.</td></tr><tr><td><code>*/15 * * * *</code></td><td>Alle 15 Minuten</td><td>Geplante Synchronisierung</td><td>Prüfe Protokolle und den Skript-Besitz.</td></tr><tr><td><code>*/30 * * * *</code></td><td>Alle 30 Minuten</td><td>Periodische Bereinigung</td><td>Prüfe Löschbefehle und Platzhalter.</td></tr><tr><td><code>0 * * * *</code></td><td>Jede Stunde</td><td>Stündlicher Auftrag</td><td>Prüfe auch `/etc/cron.hourly`.</td></tr><tr><td><code>30 * * * *</code></td><td>Zur Minute 30 jeder Stunde</td><td>Stündliche Versetzung</td><td>Überwache es um die halbe Stunde herum.</td></tr><tr><td><code>0 */2 * * *</code></td><td>Alle 2 Stunden</td><td>Batch-Aufgabe</td><td>Prüfe Skripte in Backup- und Synchronisierungsverzeichnissen.</td></tr><tr><td><code>0 0 * * *</code></td><td>Jeden Tag um Mitternacht</td><td>Tägliche Rotation</td><td>Prüfe `/etc/cron.daily` und Backup-Skripte.</td></tr><tr><td><code>30 2 * * *</code></td><td>Jeden Tag um 02:30</td><td>Nachtwartung</td><td>Übliche Zeit für Root-Backup-Aufträge.</td></tr><tr><td><code>0 6 * * *</code></td><td>Jeden Tag um 06:00</td><td>Morgenauftrag</td><td>Prüfe Berichterstellungs- und Bereinigungsskripte.</td></tr><tr><td><code>0 0 * * 0</code></td><td>Jeden Sonntag um Mitternacht</td><td>Wöchentlicher Auftrag</td><td>Prüfe `/etc/cron.weekly`.</td></tr><tr><td><code>0 0 * * 1</code></td><td>Jeden Montag um Mitternacht</td><td>Wöchentlicher Auftrag</td><td>Prüfe Skripte für die Geschäftswochen.</td></tr><tr><td><code>0 0 1 * *</code></td><td>Erster Tag jedes Monats</td><td>Monatliche Berichte</td><td>Prüfe `/etc/cron.monthly`.</td></tr><tr><td><code>0 0 1 1 *</code></td><td>Jedes Jahr am 1. Januar um Mitternacht</td><td>Jährliche Aufgabe</td><td>Niedrige Frequenz, kann aber als Root ausgeführt werden.</td></tr><tr><td><code>0 9-17 * * 1-5</code></td><td>Stündlich von 09:00 bis 17:00, Montag bis Freitag</td><td>Automatisierung für Geschäftszeiten</td><td>Prüfe benutzergehörige Skripte, die von Admin-Aufträgen verwendet werden.</td></tr><tr><td><code>*/15 9-17 * * 1-5</code></td><td>Alle 15 Minuten während der Geschäftszeiten</td><td>Abfrage während der Bürozeiten</td><td>Gutes Zeitfenster für pspy als Ziel.</td></tr><tr><td><code>0 0,12 * * *</code></td><td>Um Mitternacht und mittags</td><td>Zweimal täglicher Auftrag</td><td>Durch Kommata getrennte Stunden.</td></tr><tr><td><code>0 3 * * 1,3,5</code></td><td>Um 03:00 am Montag, Mittwoch und Freitag</td><td>Geplanter Batch</td><td>Prüfe die Übereinstimmung des Wochentags.</td></tr><tr><td><code>@reboot</code></td><td>Beim Systemstart</td><td>Startskript</td><td>Prüfe Persistenz und beschreibbare Startbefehle.</td></tr><tr><td><code>@hourly</code></td><td>Einmal pro Stunde</td><td>Stündliche Kurzform</td><td>Entspricht `0 * * * *`.</td></tr><tr><td><code>@daily</code></td><td>Einmal pro Tag</td><td>Tägliche Kurzform</td><td>Entspricht `0 0 * * *`.</td></tr><tr><td><code>@weekly</code></td><td>Einmal pro Woche</td><td>Wöchentliche Kurzform</td><td>Entspricht `0 0 * * 0`.</td></tr><tr><td><code>@monthly</code></td><td>Einmal pro Monat</td><td>Monatliche Kurzform</td><td>Entspricht `0 0 1 * *`.</td></tr><tr><td><code>@yearly</code></td><td>Einmal pro Jahr</td><td>Jährliche Kurzform</td><td>Entspricht `0 0 1 1 *`.</td></tr></tbody></table>

## Feldrechner

```
* * * * *
| | | | |
| | | | +-- Wochentag: 0-7, Sonntag ist 0 oder 7
| | | +---- Monat: 1-12
| | +------ Tag des Monats: 1-31
| +-------- Stunde: 0-23
+---------- Minute: 0-59
```

| Operator | Bedeutung       | Beispiel                                 |
| -------- | --------------- | ---------------------------------------- |
| `*`      | Beliebiger Wert | `* * * * *` jede Minute                  |
| `,`      | Werteliste      | `0 0,12 * * *` Mitternacht und Mittag    |
| `-`      | Bereich         | `0 9-17 * * *` jede Stunde von 09 bis 17 |
| `/`      | Schritt         | `*/5 * * * *` alle 5 Minuten             |

## Aufzählungsbefehle

```bash
crontab -l
cat /etc/crontab
ls -la /etc/cron.*
find /etc/cron* -type f -exec ls -la {} \; 2>/dev/null
find /var/spool/cron -type f -exec ls -la {} \; 2>/dev/null
systemctl list-timers --all
```

## Privesc-Checkliste

| Prüfe                                               | Warum das wichtig ist                                           |
| --------------------------------------------------- | --------------------------------------------------------------- |
| Beschreibbares Skript, das als Root ausgeführt wird | Direkter Pfad zur Ausführung privilegierter Befehle             |
| Relativer Befehls-Pfad                              | PATH-Hijacking kann das ausgeführte Binärprogramm kontrollieren |
| Platzhalter in beschreibbaren Verzeichnissen        | Optionen-Injektion gegen Tools wie `tar`                        |
| Für alle beschreibbares Cron-Verzeichnis            | Datei-Platzierung oder Skriptaustausch                          |
| Root-Auftrag verarbeitet Benutzerdateien            | Parser- oder Befehlsinjektion über Eingabedateien               |
| Fehlende vollständige Pfade                         | Umgebungsabhängiges Verhalten                                   |
| Protokolle offenbaren den Zeitplan                  | Hilft bei Zeitvalidierung und Beweissammlung                    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/privesc/cron-jobs/cron-expression-calculator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
