References:
From man page: man apt_preferences
| #!/bin/bash -e | |
| # This script installs or updates to the latest version of Go. | |
| # Multi-platform (Linux and macOS) | |
| # Multi-architecture (amd64, arm64, arm) support | |
| # | |
| # Add to your .profile, .bash_profile or .zshenv: | |
| # export PATH=$PATH:/usr/local/go/bin | |
| error_string=("Error: This command has to be run with superuser" |
| # PowerShell script to install scoop for multi-user and packages | |
| # if scoop is already installed, any additional packages are installed | |
| # Test if Admin | |
| if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) | |
| { Write-Host "This script requires administrative privileges."; Exit } | |
| # Check if scoop is installed | |
| Function Test-ScoopInstalled { | |
| $scoopExists = Get-Command scoop -ErrorAction SilentlyContinue |
References:
From man page: man apt_preferences
| Name | Package Id | Version | Source |
|---|---|---|---|
| 7Zip | 7zip.7zip | 19.0.0 | winget |
| Altap Salamander | salamander | choco | |
| Alt-Tab Terminator | alt-tab-terminator | choco | |
| AutoHotkey | Lexikos.AutoHotkey | 1.1.33.02 | winget |
| AutoHotkey Store Edition | HaukeGtze.AutoHotkeypoweredbyweatherlights.com | Latest | msstore (via winget) |
| Carnac |
| # Malleable C2 Profile | |
| # Version: CobaltStrike 4.2 | |
| # File: jquery-c2.4.2.profile | |
| # Description: | |
| # c2 profile attempting to mimic a jquery.js request | |
| # uses signed certificates | |
| # or self-signed certificates | |
| # Authors: @joevest, @andrewchiles, @001SPARTaN | |
| ################################################ |
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| sudo apt-get -y install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| #sudo apt-key fingerprint 0EBFCD88 |
In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).
The key components we need to install are tigervnc-standalone-server and systemd-genie.
For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.
So let's go. First, we need a working [WSL2](https://docs.microsoft.com/pt-br/windows/wsl/w