Skip to content

Instantly share code, notes, and snippets.

var TopLevelObject = {}
TopLevelObject.DOMNodePathStep = function(value, optimized)
{
this.value = value;
this.optimized = optimized || false;
}
TopLevelObject.DOMNodePathStep.prototype = {
/**
* @override
* @return {string}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>f83b243e-016a-1000-7ae4-d55879bd67a8</groupId>
<name>Beats (encrypted)</name>
<snippet>
<connections>
<id>5d08bc84-630a-3e17-0000-000000000000</id>
<parentGroupId>75fd9e98-7cb4-3d53-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>d562c994-016b-1000-4d13-1985463f364a</groupId>
<name>Alerting</name>
<snippet>
<connections>
<id>2afde8dc-2bf8-33e4-0000-000000000000</id>
<parentGroupId>308545b5-bdca-3d2b-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>0165328f-016a-1000-faa4-53a3512c51c5</groupId>
<name>NetFlow To File</name>
<snippet>
<connections>
<id>2b15b939-ffe5-342a-0000-000000000000</id>
<parentGroupId>ca04b9d6-b10c-33c7-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dvas0004
dvas0004 / eidVerifySignature.py
Created February 25, 2019 10:10
python script to verify ECDSA signatures generated from the newer Estonian eID cards. Signature and Certificate must be obtained from eID itself, eg by using: https://hwcrypto.github.io/demo/
# pip install ecdsa
# pip install cryptography
# https://github.com/warner/python-ecdsa
# https://cryptography.io/en/latest/
from ecdsa import VerifyingKey, BadSignatureError
from cryptography import x509
import logging
import sys, os
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('openzwave')
import openzwave
from openzwave.node import ZWaveNode
from openzwave.value import ZWaveValue
from openzwave.scene import ZWaveScene
@dvas0004
dvas0004 / employeeHarvesting.js
Created November 22, 2018 09:21
Employee Harvesting from Linked In (companion code to blog post)
const linkedinEmail = '*******';
const linkedinPassword = '*******';
const companyName = 'CHANGE ME';
const extraFilter = 'change me (or set to null)';
const maxPages = 2;
////////
@dvas0004
dvas0004 / decompiler.py
Created October 26, 2018 14:57
grpc-web reverse engineer
import jsbeautifier
import requests
import pprint
enumerateMessagesSearchString = 'exportSymbol("proto.'
r = requests.get('http://localhost:8081/dist/main.js')
jsInput = r.text
pretty_js = jsbeautifier.beautify(jsInput).split('\n')
@dvas0004
dvas0004 / ExtensionAllInOneNotes.java
Created October 1, 2018 14:31
zap-extensions, all in one notes
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0