Skip to content

Instantly share code, notes, and snippets.

View sysr-q's full-sized avatar
💾
Hacking the planet.

Chris sysr-q

💾
Hacking the planet.
  • Auckland, New Zealand
  • 11:13 (UTC +13:00)
View GitHub Profile
@sysr-q
sysr-q / VersionComparator.groovy
Created June 9, 2020 22:56 — forked from founddrama/VersionComparator.groovy
a version comparator (e.g., "1.0.2" < "1.0.10")
def versions = []
def f = new File('mock-version-tags.txt')
f.eachLine { versions << it }
def versionComparator = { a, b ->
def VALID_TOKENS = /._/
a = a.tokenize(VALID_TOKENS)
b = b.tokenize(VALID_TOKENS)
for (i in 0..<Math.max(a.size(), b.size())) {
@sysr-q
sysr-q / README.md
Last active August 29, 2015 14:15 — forked from mathiasbynens/README.md
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis (mike.philip.davis@gmail.com)
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import select
#!/bin/bash
# scrot -> pomf.se, by @__akiaki
SCROTARGS=()
while (( "$#" )); do
if [ "$1" == "--delete" ]; then
DELETE=1
else
SCROTARGS+=($1)