Advanced Search
Search Results
216 total results found
Zeek: Add GeoIP Data to Logs
Virtual Environments sudo apt install -y pipx pipx install zkg echo 'export PATH=$PATH:/opt/zeek/bin:$HOME/.local/bin' >> $HOME/.bashrc source $HOME/.bashrc Install Zeek Package zkg autoconfig zkg install geoip-conn sudo -i sed -i.bak 's/^# @load pac...
Get User Input (Shell Agnostic)
function getUserInput () { if [ $# -gt 1 ] ; then echo "Usage example: $0" echo "Usage example: $0 -hidden" return else if [ $# -gt 0 ] ; then local arg=$(echo "$1" | tr '[:upper:]'...
Architecture
[10.6.6.0/24] [10.9.9.0/24] [10.80.80.0/24] | | | | | | | | ...
Troubleshooting
Gopher Agent Generation Problem Need to generate an agent implant for LINUX TARGET (see diagram), but receive unhelpful error code in the AdaptixClient UI (exit code 1). Solution ./adaptixserver -profile profile.json Launch adaptixserver with profile ltr...
403
zsteg
Installation gem install zsteg for dir in $(find "$HOME/.local/share/gem/ruby" -maxdepth 2 -type d -name bin | sort -rh | head -n 1); do export PATH="$PATH:$dir" done Added to my shell .rc file so that I can call ruby scripts by their installed name
Hexdump Privileged File Read
Read with Hexdump sudo -u user.name /usr/bin/hexdump -v -e '/1 "%02x"' /home/user.name/.ssh/id_rsa > hex.dump -v -e '/1 "%02x"' syntax tells hexdump to read byte-per-byte and output in lowercase hexadecimal, whereas hexdump may not preserve the original byte...
Adding Persistent Storage to Live-Boot Images
Hardware Configuration Memory: Assigned as needed Hard Disk: Add an extra hard disk to the live-boot VM, sized as needd CD / DVD: Live Boot .iso file NIC: Select desired network / VLAN Boot Order .iso file Hard disk NIC Etc. Procedure Partit...
Linux Shell Command
LD_PRELOAD Useful in privilege escalation scenarios where sudo command is configured with: env_keep += LD_PRELOAD, env_keep += LD_LIBRARY_PATH, or something to the same effect. msfvenom -p linux/x64/exec CMD="/bin/bash -ip" AppendExit='true' -f elf-so -o cmd...
Clustering: Same ZFS Pool on All Nodes
Example Configuration Showing clustered PVE nodes I have a ZFS volume called Guest_Disks that stores Disk image and Container data that is allocated to the rackdrives ZFS pool Migrating VMs between Nodes The Problem In order to migrate VMs and...
Adding Additional Storage Disks
Before When installing PVE, you have the option to create a LVM Thin pool or a ZFS Pool, which both support Thin Provisioning and Snapshots. In the case of the node below, it was created with a ZFS Pool which is labeled as local-zfs. This is where VM and LXC ...
SUID -> PATH Exploit Chain
In this example, assume there's a SUID binary that calls gzip by it's relative name, resolving gzip wherever it happens to be in the current user's $PATH variable. We use PrependSetresuid='true' to ensure the binary retains SUID permissions. SSH Persistence ...
Generate New UUID4
echo $(cat /proc/sys/kernel/random/uuid)
Windows Host: Create Cloud-Init ISO File
Example comes from my VirtualBox cybersecurity lab project mkdir "$env:USERPROFILE\Desktop\cloud-init-iso" [System.IO.File]::WriteAllText("$env:USERPROFILE\Desktop\cloud-init-iso\meta-data", @" instance-id: i-$(Get-Random) local-hostname: test-server "@, [Syst...
PowerShell: Configure Network Interface
Static Configuration Get-NetIPConfiguration -Detailed | Select-Object InterfaceAlias, AllIPAddresses, @{Name='DnsServer'; Expression = {$_.DNSServer.ServerAddresses}} | Format-List List current network configurations Must be run as Administrator to configure...
Preparing Synology NAS
Virtual Machine Manager (VMM) Ensure you've installed the Virtual Machine Manager (VMM) package Check NFS Version Ensure NFSv4.1 is enabled PBS Service Account We'll create a service account for use with CIFS in case you prefer that option. In a later step,...
Install Proxmox Backup Server
Virtual Machine Manager (VMM) Download Proxmox Backup Server ISO https://www.proxmox.com/en/downloads/proxmox-backup-server/iso Upload ISO to VMM Open VMM > Image > ISO File > Add > From computer Upload successful Create VM Add Network (as needed) Click Ne...
Map NFS Share in PBS
Firewall Example rule in pfSense allowing PBS servers to reach ports (including NFS) on NAS servers Ports: 111 892 2048 Configure Share Permissions Create NFS Rule Go to Control Panel > Shared Folder > Right-click folder > Edit Go to NFS Permissions tab >...