我是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
发布于 2020-04-29 17:50:47
我建议使用virtualenv来确保您不会进入依赖循环,这样就不可能维护任何其他包。然后尝试使用python3和pip3,而不是python和pip,以确保您使用python3工具。
$ 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,这是一个很棒的工具。
https://unix.stackexchange.com/questions/583374
复制相似问题