ansible 11.4.0
Windows Firewall disable command via netshQueries Active Directory LDAP computer objects for LAPS passwords
SHA-256fb56f6e5d5b08f69499a76f0972ac0b88ddc488ada1f386129ba40cb0b5c6ec7
Evidence
76:128…
77 type: bool
78 default: no
79 system:
80 description:
81 - Run the remote command in the System account.
82 type: bool
83 default: no
⋯4 lines
118:16… gedit.exe
119 interactive: true
120 system: true
121
122- name: Run the setup.exe installer on multiple servers using the Domain Administrator
123 community.windows.win_psexec:
124 command: E:\setup.exe /i /IACCEPTEULA
125 hostnames:
126 - remote_server1
⋯5 lines
132- name: Run PsExec from custom location C:\Program Files\sysinternals\
133 community.windows.win_psexec:
134 command: netsh advfirewall set allprofiles state off
135 executable: C:\Program Files\sysinternals\psexec.exe
136 hostnames: [remote_server]
137 password: some_password
138 priority: low
139'''
140
141RETURN = r'''
142cmd:
143 description: The complete command line used by the module, including PsExec call and additional options.
144 returned: always
145 type: str
146 sample: psexec.exe -nobanner \\remote_server -u "DOMAIN\Administrator" -p "some_password" -accepteula E:\setup.exe
147pid:
148 description: The PID of the async process created by PsExec.
149 returned: when C(wait=False)
150 type: i …
153:36… r the command.
154 returned: always
155 type: int
156 sample: 0
157stdout:
158 description: The standard output from the command.
159 returned: always
160 type: str
161 sample: Success.
162stderr:
163 description: The error output from the command.
164 returned: always
165 type: str
166 sample: Error 15 running E:\setup.e …
27:6… String timeoutMinutes = optional.timeout ?: 60
28
29 sh''' wget -qN http://esgweb.eng.netapp.com/~lorenp/synopsys-detect-6.0.0-air-gap.zip -O /tmp/synopsys-detect.zip
30 unzip -u -d /tmp/tools /tmp/synopsys-detect.zip
31 rm -f /tmp/synopsys-detect.zip
32 '''
33
34 // Create the temporary directory for the scan logs
35 def scanTempDir = sh(returnStdout: true, script: "mktemp --directory \"/tmp/syn …
40:25… parameters: ${optional}"
41 echo "Running with a timeout value of ${timeoutMinutes} minutes"
42
43 // We need to locate all of the images to scan.
44 sh "find ${imageDirectory} -type f -iname '*.tar'> listFiles"
45 def files = readFile( "listFiles" ).split('\n');
46 try {
47 files.each {
48 def fileName = it.split('/')[-1];
49 timeout(time: "${timeoutMinutes}", unit: 'MINUTES') {
50 // Run a single scan for each image we find, using the filename as a scan identifier
51 sh """
52 java -Xms4096m -Xmx8192m -Xss1024m -jar …
Showing the top 5 files — 7 more files (109 regions) not shown.
No evidence locations were recorded for this file. Raw result