<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: is there a way to pass the password to cytool via cmd? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/346946#M268</link>
    <description>&lt;P&gt;btw:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo 5Nstall22#| "c:\program files\Palo Alto Networks\Traps\cytool.exe" protect disable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works locally...&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 17:15:52 GMT</pubDate>
    <dc:creator>Nachum</dc:creator>
    <dc:date>2020-09-04T17:15:52Z</dc:date>
    <item>
      <title>is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/346933#M267</link>
      <description>&lt;P&gt;let say I want to run protect disable on 100 computers....&amp;nbsp; I tried the following but didn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\PSTools&amp;gt;psexec -i -d -s \\pc100 cmd /c echo 5Nstall22#| "c:\program files\Palo Alto Networks\Traps\cytool.exe" protect disable&lt;/P&gt;&lt;P&gt;5Nstalll22# is the pass....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 17:14:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/346933#M267</guid>
      <dc:creator>Nachum</dc:creator>
      <dc:date>2020-09-04T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/346946#M268</link>
      <description>&lt;P&gt;btw:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo 5Nstall22#| "c:\program files\Palo Alto Networks\Traps\cytool.exe" protect disable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works locally...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 17:15:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/346946#M268</guid>
      <dc:creator>Nachum</dc:creator>
      <dc:date>2020-09-04T17:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/347028#M270</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;wmic /node:"COMPUTERNAME" process call create "cmd /c echo 5Nstall22# | 'c:\program files\Palo Alto Networks\Traps\cytool.exe' protect disable"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work, you can try the following bat:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;@echo off

echo echo 5Nstall22# ^| "c:\program files\Palo Alto Networks\Traps\cytool.exe" protect disable &amp;gt; c:\tmp\cytool.bat

wmic /node:"COMPUTERNAME" process call create "cmd /c c:\tmp\cytool.bat"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also have other possibilities by running, one time, remote scheduled tasks. You have options.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 01:48:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/347028#M270</guid>
      <dc:creator>Max.Segura</dc:creator>
      <dc:date>2020-09-05T01:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/347275#M271</link>
      <description>&lt;P&gt;thank you!&amp;nbsp; the results I got was:&lt;/P&gt;&lt;P&gt;Executing (Win32_Process)-&amp;gt;Create()&lt;BR /&gt;Method execution successful.&lt;BR /&gt;Out Parameters:&lt;BR /&gt;instance of __PARAMETERS&lt;BR /&gt;{&lt;BR /&gt;ProcessId = 5032;&lt;BR /&gt;ReturnValue = 0;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;yet the query shows its still Enabled...&lt;/P&gt;&lt;P&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;c:\PSTools&amp;gt;psexec -i -d -s \\9020m-77 cmd /c "c:\program files\Palo Alto Networks\Traps\cytool.exe" protect query&lt;BR /&gt;Connecting to 9020m-77...Protection Mode State&lt;BR /&gt;Process Enabled Enabled&lt;BR /&gt;Registry Enabled Enabled&lt;BR /&gt;File Enabled Enabled&lt;BR /&gt;Service Enabled Enabled&lt;BR /&gt;Starting cmd on 9020m-77...ice on 9020m-77...&lt;BR /&gt;cmd started on 9020m-77 with process ID 5044.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you though, you are right, I have other options... I decided to just use the web console to update the agents...&amp;nbsp; it was more of a challenge and if it did work, I would use it in the future in other cases where its needed.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:41:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/347275#M271</guid>
      <dc:creator>Nachum</dc:creator>
      <dc:date>2020-09-07T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/433363#M1038</link>
      <description>&lt;P&gt;You have to make sure there is no space between the end of the password and the | otherwise the space is included as part of the password.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 04:46:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/433363#M1038</guid>
      <dc:creator>mrowland</dc:creator>
      <dc:date>2021-09-13T04:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass the password to cytool via cmd?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/581726#M6411</link>
      <description>&lt;P&gt;You can also use a PowerShell script for that, e.g. for a list of servers, like:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;param(
[Parameter(Mandatory = $true)]
[string[]]$servers
)
Set-Location -Path $PSScriptRoot

# Assuming $Secret:cortexpass is how you're securely storing and accessing the password
# Ensure you have a secure method to access this password in the context of the remote session
$password = $Secret:cortexpass
$cytoolPath = 'C:\Program Files\Palo Alto Networks\Traps\cytool.exe'

$scriptBlock = {
param($password, $cytoolPath)
$processStartInfo = New-Object System.Diagnostics.ProcessStartInfo
$processStartInfo.FileName = $cytoolPath
$processStartInfo.Arguments = "protect disable"
$processStartInfo.RedirectStandardInput = $true
$processStartInfo.UseShellExecute = $false
$process = [System.Diagnostics.Process]::Start($processStartInfo)
$process.StandardInput.WriteLine($password)
$process.StandardInput.Close()
$process.WaitForExit()
}

foreach ($server in $servers) {
try {
Invoke-Command -ComputerName $server -ScriptBlock $scriptBlock -ArgumentList $password, $cytoolPath
Write-Output "Successfully disabled tamper protection on $server."
} catch {
Write-Output "Failed to disable tamper protection on $server. Error: $_"
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 16:27:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/is-there-a-way-to-pass-the-password-to-cytool-via-cmd/m-p/581726#M6411</guid>
      <dc:creator>LLevitchi</dc:creator>
      <dc:date>2024-03-26T16:27:30Z</dc:date>
    </item>
  </channel>
</rss>

