Example #1
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('userrole', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #2
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('whitelisted_url', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #3
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('question', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #4
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('OBJECTNAME', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #5
0
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h


if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('sensor', __doc__)
    output_group = parser.add_argument_group('Output Options')
    output_group.add_argument(
        '--category',
        required=False,
        default=[],
        action='append',
        dest='categories',
        help='Only show sensors in given category',
    )
    output_group.add_argument(
        '--platform',
        required=False,
        default=[],
        action='append',
        dest='platforms',
Example #6
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('client', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #7
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('package', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()
Example #8
0
    handler_grp_names = ['Handler Authentication', 'Handler Options']
    handler_opts = utils.get_grp_opts(parser, handler_grp_names)
    handler_args = {k: all_args.pop(k) for k in handler_opts}

    try:
        h = pytan.Handler(**handler_args)
        print str(h)
    except Exception as e:
        print e
        sys.exit(99)
    return h

if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_get_object_argparser('group', __doc__)
    parser = utils.add_get_object_report_argparser(parser)
    args = parser.parse_args()
    all_args = args.__dict__

    if not args.username:
        username = raw_input('Tanium Username: '******'username'] = username.strip()

    if not args.password:
        password = getpass.getpass('Tanium Password: '******'password'] = password.strip()

    if not args.host:
        host = raw_input('Tanium Host: ')
        all_args['host'] = host.strip()