I hereby claim:
- I am obormot on github.
- I am obormot (https://keybase.io/obormot) on keybase.
- I have a public key ASAHCTx0UWxGQLvHRRuazn8FxPLSUTUC6viWXgZOAH47YQo
To claim this, I am signing this object:
| # pipe to jq for colored output | |
| pyjq(){ "${HOME}/pyjq" "$@" | jq . ;} |
| # get all aws regions | |
| AWS_REGIONS="$(aws ec2 describe-regions --query 'Regions[].RegionName' --output text)" | |
| # for each region | |
| for REGION in ${AWS_REGIONS}; \ | |
| do \ | |
| echo ${REGION}; | |
| aws ec2 describe-instance-types --filters Name=free-tier-eligible,Values=true --region ${REGION}| grep "InstanceType\""; | |
| done |
| #!/usr/bin/env bash | |
| # Warns when /security-review is run in a long-running session (model anchoring bias risk). | |
| # the solution counts the number of conversation turns in the LLM session transcript and | |
| # blocks the `security-review` invocation if the count exceeds 8, using that as a heuristic | |
| # signal that this is a long-running session rather than a fresh review | |
| input=$(cat) | |
| echo "$input" | jq -r '.prompt // ""' | grep -qi "security-review" || exit 0 | |
| transcript=$(echo "$input" | jq -r '.transcript_path // ""') | |
| turns=$(jq -s '[.[] | select(.type == "user" and .userType == "external")] | length' "$transcript" 2>/dev/null || echo 0) |
| # py2 | |
| # for each character of plaintext we could observe many variants of ciphertext value (XORed) | |
| # but we'll never observe the actual value (no leaks!) | |
| # so we could collect enough data and exclude what we have observed | |
| # we end up with something we've never observed - the actual bytes of the key | |
| import base64, socket, json | |
| conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| # py2 | |
| import socket, json | |
| conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| conn.connect(('socket.cryptohack.org', 13372)) | |
| conn.recv(100) # "Gotta go fast!" | |
| # OTP key len is 32 bytes (sha256 digest) | |
| # by using all zeroes for input we don't need to de-XOR the key | |
| input_data = '00' * 32 |
| # py2 | |
| import base64, codecs, json, socket | |
| conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| conn.connect(('socket.cryptohack.org', 13377)) | |
| for i in range(101): | |
| data = json.loads(conn.recv(1024)) | |
| print i, data, |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| #------------------------------------------------------------------------------ | |
| # UDP Load Balancer featuring simple round robin with session affinity. | |
| #------------------------------------------------------------------------------ | |
| import sys | |
| import signal | |
| import logging | |
| from socket import * |