#! /usr/bin/env python
#
# This tool is distributed under a BSD licence. A copy of this
# should have been included with this file.
#
# Copyright (c) 2007, Martyn Ruks
#
# This tool is designed for the purpose of performing security
# testing only and is not intended to be used for unlawful
# activities
#
# This tool can be used to execute a PCF Inquire Q Manager command.
# You must have the appropriate level of access to issue this.
# 
# If you wish to use a client certificate with this tool uncomment 
# the relevant lines in this file and add location of certificate 
# and private key. The script will let you enter the passphrase at 
# runtime if required.
#
# Author: Martyn Ruks
# Version: 0.0.5
#
# Further information: martyn ({dot}) ruks <(at)> mwrinfosecurity {(dot)} com
#

# Add various required functions

import string
import optparse
import time
import binascii
import socket