Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

print tree4

!/usr/bin/env bash Linux-only Unicode tree with sizes and total files print_tree() { local dir="$1" local prefix="${2:-}" local maxdepth="${3:-0}" # 0 = unlimited local depth="${4:-1}" # Skip if not a…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




!/usr/bin/env bash






Linux-only Unicode tree with sizes and total files



print_tree() {

local dir="$1"

local prefix="${2:-}"

local maxdepth="${3:-0}" # 0 = unlimited

local depth="${4:-1}"




# Skip if not a directory
[[ ! -d "$dir" ]] && return
[[ $maxdepth -ne 0 && $depth -gt $maxdepth ]] && return

echo "${prefix}${dir##*/}/"

shopt -s nullglob

# Directories first
local dirs=()
for d in "$dir"/*; do
[[ -d "$d" && ! -L "$d" ]] && dirs+=("$d") # skip symlinks
done
IFS=$'\n' dirs=($(printf "%s\n" "${dirs[@]}" | sort))
for i in "${!dirs[@]}"; do
local d="${dirs[i]}"
local branch="├──"
[[ $i -eq $(( ${#dirs[@]} - 1 )) ]] && branch="└──"
local new_prefix="$prefix"
[[ $i -eq $(( ${#dirs[@]} - 1 )) ]] && new_prefix+=" " || new_prefix+="│ "
echo "${prefix}${branch} ${d##*/}/"
print_tree "$d" "$new_prefix" "$maxdepth" $((depth+1))
done

# Files next
local files=()
for f in "$dir"/*; do
[[ -f "$f" ]] && files+=("$f")
done
IFS=$'\n' files=($(printf "%s\n" "${files[@]}" | sort))
local file_count=0
for i in "${!files[@]}"; do
local f="${files[i]}"
local branch="├──"
[[ $i -eq $(( ${#files[@]} - 1 )) ]] && branch="└──"
# Get size safely
local size=$(stat -c "%s" "$f" 2>/dev/null || echo 0)
# Convert to human-readable
local hr_size
if [[ "$size" -lt 1024 ]]; then hr_size="${size}B"
elif [[ "$size" -lt 1048576 ]]; then hr_size="$((size/1024))K"
elif [[ "$size" -lt 1073741824 ]]; then hr_size="$((size/1024/1024))M"
else hr_size="$((size/1024/1024/1024))G"; fi
echo "${prefix}${branch} ${f##*/} [${hr_size}]"
((file_count++))
done

[[ $file_count -gt 0 ]] && echo "${prefix}└── Total files: $file_count"

shopt -u nullglob




}






Usage: print_tree






Example: unlimited depth from current directory



print_tree $ROOT "" 0

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - print tree4
id: 3c342e09-6e46-4d39-a8ee-7c4c443b7a60
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-27"
        description = "YARA Signature for "
    strings:
        $str = "print tree4" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("print tree4")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*print tree4*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "print tree4"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten print tree4

Thematisch verwandte Begriffe: print, tree4 · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag