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

216 total results found

Windows RDP Client Custom Resolutions

Windows Administration

Setting Custom Resolutions Problem When setting resolutions using the slider, you are limited in the selections you can make, even if the RDP server can support more diverse selections. Solution Determine the Target Resolution Assumes you're using 64-...

Kali LXC: Fixing Slow Desktop Load after KDE Upgrade

Proxmox LXC Management

Background Following an upgrade to KDE Plasma, whenever I entered user credentials, the KDE splash screen would load, but then it would take about a minute for the desktop environment to load. And even then, once the desktop environment was loaded, when click...

Enumerating SNMP Community Strings

Network Pivoting

TARGET='TARGET_IP_ADDRESS_HERE' snmpwalk -c public -v1 "$TARGET" . > snmpwalk.txt grep '[^Hex-]STRING' snmpwalk.txt iso.3.6.1.2.1.1.1.0 = STRING: "Linux underpass 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64" iso.3.6.1.2.1.1.4.0 = ...

networking
pivoting
snmp
snmpwalk

Mining Data from Git Repos

Web Dumping Open Git Repos

Interesting Files The regex patterns found on this page are just some examples you could use to extract data from git repositories. Get creative and build upon these with your own grep regex patterns. cd git_loot find . -type f \( -name '*config*' -o -name ...

Alternative Network Scans

Network Pivoting

Generate Target List Linux ip="10.9.9.0"; cidr=24; IFS=. read -r i1 i2 i3 i4 <<< "$ip"; raw=$(( (1 << (32 - cidr)) - 2 )); base_ip=$(( (i1<<24) + (i2<<16) + (i3<<8) + i4 )); network=$(( base_ip & (0xFFFFFFFF << (32 - cidr)) )); for i in $(seq 1 $raw); do ip_ca...

Install Ghauri on Kali Linux

Web SQL Injection

Installation Python environment is managed by apt on Kali Linux, use pipx or a virtual environment to install the required packages pipx install git+https://github.com/r0oth3x49/ghauri.git pipx ensurepath This ensures you can load pipx packages using the P...

Manual Testing with cURL

Web curl

Multipart Forms This form expects the following fields: cat_name : text age : number birthdate : date weight : number cat_photo : file The curl command to submit this form: # -X POST is redundant here, as -F implies this # Can specify a content type in the...

Allow Multicast Traffic Across VLANs

Computer Networking

Scenario You have multiple VLANs firewalled to segment your network. One such VLAN is an IOT VLAN, where any device considered to be an IOT device is a member of this VLAN. In this VLAN, you have some Google products to which you wish to cast / stream audiovis...

PowerShell: Find File Download Source

Windows Administration PowerShell

# Recursively search current user's Downloads directory Get-ChildItem -Recurse -File "$env:UserProfile\Downloads\" | ForEach-Object { $file = $_ # Get all data streams of the file $item = Get-Item $file.FullName -Stream * if ($item.Stream -conta...

PowerShell: Find File Download Source

Windows PowerShell

Convert PFX to PEM

Certificates and Encryption Convert Formats

Output Combined Data openssl pkcs12 -nodes -in file.pfx -out file.pem Key and certificate combined in single file Output Key and Certificate openssl pkcs12 -nodes -in file.pfx -nocerts -out star.contoso.org.key Extract the Private Key openssl pkcs12 -c...

Read X.509 Data from Certificate File

Certificates and Encryption

openssl x509 -in cert.pem -text -noout  

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