Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

312 total results found

2) Linux VM (No LVM)

Proxmox Resize Proxmox VM Disk

Resize the Disk in PVE Before you can resize any partitions in the VM, you need to expand the disk size in PVE first: https://notes.benheater.com/books/proxmox/page/resize-the-vm-disk-in-pve  Disk size was formerly 32 GiB and has been extended 16 GiB to tota...

1) Resize the VM Disk in PVE

Proxmox Resize Proxmox VM Disk

Precautions Stop! Take a snapshot or backup of your VM in its current state for easy rollback in the event of failure or data loss. Extend the Disk in PVE GUI Example VM: Windows 11, current disk size: 75 GiB Select Hardware menu and select the cu...

Setting Directory and File ACLs

Windows Administration

PowerShell $targetFile = "C:\Users\Public\Desktop\bin.exe" $acl = Get-Acl $targetFile $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Everyone", "ExecuteFile", "Allow") $acl.SetAccessRule($rule) Set-Acl $targetFile -AclObject $acl ...

Find and Restore Items in RecycleBin

Windows Administration

Find Items Get-ChildItem -Force -File -Recurse 'C:\$RECYCLE.BIN' Restore Items $Shell = New-Object -ComObject Shell.Application $RecycleBin = $Shell.Namespace(0xA) $RecycleBin.Items() | ForEach-Object { $_.InvokeVerb("Restore") } Restore all to origina...

Unattended Upgrades (Debian Derivative)

Linux Administration Automatic Updates

This is going to be more of a tl;dr version of my write-up here Install and Configure sudo apt install -y unattended-upgrades apt-listchanges Origin Patterns Understanding Origin Patterns Origin patterns inform UnattendedUpgrades which apt package cache...

Read TLS Certificate from Server

Certificates and Encryption

OpenSSL openssl s_client -connect 127.0.0.1:443 -servername domain.tld Unix-like operating system & '.\openssl.exe' s_client -connect 127.0.0.1:443 -servername domain.tld Windows PowerShell Nmap nmap -Pn -sT -p443 --script ssl-cert domain.tld

jq

Web JSON

Selecting JSON Properties Property Name Contains Dashes { "first-name": "john", "last-name": "doe", "nickname": "jim" } file.json jq ."first-name" < file.json Incorrect jq '."first-name"' < file.json Correct Select a Property from an Ar...

Constrain Burp Memory Usage

Web Burp Suite

JVM Options Search for the application and right click "Edit Application" (KDE Plasma pictured)   Specify -XX:MaxRamPercentage= in the "Arguments" input (again KDE Plasma) Now, when Burp is launched, the Java VM options will constrain the process to us...

Disable KWallet Subsystem

Linux Administration KDE Plasma

nano ~/.config/kwalletrc [Wallet] Enabled=false

Convert Certificate and Key to PFX

Certificates and Encryption Convert Formats

openssl pkcs12 -export -out file.pfx -inkey file.key -in file.crt Enter password details when prompted

Pass the Certificate

Active Directory Post Exploitation: Attacks

Cracking PFX Archives A .pfx archive is a way to bundle the certificate, key, and metadata in one container. There are ways to unbundle the archive and output the data into their individual parts. However, .pfx files are typically password protected, and woul...

apt: Find Application Source Package

Linux Administration Package Managers

Problem On Debian based systems, apt acts as a wrapper around dpkg to manage dependencies and conflicts when installing and removing an application. You have a binary installed on your system and you want to trace down which package installed this binary (as...

apt: List Package Dependencies and Files

Linux Administration Package Managers

Problem On Debian based systems, apt acts as a wrapper around dpkg to manage dependencies and conflicts when installing and removing an application. You want to know which packages are going to be installed by a particular package when using apt. Solution...

LdapModify

Active Directory Post Exploitation: Attacks

When to Use You'll know when you've found a domain controller, because it will have several ports open that clearly distinguish it: PORT STATE SERVICE 53/tcp open domain 88/tcp open kerberos-sec 135/tcp open msrpc 139/tcp open netbios-ssn ...

Using Pyenv to Manage Python Environments

Computer Programming Python

sudo apt install pyenv pyenv init Sample output, run locally and append lines as described to your shell .rc file exec "$SHELL" Reload your shell .rc file pyenv install 3.11.11 Install python3.11 binaries mkdir ./python_project cd ./python_project p...

FFUF

Web Brute Force & Fuzzing

Brute Force Logins Brute Force with a Request File Start Burp Make a randomized login to the target web page Copy the output, for example: POST /login HTTP/1.1 Host: 10.10.10.10 Content-Length: 37 Accept: application/json, text/plain, */* User-Age...

Gobuster

Web Brute Force & Fuzzing

Virtual Host Enumeration You can find a more detailed analysis on the functionality of virtual hosts here, whereas below is a very succinct overview of the configuration. Example Virtual Host Configs Nginx Virtual Hosts Example /etc/nginx/sites-available...

802.1q on VMs in VLAN-aware Networks

VMware

Network Diagram igb0 -- WAN [FIREWALL] igb1 -- LAN | igb1.25 | igb1.80 | igb1.148 | igb1.666 ...