<commit_before><commit_msg>added pullcert.sh<commit_after>#!/bin/bash
# pillcert.sh - A script to retreive the SSL Cert from the specified host
# using OpenSSL.
#
# usage:
#
# cmd> 'pullcert.sh <HOST NAME> <PORT#>'
#
# Where:
#	<HOST NAME> Hostname of target host. e.g. 'www.example.com'
#	<PORT#>     Port # of SSL interface to target e.g. '8000'
#		    Defaults to 443
#
# (C) 2015 KB4OID Labs, a division of Kodetroll Heavy Industries
# Project: user-scripts Tool Suite
# Author: Kodetroll (SLM)
# Date: March 2015
# Added to user-scripts tool suite March 2015
# Ver: 1.0
#
HOST=example.com
PORT=443
if [ ! -z "$1" ]; then
    HOST=${1}
fi
if [ ! -z "$2" ]; then
    PORT=${2}
fi
openssl s_client -showcerts -connect ${HOST}:${PORT}

{'fraction_non_alphanumeric': 0.1480978260869565, 'fraction_numerical': 0.03940217391304348, 'mean_word_length': 3.6645569620253164, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6218399', 'n_tokens_mistral': 304, 'n_tokens_neox': 267, 'n_words': 91}