mirror of https://github.com/hak5/omg-payloads.git
Merge pull request #167 from aleff-github/patch-34
Starting a PowerShell with administrator permissions in Windowspull/178/head
commit
bd79c734e3
|
@ -0,0 +1,30 @@
|
|||
# Starting a PowerShell with administrator permissions in Windows 10/11
|
||||
|
||||
This script can be considered by people who are new to the world of scripts written in DuckyScript so that they can understand how to start a PowerShell with administrator permissions on a Windows machine.
|
||||
|
||||
**Category**: Execute
|
||||
|
||||
## Description
|
||||
|
||||
This script can be considered by people who are new to the world of scripts written in DuckyScript so that they can understand how to start a PowerShell with administrator permissions on a Windows machine.
|
||||
|
||||
Starting a PowerShell session with administrator privileges means the session has access to features and operations that require high permissions on the Windows operating system.
|
||||
|
||||
Some PowerShell commands require administrator privileges to run properly. Starting PowerShell as an administrator allows you to execute commands that require elevated permissions, such as managing system services, changing security settings, creating or modifying user accounts, installing system-level software, and so on.
|
||||
|
||||
It is important to note that running PowerShell with administrator privileges involves a higher level of responsibility and can cause significant changes to the system. Therefore, it is advisable to be careful and fully understand the effects of operations performed in a session with administrator privileges to avoid unwanted or harmful changes.
|
||||
|
||||
## Dependencies
|
||||
|
||||
* Nothing
|
||||
|
||||
## Example
|
||||
|
||||
- `STRINGLN Get-ExecutionPolicy -List`
|
||||
![](docs/1.png)
|
||||
|
||||
- `STRINGLN Set-ExecutionPolicy Bypass`
|
||||
![](docs/2.png)
|
||||
|
||||
- `STRINGLN Get-ExecutionPolicy -List`
|
||||
![](docs/3.png)
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
|
@ -0,0 +1,25 @@
|
|||
REM ####################################################################################
|
||||
REM # |
|
||||
REM # Title : Starting a PowerShell with administrator permissions in Windows |
|
||||
REM # Author : Aleff |
|
||||
REM # Version : 1.0 |
|
||||
REM # Category : Execute |
|
||||
REM # Target : Windows 10-11 |
|
||||
REM # |
|
||||
REM ####################################################################################
|
||||
|
||||
REM Requirements:
|
||||
REM - Nothing
|
||||
|
||||
DEFAULT_DELAY 500
|
||||
GUI x
|
||||
STRING a
|
||||
LEFTARROW
|
||||
ENTER
|
||||
|
||||
DELAY 2000
|
||||
STRINGLN Get-ExecutionPolicy -List
|
||||
STRINGLN Set-ExecutionPolicy Bypass
|
||||
STRINGLN Get-ExecutionPolicy -List
|
||||
|
||||
ALT F4
|
Loading…
Reference in New Issue