Skip to content

Instantly share code, notes, and snippets.

@@ -372,13 +372,15 @@ def main(argv):
try:
# Wait for ZAP to start
- zap = ZAPv2(proxies={'http': 'http://' + zap_ip + ':' + str(port), 'https': 'http://' + zap_ip + ':' + str(port)})
+ zap = ZAPv2(proxies={'http': 'http://' + 'localhost' + ':' + str(port), 'https': 'http://' + 'localhost' + ':' + str(port)})
+ logging.info('proxies %s' % {'http': 'http://' + zap_ip + ':' + str(port), 'https': 'http://' + zap_ip + ':' + str(port)})
for x in range(0, timeout):
try:
logging.debug ('ZAP Version ' + zap.core.version)
@@ -372,13 +372,15 @@ def main(argv):
try:
# Wait for ZAP to start
- zap = ZAPv2(proxies={'http': 'http://' + zap_ip + ':' + str(port), 'https': 'http://' + zap_ip + ':' + str(port)})
+ zap = ZAPv2(proxies={'http': 'http://' + 'localhost' + ':' + str(port), 'https': 'http://' + 'localhost' + ':' + str(port)})
for x in range(0, timeout):
try:
logging.debug ('ZAP Version ' + zap.core.version)
logging.debug ('Took ' + str(x) + ' seconds')
@g-k
g-k / output.log
Created March 13, 2017 22:06
nested node exec call debugging
» node test.js
outer call $PATH:
/Users/gguthe/.cargo/bin:/Developer/NVIDIA/CUDA-5.0/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:/usr/local/lib:/usr/local/lib/python2.7/site-packages:/Users/gguthe/bin:/Users/gguthe/.cabal/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/gguthe/.cargo/bin:/Developer/NVIDIA/CUDA-5.0/bin:/usr/local/share/npm/bin:/usr/local/lib:/usr/local/lib/python2.7/site-packages:/Users/gguthe/bin:/Users/gguthe/.cabal/bin:/usr/local/opt/go/libexec/bin:/Users/gguthe/bin/bin:/usr/local/opt/go/libexec/bin:/Users/gguthe/bin/bin
inner call $PATH:
/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.
@g-k
g-k / tb-stage-read-torch.svg
Last active March 30, 2017 18:11
tb stage perf cpu cum time torch graphs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@g-k
g-k / test.log
Created April 10, 2017 20:23
escape json rough perf tests
~/hoek - [add-escape-json●] » node --version
v7.1.0
~/hoek - [add-escape-json●] » uname -a
Darwin gguthe-23818 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
~/hoek - [add-escape-json●] » cat test/json_escape_many_replace_calls.js
function escapeJson(input) {
if (!input) {
return '';
}
@g-k
g-k / homoglyph-notes.md
Created April 18, 2018 19:53
Alphanumeric ASCII homoglyphs / confusing character sets
@g-k
g-k / output.md
Created May 15, 2018 15:58
zxcvbn_strengths_to_entropy
> python ~/zxcvbn_strengths_to_entropy.py
# editing this a bit
0        1000 11.964340867792417
1     1000000 21.931567126628412
2   100000000 28.57542474467195
3 10000000000 35.219280948729356
@g-k
g-k / 0001-wip.patch
Created June 6, 2018 13:07
COSE signatures
From 5bbd25847198e43fd8ab66a802f749c1df890b56 Mon Sep 17 00:00:00 2001
From: Greg Guthe <[email protected]>
Date: Wed, 6 Jun 2018 09:05:08 -0400
Subject: [PATCH] wip
---
signer/xpi/xpi.go | 1 +
vendor/go.mozilla.org/cose/common_headers.go | 1 +
vendor/go.mozilla.org/cose/sign_verify.go | 1 +
3 files changed, 3 insertions(+)