Pentest və SOC Cheat Sheet
  • Reconnaissance
  • Post-Explotation
    • Linux Post-Explotation
      • Linux Local Enumeration
      • Linux Privilege Escalation
      • Dumping and cracking hashes on Linux
      • Linux Persistence
    • Windows Post-Explotation
      • Windows Local Enumeration
      • Windows Privilege Escalation
      • Windows Persistence
  • Network Services Pentesting
    • 21-Pentesting FTP
    • 22-Pentesting SSH
    • 23-Pentesting Telnet
    • 53-Pentesting DNS
    • 25,465,587-Pentesting SMTP
    • 110,995-Pentesting POP
    • 139,445-Pentesting SMB
    • 3306-Pentesting MySQL
    • 3389-Pentesting RDP
    • 1433-Pentesting MSSQL-Microsoft SQL Server
    • 389,636,3268,3269-Pentesting LDAP
  • Web Pentesting
    • Broken Access Control
      • Praktiki nümunə
    • OS Command Injection
      • Praktiki nümunə
    • SQL Injection
      • Praktiki nümunə
    • Cross-Site-Scripting (XSS)
      • Praktiki nümunə
    • File Upload
      • Praktiki nümunə
    • Directory Traversal və Path Traversal
      • Praktiki nümunə
    • CSRF
    • XXE
    • Clickjacking
      • Praktiki nümunə
    • SSRF
      • Praktiki nümunə
    • JWT (Json Web Token)
      • Praktiki nümunə
    • Local&Remote File İnclusion
      • Praktiki nümunə
      • Local File inclusion ilə reverse shell almaq
    • 401&403 Bypass
    • Login Bypass
    • Open Redirect
    • Unicode Injection
    • Security Misconfiguration
    • CRLF injection
    • LDAP Injection
    • Cookies Hacking
    • Cross site WebSocket hijacking (CSWSH)
    • SSTI (Server Side Template Injection)
    • CSTI (Client Side Template Injection)
    • XSLT Server Side Injection (Extensible Stylesheet Languaje Transformations)
    • Registration & Takeover Vulnerabilities
    • Regular expression Denial of Service - ReDoS
    • Reset/Forgotten Password Bypass
    • SAML Hücumları
    • Reverse Tab Nabbing
    • Web Tool - WFuzz
    • XPATH enjeksiyonu
    • Server-Side Includes (SSI) Injection
    • Edge Side Inclusion Injection (ESII)
    • Race Condition
    • PostMessage
    • Parameter Pollution
    • Cache Poisoning and Cache Deception
    • Captcha Bypass
  • AD Pentesting
    • Domain Enumeration
      • PowerView ilə enumeration
      • AD Module ilə enumeration
      • BloodHound ilə enumeration
        • On Site BloodHound
      • Using Adalanche
        • Remote adalanche
      • Useful Enumeration Tools
    • Local Privilege Escalation
      • Useful Local Priv Esc Tools
      • UAC Bypass
    • Lateral Movement
      • Powershell Remoting
      • Mimikatz
      • Remote Desktop Protocol
      • URL File Attacks
      • Useful Tools
    • Domain Privilege Escalation
      • Kerberoast
      • ASREPRoast
      • Password Spray Attack
      • Force Set SPN
      • Abusing Shadow Copies
      • List and Decrypt Stored Credentials using Mimikatz
      • Unconstrained Delegation
      • Constrained Delegation
      • Resource Based Constrained Delegation
      • DNSAdmins Abuse
      • Abusing Active Directory-Integraded DNS (ADIDNS) poisoning
      • Abusing Backup Operators Group
      • SID History Abuse
      • Active Directory Certificate Services
    • Domain Persistence
      • Golden Ticket Attack
      • Silver Ticket Attack
      • Skeleton Key Attack
      • DSRM Abuse
      • DCsync Attack
    • Cross Forest Attacks
      • Trust Tickets
      • Abuse MSSQL Servers
      • Breaking Forest Trusts
  • SOC - Cheat Sheet
    • SOC Nədir?
    • SOC Komponentləri Nələrdir?
    • SOC Checklist
    • SIEM
      • Splunk Qurulması və Konfiqurasiyası
    • IDS/IPS
    • Firewall
    • Firewall qurulması və konfiqurasiyası
    • EDR/XDR
    • SOAR
    • Windows Commands for SOC analysts
      • GUI Programs in Windows
      • Event Viewer
      • Task Scheduler
      • Group Policy Editor
      • Device Manager
      • Task Manager
      • Registry Manager
    • Linux Commands for SOC analysts
    • LOLBAS Apps and Commands
      • Apps and Commands
Powered by GitBook
On this page
  • Audit Logon Event
  • WevtUtil

Was this helpful?

  1. SOC - Cheat Sheet
  2. Windows Commands for SOC analysts

Event Viewer

PreviousGUI Programs in WindowsNextTask Scheduler

Last updated 1 year ago

Was this helpful?

Windows sistemlərində hadisə qeydlərində qeydə alınmış hadisələrə baxın və təhlil edir.

Hər gün kompüterdə çoxlu fəaliyyətlər baş verir. Windows OS sistem performansı, proqramlar və kompüterin təhlükəsizlik aspektləri ilə bağlı hər bir hadisəni C:\WINDOWS\system32\winevt jurnalında qeyd edir.

Windows kompüterdə baş verən hər bir hadisəni aşağıdakı kateqoriyalara təsnif edir:

Sistem log: Bu loglarda hardware daxil olmaqla kompüter sistemi ilə bağlı hadisələr qeydə alınır. Məsələn, sistemin işə salınması və bağlanması kimi hadisələr burada qeyd olunur.

Tətbiq: Bir maşında yerləşdirilən proqramlarla əlaqəli bütün hadisələr bu boşluğa daxil edilir. Məsələn, MS Word kimi proqramlara aid məlumatlar bu jurnalda qeyd olunur.

Quraşdırma: ƏS-nin quraşdırılması və ya təkmilləşdirilməsi zamanı baş verən hadisələr. Məsələn, Windows OS yeniləmələri haqqında məlumatı burada tapa bilərsiniz.

Təhlükəsizlik: Windows yoxlama xüsusiyyəti təhlükəsizlik hadisələrini davamlı olaraq izləyir və onların baş verməsini bu jurnalda qeyd edir. Məsələn, uğurlu və uğursuz giriş cəhdləri daxil olmaqla, istifadəçi identifikasiyası hadisələri.

Forwarded events:Bu, 2008-ci ildə təqdim edilmiş və digər kompüterlərdən ötürülən hadisələri saxlayan xüsusi kateqoriyadır.

Audit Logon Event

4698 -Yeni tapşırıq cədvəli yaradıldı

4702- redaktə edildikdən sonra dusur(yeniləndi)

4688- yeni bir proses yaradıldıqda daxil edilir

4624-Hesab uğurla daxil oldu

4625-Hesab daxil ola bilmədi

4657-Reyestr əlavə silmə yeniləmə prosesləri

1102- Audit jurnalı təmizləndi

4720-İstifadəçi hesabı yaradıldı

4672-Yeni girişə xüsusi imtiyazlar verildi

WevtUtil

Sizə hadisə loglari və publisherslər haqqında məlumat əldə etməyə imkan verir. Siz həmçinin bu əmrdən hadisə manifestlərini quraşdırmaq və silmək, sorğuları yerinə yetirmək və loglari ixrac etmək, arxivləşdirmək və silmək üçün istifadə edə bilərsiniz.

Commands:

  • Bütün loglarin adlarını sadalayın:

wevtutil el
  • Local kompüterdə Sistem jurnalı haqqında konfiqurasiya məlumatlarını XML formatında göstərin:

wevtutil gl System /f:xml
  • Event loglarnın atributlarını təyin etmək üçün konfiqurasiya faylından istifadə edin (konfiqurasiya faylı nümunəsi üçün Qeydlərə baxın):

wevtutil sl /c:config.xml
  • Microsoft-Windows-Eventlog event publisher haqqında məlumatı, o cümlədən publisherin qaldıra biləcəyi hadisələr haqqında metadata göstərin:

wevtutil gp Microsoft-Windows-Eventlog /ge:true
  • Application loglarının statusunu göstərin:

wevtutil gli Application
  • Application jurnalından bütün hadisələri silin:

wevtutil clear-log Application
  • Sistem jurnalından hadisələri əldə edin::

Get-EventLog -LogName System
  • Get-EventLog-dan daha təkmildir, filtrləmə və sorğuya imkan verir::

Get-WinEvent -LogName System -FilterXPath "*[System[Provider[@Name='EventLog']]]"
  • Event ID-si ilə filtrləmək üçün Get-WinEvent ilə -InstanceId parametrindən istifadə edin::

Get-WinEvent -LogName Security -FilterHashtable @{ID=4624}
  • WMIC istifadə edərək hadisələrin siyahısı::

wmic ntevent where "logfile='system'" get message, timegenerated
  • Uzaq kompüterdən hadisələri sorğulayın::

Get-WinEvent -LogName Security -ComputerName RemoteComputer
  • Xüsusi logları silir:

Clear-EventLog -LogName System
  • Hadisələri CSV faylına ixrac edin::

Get-WinEvent -LogName System | Export-Csv -Path C:\Path\To\ExportedEvents.csv -NoTypeInformation
  • -StartTime və -EndTime parametrlərindən istifadə edin:

Get-WinEvent -LogName Security -FilterHashtable @{StartTime=(Get-Date).AddDays(-1)}