Skip to content

Commit

Permalink
Add powershell debug printing in python
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcthinkst committed Feb 2, 2024
1 parent 83d89c5 commit d5ee66f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
- name: Print module path
run: echo "${env:PSModulePath}"
- name: Import Microsoft.PowerShell.Security
run: pwsh -command Import-Module Microsoft.PowerShell.Security
run: powershell -command Import-Module Microsoft.PowerShell.Security
- name: Integration Tests
run: |
$env:LIVE = 'True'
Expand Down
10 changes: 10 additions & 0 deletions tests/integration/test_custom_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ def test_custom_binary(
) as f:
f.write(signed_exe_bytes)

print("Running import from inside python")
module_path_out = subprocess.check_output(
'powershell -command echo "${env:PSModulePath}"'
)
print(module_path_out)
import_out = subprocess.check_output(
"powershell -command Import Microsoft.PowerShell.Security"
)
print(import_out)

# get returned exe's Authenticode signature, and trigger alerts
subprocess.Popen(
[
Expand Down

0 comments on commit d5ee66f

Please sign in to comment.