Skip to content

Instantly share code, notes, and snippets.

@thedude42
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedude42/5839db81667c2d1daf89 to your computer and use it in GitHub Desktop.
Save thedude42/5839db81667c2d1daf89 to your computer and use it in GitHub Desktop.
virtual-server test-virtual
service http
attach virtual-ip test-vip default
attach real-server some-server
!
script appender
source inline "ENDWORD_appender"
"use strict";
var vsm = require('lrs/virtualServerModule'),
Appender = require('./response_appender.js'),
FIX_HEADER = false;
var appender = new Appender.ResponseAppender('test-virtual', '<script>alert("SURPRISE!")</script>', FIX_HEADER);
ENDWORD_appender
admin-status online
!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment