Example #1
0
if __name__ == "__main__":

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

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

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

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

    handler = process_handler_args(parser, all_args)

    try:
        response = utils.process_delete_object_args(
            parser, handler, 'package', all_args
        )
    except Exception as e:
        print e
        sys.exit(99)
if __name__ == "__main__":

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

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

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

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

    handler = process_handler_args(parser, all_args)

    try:
        response = utils.process_delete_object_args(
            parser, handler, 'whitelisted_url', all_args
        )
    except Exception as e:
        print e
        sys.exit(99)
Example #3
0
if __name__ == "__main__":

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

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

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

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

    handler = process_handler_args(parser, all_args)

    try:
        response = utils.process_delete_object_args(
            parser, handler, 'group', all_args
        )
    except Exception as e:
        print e
        sys.exit(99)
Example #4
0
if __name__ == "__main__":

    utils.version_check(__version__)
    parser = utils.setup_delete_object_argparser('saved_question', __doc__)
    args = parser.parse_args()
    all_args = args.__dict__

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

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

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

    handler = process_handler_args(parser, all_args)

    try:
        response = utils.process_delete_object_args(
            parser, handler, 'saved_question', all_args
        )
    except Exception as e:
        print e
        sys.exit(99)