דוגמאות לפקודה של תגובה מיידית
חל על:
רוצה לחוות את Defender עבור נקודת קצה? הירשם לקבלת גירסת ניסיון ללא תשלום.
למד אודות פקודות נפוצות המשמשות בתגובה חיה וראה דוגמאות לאופן השימוש בהם בדרך כלל.
בהתאם לתפקיד שלך, באפשרותך להפעיל פקודות תגובה חיה בסיסיות או מתקדמות. לקבלת מידע נוסף אודות פקודות בסיסיות ומתקדמים, ראה חקירת ישויות במכשירים המשתמשים בתגובה חיה.
analyze
# Analyze the file malware.txt
analyze file c:\Users\user\Desktop\malware.txt
# Analyze the process by PID
analyze process 1234
connections
# List active connections in json format using parameter name
connections -output json
# List active connections in json format without parameter name
connections json
dir
# List files and sub-folders in the current folder (by default it will show relative paths [-relative_path])
dir
# List files and sub-folders in the current folder, with their full path
dir -full_path
# List files and sub-folders in a specific folder
dir C:\Users\user\Desktop\
# List files and subfolders in the current folder in json format
dir -output json
fileinfo
# Display information about a file
fileinfo C:\Windows\notepad.exe
findfile
# Find file by name
findfile test.txt
getfile
# Download a file from a machine
getfile c:\Users\user\Desktop\work.txt
# Download a file from a machine, automatically run prerequisite commands
getfile c:\Users\user\Desktop\work.txt -auto
הערה
אין אפשרות להוריד את סוגי הקבצים הבאים באמצעות פקודה זו מתוך Live Response:
- ניתוח מבנה טקסט של קבצי נקודות
- קבצים כדפיים
- קבצים ריקים
- קבצים וירטואליים, או קבצים שאינם קיימים באופן מקומי באופן מלא
סוגי קבצים אלה נתמכים על-ידי PowerShell.
השתמש ב- PowerShell כפריט חלופי, אם אתה נתקל בבעיות בשימוש בפקודה זו מתוך Live Response.
library
# List files in the library
library
# Delete a file from the library
library delete script.ps1
processes
# Show all processes
processes
# Get process by pid
processes 123
# Get process by pid with argument name
processes -pid 123
# Get process by name
processes -name notepad.exe
putfile
# Upload file from library
putfile get-process-by-name.ps1
# Upload file from library, overwrite file if it exists
putfile get-process-by-name.ps1 -overwrite
# Upload file from library, keep it on the machine after a restart
putfile get-process-by-name.ps1 -keep
registry
# Show information about the values in a registry key
registry HKEY_CURRENT_USER\Console
# Show information about a specific registry value (the double backslash \\ indicates a registry value versus key)
registry HKEY_CURRENT_USER\Console\\ScreenBufferSize
remediate
# Remediate file in specific path
remediate file c:\Users\user\Desktop\malware.exe
# Remediate process with specific PID
remediate process 7960
# See list of all remediated entities
remediate list
run
# Run PowerShell script from the library without arguments
run script.ps1
# Run PowerShell script from the library with arguments
run get-process-by-name.ps1 -parameters "-processName Registry"
הערה
עבור פקודות ארוכות שפועלות, כגון 'הפעל' או 'getfile', מומלץ להשתמש בסמל '&' בסוף הפקודה כדי לבצע פעולה זו ברקע. פעולה זו תאפשר לך להמשיך לחקור את המחשב ולחזור לפקודת הרקע בסיום השימוש בפקודה הבסיסית 'fg'.
בעת העברת פרמטרים לקובץ Script של תגובה חיה, אל תכלול את התווים האסורים הבאים: ';', '&', '|', '!' ו- '$'.
scheduledtask
# Get all scheduled tasks
scheduledtasks
# Get specific scheduled task by location and name
scheduledtasks Microsoft\Windows\Subscription\LicenseAcquisition
# Get specific scheduled task by location and name with spacing
scheduledtasks "Microsoft\Configuration Manager\Configuration Manager Health Evaluation"
undo
# Restore remediated registry
undo registry HKEY_CURRENT_USER\Console\ScreenBufferSize
# Restore remediated scheduledtask
undo scheduledtask Microsoft\Windows\Subscription\LicenseAcquisition
# Restore remediated file
undo file c:\Users\user\Desktop\malware.exe
עצה
האם ברצונך לקבל מידע נוסף? Engage עם קהילת האבטחה של Microsoft בקהילת הטכנולוגיה שלנו: Microsoft Defender עבור נקודת קצה Tech Community.
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור