Skip to content
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

pypsrp 库添加 WSManStackVersion #8

Open
mabangde opened this issue May 3, 2023 · 0 comments
Open

pypsrp 库添加 WSManStackVersion #8

mabangde opened this issue May 3, 2023 · 0 comments

Comments

@mabangde
Copy link

mabangde commented May 3, 2023

Tabshell 利用点:在创建PowerShell Session的时候(通过New-PSSession),可以指定WSManStackVersion参数。当值小于3的时候,Commands里会添加TabExpansion函数。
在powershell 利用中可通过以下来指定:
$version = New-Object -TypeName System.Version -ArgumentList "2.0"
$mytable = $PSversionTable
$mytable["WSManStackVersion"] = $version

python pypsrp 库中没找到 WSManStackVersion 设置的地方,阅读代码也没找到修改的地方

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

No branches or pull requests

1 participant