-
Notifications
You must be signed in to change notification settings - Fork 16
/
options.js
85 lines (83 loc) · 3.77 KB
/
options.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
HTCRAWL
https://github.com/fcavallarin/htcrawl
Author: [email protected]
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
*/
exports.options = {
verbose: false,
checkAjax: true,
fillValues: true,
triggerEvents: true,
checkWebsockets: true,
searchUrls: true,
jsonOutput:true,
maxExecTime: 300000, // 300 seconds
ajaxTimeout:3000,
printAjaxPostData: true,
loadImages: false,
getCookies:true,
mapEvents: true,
checkScriptInsertion: true,
checkFetch: true,
httpAuth: false,
triggerAllMappedEvents: true, //unused
outputMappedEvents: false,
overrideTimeoutFunctions: false,
referer: false,
userAgent: null,
allEvents: ['abort', 'autocomplete', 'autocompleteerror', 'beforecopy', 'beforecut', 'beforepaste', 'blur', 'cancel', 'canplay', 'canplaythrough', 'change', /*'click',*/ 'close', 'contextmenu', 'copy', 'cuechange', 'cut', 'dblclick', 'drag', 'dragend', 'dragenter', 'dragleave', 'dragover', 'dragstart', 'drop', 'durationchange', 'emptied', 'ended', 'error', 'focus', 'input', 'invalid', 'keydown', 'keypress', 'keyup', 'load', 'loadeddata', 'loadedmetadata', 'loadstart', 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'mousewheel', 'paste', 'pause', 'play', 'playing', 'progress', 'ratechange', 'reset', 'resize', 'scroll', 'search', 'seeked', 'seeking', 'select', 'selectstart', 'show', 'stalled', 'submit', 'suspend', 'timeupdate', 'toggle', 'volumechange', 'waiting', 'webkitfullscreenchange', 'webkitfullscreenerror', 'wheel'],
// experimenting with click only ..
mouseEvents: ['click'], //['click','dblclick','mouseup','mousedown','mousemove','mouseover', 'mouseout'],
keyboardEvents: [], //['keydown', 'keypress', 'keydown', 'keypress', 'keyup'],
setCookies: [],
excludedUrls: [],
maximumRecursion: 15,
maximumAjaxChain: 30,
randomSeed: "IsHOulDb34RaNd0MsTR1ngbUt1mN0t",
// map input names to string generators. see generateRandomValues to see all available generators
inputNameMatchValue:[ // regexps NEED to be string to get passed to phantom page
{name: "mail", value: "email"},
{name: "((number)|(phone))|(^tel)", value: "number"},
{name: "(date)|(birth)", value: "humandate"},
{name: "((month)|(day))|(^mon$)", value: "month"},
{name: "year", value: "year"},
{name: "url", value: "url"},
{name: "firstname", value: "firstname"},
{name: "(surname)|(lastname)", value: "surname"},
],
/* always trigger these events since event delegation mays "confuse" the triggering of mapped events */
// NOTE: trigger mouseUP FIRST to prevent up and down to be considered a click
eventsMap: {
'button':['click','dblclick','keydown','keyup','mouseup','mousedown'],
'select':['change','click','dblclick','keydown','keyup','mouseup','mousedown'],
'input':['change','click','dblclick','blur','focus','keydown','keyup','mouseup','mousedown'],
'a':['click','dblclick','keydown','keyup','mouseup','mousedown'],
'textarea':['change','click','dblclick','blur','focus','keydown','keyup','mouseup','mousedown'],
'span':['click','dblclick','mouseup','mousedown'],
'td':['click','dblclick','mouseup','mousedown'],
'tr':['click','dblclick','mouseup','mousedown'],
'div':['click','dblclick','mouseup','mousedown']
},
proxy: null,
loadWithPost: false,
postData: null,
headlessChrome: true,
extraHeaders: false,
openChromeDevtools: false,
exceptionOnRedirect: false,
navigationTimeout: 20000,
bypassCSP: true,
simulateRealEvents: true,
crawlmode: "linear", // linear || random
browserLocalstorage: null,
skipDuplicateContent: false,
windowSize: [1600, 1000],
showUI: false,
customUI: null,
overridePostMessage: false,
includeAllOrigins: false
};