I hereby claim:
- I am sstelfox on github.
- I am sstelfox (https://keybase.io/sstelfox) on keybase.
- I have a public key ASD4-LBTYi_fB9RG9I5jszrnba-L8YekflfL3wMfUrPuygo
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'openssl' | |
| require 'securerandom' | |
| # Work around a broken core library | |
| OpenSSL::PKey::EC.send(:alias_method, :private?, :private_key?) | |
| CERT_DIR = 'generated_certs' | |
| DIGEST = OpenSSL::Digest::SHA384 |
| if RUBY_VERSION =~ /2\.3/ | |
| gem 'net-ldap' | |
| gem 'tss' | |
| end |
| #!/bin/bash | |
| set -o errexit | |
| . ./spec/docker_services.sh | |
| while true; do | |
| rspec --fail-fast | |
| done |
| #!/usr/bin/env ruby | |
| require 'fcntl' | |
| def set_process_name(name) | |
| $0 = name | |
| end | |
| class Child | |
| attr_accessor :pid, :should_run |
| #!/usr/bin/env ruby | |
| require 'pcaprub' | |
| arp_pkt_str ="\xFF\xFF\xFF\xFF\xFF\xFF\xD0P\x99y\xEC\x8A\x81\x00\x00\n\b\x06" \ | |
| "\x00\x01\b\x00\x06\x04\x00\x01\xD0P\x99y\xEC\x8A\xC0\xA8\nq\x00\x00\x00" \ | |
| "\x00\x00\x00\xC0\xA8\n\x05".force_encoding(Encoding::BINARY) | |
| interface_handle = Pcap.open_live('eth0', 65535, true, 1) | |
| sent_bytes = interface_handle.inject(arp_pkt_str) |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| out = File.open(ARGV[1], 'w') | |
| File.open(ARGV[0], 'r') do |f| | |
| until f.eof? | |
| int_bytes = [] | |
| int_bytes.push(f.getbyte) | |
| int_bytes.push(f.getbyte) | |
| float_bytes = int_bytes.pack('C').unpack('c').pack('f') |
| #!/bin/bash | |
| # Unrelated IDs, the same because 31337... | |
| ROUTE_TBL_ID="31337" | |
| ROUTE_TBL_NAME="evil_ap" | |
| FW_MARK_ID="0x31337/0xfffff" | |
| # Create the route table | |
| if ! grep -q ${ROUTE_TBL_NAME} /etc/iproute2/rt_tables; then | |
| echo "${RT_TBL_ID} ${ROUTE_TBL_NAME}" >> /etc/iproute2/rt_tables |
| #!/bin/bash | |
| set -o errexit | |
| set -o errtrace | |
| set -o pipefail | |
| set -o nounset | |
| BASE_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| TEMP_DIRECTORY="$(mktemp -d /tmp/script_working.XXXXX)" |
| if channel >= 1 && channel <= 13 { | |
| return channel * 5 + 2484 | |
| } else if channel == 14 { | |
| return 2484 | |
| } else if channel >= 34 && channel <= 165 { | |
| return channel * 5 + 5000 | |
| } | |
| return -1 |