Use “cntlm” as proxy tunnel to overcome NTLM authorization from linux

By neokrates, written on June 14, 2009

article

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 1,014 views
Rate it
Ad
Poll
  • Which test frameworks do you use?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

The problem is: you are using Linux but also need the Windows Based authorization to access the Internet or other kind of resource.

Make a Tunnel

One way to solve it is to use the NTLM tunnel for Linux. It handles the NTLM authorization and lets you through. There are some versions available. In my experience, cntlm is much faster then more known sibling ntlmaps.

Here is one bash Script to start the NTLM Tunnel

Preconditions:

⭐ you have installed CNTLM. You can get it here: http://cntlm.sourceforge.net/ or use the package manager like “synaptic”. If installed, “CNTLM” command from your shell should work.

⚠ Don’t forget to substitute USER, DOMAIN, PASSWORD, PORT, NTLM_HOST and NTLM_PORT with your values. You should find out what is your user authorization in the windows domain.

#!/bin/bash

USER="UwarovD"
DOMAIN="do100a"
PASSWORD="my_secret"
PORT="3129"
NTLM_HOST="10.2.50.75"
NTLM_PORT="9090"

echo
echo "Einfaches script zum starten der NTLM tunnel"
echo "USER=        $USER"
echo "DOMAIN=      $DOMAIN"
echo "PASSWORD=    $PASSWORD"
echo "PORT=        $PORT"
echo "NTLM_HOST=   $NTLM_HOST"
echo "NTLM_PORT=   $NTLM_PORT"
echo "Running: cntlm -g -v -u $USER@$DOMAIN -p $PASSWORD -l $PORT $NTLM_HOST:$NTLM_PORT"
echo

cntlm -g -v -u $USER@$DOMAIN -p $PASSWORD -l $PORT $NTLM_HOST:$NTLM_PORT
Be Sociable, Share!
 


TAGS

SOCIAL
Be Sociable, Share!


2 Responses to “Use “cntlm” as proxy tunnel to overcome NTLM authorization from linux”

  1. My apoogizes for the short review, but wanted to let you know I appreciate your blog and the information you provide. Their is some excellentinfo that have been written here. Where can I go to subscribe to the blog?

Leave a Reply