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
#!/bin/bash | |
############################ | |
## Methods | |
############################ | |
prefix_to_bit_netmask() { | |
prefix=$1; | |
shift=$(( 32 - prefix )); | |
bitmask="" |
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
OUTPUT_PUBLIC_KEY_PATH="pub.txt" | |
HEX_MODULUS=$(openssl rsa -pubin -in $OUTPUT_PUBLIC_KEY_PATH -modulus | grep 'Modulus=' | cut -d'=' -f 2) | |
ruby<<EOF | |
p "$HEX_MODULUS".to_i(16).to_s(10) | |
EOF | |
openssl rsa -pubin -in $OUTPUT_PUBLIC_KEY_PATH -text | grep 'Exponent' |
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
# Defines our Vagrant environment | |
# | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define :namemachine do |config| | |
config.vm.box = "win7" | |
config.vm.hostname = "one-win7-1" | |
config.vm.network :private_network, ip: "10.111.22.155" |
NewerOlder