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

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 ...

Data Exfiltration

Web Cross Site Scripting (XSS)

Stored / Hosted XSS If the target page has a loose content security policy / cross-origin policy, then you may be able to host xss.js using a Python web server and have the target execute the JavaScript to read the page source stored in url. If there is a vul...

Cookie Theft

Web Cross Site Scripting (XSS)

Stored / Hosted XSS If there is a vulnerability where you can store or submit HTML and have it rendered on the page or some other client-side application, then the src=x condition would trigger the onerror= attribute and cause the target to execute the JavaSc...

paste

Linux Administration Command Line Tricks

apple banana pear mango grapes fruit.txt cat fruit.txt | paste -s -d ',' - Using piped input paste -s -d ',' < fruit.txt Using data redirection  

Common Bash Pitfalls

Linux

https://mywiki.wooledge.org/BashPitfalls/ also on Archive.org Command execution via unquoted variable Arithmetic expansion leading to command execution Arithmetic expansion in array index leads to command execution Etc...

Finding Build Manifests

Web Next.js

Assuming you have some means of reading server-side files, these are some examples of places you might look to find build manifests. Using local file read, we read ../../../../../../../../../proc/self/environ and find the Next.js application is Dockerized. W...

PowerShell: Find File Owned by User

Windows Administration PowerShell

$searchPath = 'C:\Program Files' $userName = 'john.doe' Get-ChildItem -ErrorAction 'SilentlyContinue' -Force -File -Recurse -Path "$searchPath" | Where-Object { try { (Get-Acl $_.FullName).Owner -like "*$userName*" } catch {} }