Author Topic: Python error on NTLMAPS  (Read 4816 times)

zabla

  • Newbie
  • *
  • Posts: 2
    • View Profile
on: July 14, 2014, 03:19:23 PM
Hello folks,

           In my job, I usually have to connect through my proxy using NTLMAPS, due to intranet restrictions. Without it, I'm not able to update or install packages using apt. When I try to run NTLAMPS (even on root) it prompts to me this error below:

root@black:/home/sergio/Downloads/ntlmaps-0.9.9.0.1# python main.py &
[1] 4576
root@black:/home/sergio/Downloads/ntlmaps-0.9.9.0.1# NTLM authorization Proxy Server v0.9.9.0.1
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
Traceback (most recent call last):
  File "main.py", line 44, in <module>
    serv = server.AuthProxyServer(config)
  File "/home/sergio/Downloads/ntlmaps-0.9.9.0.1/lib/server.py", line 49, in __init__
    self.config['NTLM_AUTH']['LM_HASHED_PW'] = ntlm_procs.create_LM_hashed_password(self.config['NTLM_AUTH']['PASSWORD'])
  File "/home/sergio/Downloads/ntlmaps-0.9.9.0.1/lib/ntlm_procs.py", line 59, in create_LM_hashed_password
    magic_str = utils.lst2str(magic_lst)
AttributeError: 'module' object has no attribute 'lst2str'



I have tried to update python, but got no deal too... Does anyone have a answer for it? Daes anyone can help me up with this issue? Thank you guys a lot for your assistance.



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #1 on: July 14, 2014, 05:43:41 PM


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


zabla

  • Newbie
  • *
  • Posts: 2
    • View Profile
Reply #2 on: July 16, 2014, 03:39:32 PM
Well, I have tried what you suggested, but still got no success. I could not find apt.conf file in /etc/apt, to insert "Acquire::http::Proxy "http://127.0.0.1:5865";", perhaps this is the main reason for this error below when apt-get update is running.

W: Failed to fetch http://deb.pinguin.lu/amd64/./Release.gpg  Could not connect to 127.0.0.1:5865 (127.0.0.1). - connect (111: Connection refused)

Can you halp me up with this?




ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #3 on: July 17, 2014, 05:34:48 PM
Hi again,

I don't know what you need to have inside that config file, but if you know that you can make one with touch command inside apt directory.

cd /etc/apt
touch apt.conf

Then edit that file with nano apt.conf

I could not test this because i don't use NTLMAPS.

Good luck and keep me posted.


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*