Skip to content

Added the functionality to download remediation scripts #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

redd1ng
Copy link

@redd1ng redd1ng commented May 9, 2025

Hello,

I added the command get_remediations to pytune which downloads and prints all remediation scripts which are deployed to the defined device.

$ python3 pytune.py get_remediations -d Fake-Device -m Fake-Device_mdm.pfx 
[*] downloading remediation scripts...
[!] remediation scripts found!
[*] #1 (Remediation/Policy ID:d9bfe09e-9a6b-4e2b-8182-402063f78737):

Detection Script Parameters:
Detection Script:
echo "----START DETECTION----" | Add-Content -Path "C:\detection.txt"
date | Add-Content -Path "C:\detection.txt"
whoami | Add-Content -Path "C:\detection.txt"
echo "----STOP DETECTION----" | Add-Content -Path "C:\detection.txt"

Remediation Script Parameters:
Remediation Script:
echo "----START REMEDIATION----" | Add-Content -Path "C:\remediation.txt"
date | Add-Content -Path "C:\remediation.txt"
whoami | Add-Content -Path "C:\remediation.txt"
echo "----STOP REMEDIATION----" | Add-Content -Path "C:\remediation.txt"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant