-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_with_rhino.js
30 lines (28 loc) · 960 Bytes
/
run_with_rhino.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
load("/home/freddy/mozilla/escape-artist/caps.js")
var CONFIG = {
"host": "localhost",
"path": "/",
"debug": false,
"res": {
"text/html": "samples/sample.html",
"text/plain": "samples/sample.txt",
"text/javascript": "samples/sample.js",
"text/css": "samples/sample.css",
"application/font-woff": "samples/brankovic.ttf",
"image/svg+xml": "samples/sample.svg",
"image/gif": "samples/sample.gif",
"image/jpeg": "samples/sample.jpg",
"image/jpg": "samples/sample.jpg",
"image/png": "samples/sample.png",
"video/mp4": "samples/video.mp4",
"video/ogg": "samples/video.ogv",
"audio/mpeg": "samples/audio.mp3",
"audio/ogg": "samples/audio.ogg"
}
}
var Producer = ProducerModule();
function emit(oracleName, params) {
Producer.mediaCache['samples/sample.js'] = oracleName+"("+ params.join(",") +");";
return vector = Producer.getNewVector("CAP_EXECUTE_SCRIPT");
}
print(emit("xss", ["p1","p2"]));