|
|
@ -1,9 +1,5 @@
|
|
|
|
/**
|
|
|
|
/* eslint-env browser */
|
|
|
|
* Bookmarklet driver
|
|
|
|
/* globals wappalyzer */
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** global: wappalyzer */
|
|
|
|
|
|
|
|
/** global: XMLHttpRequest */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;(function() {
|
|
|
|
;(function() {
|
|
|
|
wappalyzer.driver.document = document
|
|
|
|
wappalyzer.driver.document = document
|
|
|
@ -16,6 +12,7 @@
|
|
|
|
* Log messages to console
|
|
|
|
* Log messages to console
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
wappalyzer.driver.log = (message, source, type) => {
|
|
|
|
wappalyzer.driver.log = (message, source, type) => {
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log(`[wappalyzer ${type}]`, `[${source}]`, message)
|
|
|
|
console.log(`[wappalyzer ${type}]`, `[${source}]`, message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -54,7 +51,7 @@
|
|
|
|
if (xhr.readyState === 4 && xhr.status) {
|
|
|
|
if (xhr.readyState === 4 && xhr.status) {
|
|
|
|
const headers = xhr.getAllResponseHeaders().split('\n')
|
|
|
|
const headers = xhr.getAllResponseHeaders().split('\n')
|
|
|
|
|
|
|
|
|
|
|
|
if (headers.length > 0 && headers[0] != '') {
|
|
|
|
if (headers.length > 0 && headers[0] !== '') {
|
|
|
|
wappalyzer.log(
|
|
|
|
wappalyzer.log(
|
|
|
|
`responseHeaders: ${xhr.getAllResponseHeaders()}`,
|
|
|
|
`responseHeaders: ${xhr.getAllResponseHeaders()}`,
|
|
|
|
'driver'
|
|
|
|
'driver'
|
|
|
@ -89,7 +86,7 @@
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Display apps
|
|
|
|
* Display apps
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
;(wappalyzer.driver.displayApps = (detected) => {
|
|
|
|
wappalyzer.driver.displayApps = (detected) => {
|
|
|
|
wappalyzer.log('func: displayApps', 'driver')
|
|
|
|
wappalyzer.log('func: displayApps', 'driver')
|
|
|
|
|
|
|
|
|
|
|
|
let first = true
|
|
|
|
let first = true
|
|
|
@ -150,13 +147,14 @@
|
|
|
|
html += '</div>'
|
|
|
|
html += '</div>'
|
|
|
|
|
|
|
|
|
|
|
|
container.innerHTML = html
|
|
|
|
container.innerHTML = html
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Open a tab
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
* Open a tab
|
|
|
|
function openTab(args) {
|
|
|
|
*/
|
|
|
|
open(args.url)
|
|
|
|
// function openTab(args) {
|
|
|
|
}
|
|
|
|
// open(args.url)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
function slugify(string) {
|
|
|
|
function slugify(string) {
|
|
|
|
return string
|
|
|
|
return string
|
|
|
|