首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我很难在Kali linux上安装impacket。某个人能把我引向正确的方向吗?

我很难在Kali linux上安装impacket。某个人能把我引向正确的方向吗?
EN

Unix & Linux用户
提问于 2020-04-29 17:36:08
回答 1查看 6.9K关注 0票数 1

我是kali Linux的新手,我在youtube上看了一段视频。首先,我使用apt purge doimpacket来删除现有的git clone https://github.com/SecureAuthCorp/impacket.git,然后执行D1,但是当我执行pip install . (如https://github.com/SecureAuthCorp/impacket的安装部分中提到的)时,我会收到一条错误消息,表示找不到pip命令。

我尝试了sudo apt-get install python-setuptools,然后我发现了一个错误,说Package python-setuptools is not available

EN

回答 1

Unix & Linux用户

发布于 2020-04-29 17:50:47

我建议使用virtualenv来确保您不会进入依赖循环,这样就不可能维护任何其他包。然后尝试使用python3和pip3,而不是python和pip,以确保您使用python3工具。

代码语言:javascript
运行
复制
$ git clone https://github.com/SecureAuthCorp/impacket.git
$ sudo apt install virtualenv
$ virtualenv impacket-venv
$ source impacket-venv/bin/activate
(impacket-venv) $ cd ~/impacket
(impacket-venv) impacket/$ pip3 install -r requirements.txt
(impacket-venv) impacket/$ pip3 install .
(impacket-venv) impacket/$ cd ~/impacket-venv/bin
(impacket-venv) impacket-venv/bin/$ python3 ./GetADUsers.py
Impacket v0.9.22.dev1+20200428.191254.96c7a512 - Copyright 2020 SecureAuth Corporation

usage: GetADUsers.py [-h] [-user username] [-all] [-ts] [-debug]
                     [-hashes LMHASH:NTHASH] [-no-pass] [-k] [-aesKey hex key]
                     [-dc-ip ip address]
                     target

Queries target domain for users data

positional arguments:
  target                domain/username[:password]

optional arguments:
  -h, --help            show this help message and exit
  -user username        Requests data for specific user
  -all                  Return all users, including those with no email
                        addresses and disabled accounts. When used with -user
                        it will return user's info even if the account is
                        disabled
  -ts                   Adds timestamp to every logging output
  -debug                Turn DEBUG output ON

authentication:
  -hashes LMHASH:NTHASH
                        NTLM hashes, format is LMHASH:NTHASH
  -no-pass              don't ask for password (useful for -k)
  -k                    Use Kerberos authentication. Grabs credentials from
                        ccache file (KRB5CCNAME) based on target parameters.
                        If valid credentials cannot be found, it will use the
                        ones specified in the command line
  -aesKey hex key       AES key to use for Kerberos Authentication (128 or 256
                        bits)
  -dc-ip ip address     IP Address of the domain controller. If ommited it use
                        the domain part (FQDN) specified in the target
                        parameter

看看virtualenv,这是一个很棒的工具。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/583374

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档