This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qs( obj ) { | |
return '?'+Object.keys(obj).reduce(function(a,k){a.push(k+'='+encodeURIComponent(obj[k]));return a},[]).join('&') | |
} | |
function fetch_directions(o,d) { | |
Logger.log("fetching: " + JSON.stringify([o,d])); | |
var userProps = UserProperties.getProperties(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/frohoff/travistest | |
# https://github.com/travis-ci/docs-travis-ci-com/issues/593 | |
# https://docs.travis-ci.com/user/reference/osx/#OS-X-Version | |
osx_image: xcode9 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.3 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.2 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.1 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8 # oraclejdk8 1.8.0_92-b14 | |
osx_image: xcode7.3 # oraclejdk8 1.8.0_74-b02 | |
osx_image: xcode7.2 # oraclejdk8 1.8.0_66-b17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-compose 2>&1 | grep -E ' [a-z]+ ' | awk '{print $1}' | xargs -n1 -I{} docker-compose {} -h 2>&1 | grep -E '^\s*(Usage:|-+[a-z])' | |
Usage: build [options] [--build-arg key=val...] [SERVICE...] | |
--force-rm Always remove intermediate containers. | |
--no-cache Do not use cache when building the image. | |
--pull Always attempt to pull a newer version of the image. | |
--build-arg key=val Set build-time variables for one service. | |
Usage: bundle [options] | |
--push-images Automatically push images for any services | |
-o, --output PATH Path to write the bundle file to. | |
Usage: config [options] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# some ideas from https://mp.weixin.qq.com/s/iBLrrXHvs7agPywVW7TZrg | |
import sys | |
import urllib | |
import urllib2 | |
if len(sys.argv) != 3: | |
print 'Usage: %s [url] [command]' % sys.argv[0] | |
exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# $ echo bcefgG il | python 14seg.py | |
# | |
# | | | | |
# -- -- | |
# | | | | |
import string | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.logging.log4j.Logger; | |
import org.apache.logging.log4j.core.util.Constants; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.net.InetAddress; | |
import java.net.URL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 443 | |
filter_chains: | |
- filters: |
Make requests to example.com
but spoofing the TLS SNI as google.com
to bypass network security controls that only enforce based on SNI:
$ curl -sk https://google.com -H "Host: example.com" --resolve google.com:443:$(dig +short example.com)
$ (printf "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n"; sleep 1) | openssl s_client -connect example.com:443 -servername google.com -state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0f0bb3c0b93198f0e5ced2aa769daaf818cf754c506a8375f926fa8938288b9 |
OlderNewer