lefayjey / linWinPwn

linWinPwn is a bash script that streamlines the use of a number of Active Directory tools
MIT License
1.83k stars 266 forks source link

several errors after installing kali 2023 #18

Closed frenyman closed 1 year ago

frenyman commented 1 year ago

When installing on clean kali 2023.3, there are errors after the automated installation through (install.sh)

crackmapexec --version 6.1.0 - John Wick

Output install

[+] impacket's findDelegation is installed
[+] impacket's GetUserSPNs is installed
[+] impacket's secretsdump is installed
[+] impacket's GetNPUsers is installed
[+] impacket's getTGT is installed
[+] impacket's goldenPac is installed
[+] impacket's rpcdump is installed
[+] impacket's reg is installed
[+] bloodhound is installed
[+] ldapdomaindump is installed
[+] crackmapexec is installed
[+] john is installed
[+] smbmap is installed
[+] nmap is installed
[+] adidnsdump is installed
[+] certi_py is installed
[+] certipy is installed
[+] ldeep is installed
[+] pre2k is installed
[+] certsync is installed
[+] windapsearch is installed
[+] windapsearch is executable
[+] enum4linux-ng is installed
[+] enum4linux-ng is executable
[+] kerbrute is installed
[+] kerbrute is executable
[+] targetedKerberoast is installed
[+] targetedKerberoast is executable
[+] CVE-2022-33679 is installed
[+] CVE-2022-33679 is executable
[+] DonPAPI is installed
[+] hekatomb is installed
[+] FindUncommonShares is installed
[+] manspider is installed
[+] coercer is installed

Errors

mkdir: invalid option -- 'f'

//

./linWinPwn.sh: line 507: $command_log: ambiguous redirect
tee: invalid option -- 'f'
Try 'tee --help' for more information.
[-] Connecting to host...
[-] Binding to host
[+] Bind OK
[-] Querying zone for records
[+] Found 0 records
./linWinPwn.sh: line 510: ${servers_ip_list}: ambiguous redirect
./linWinPwn.sh: line 511: ${dc_ip_list}: ambiguous redirect
./linWinPwn.sh: line 512: ${dc_hostname_list}: ambiguous redirect
./linWinPwn.sh: line 519: [: too many arguments
grep: /root/.cme/workspaces/default/smb.db`): No such file or directory
./linWinPwn.sh: line 520: ${servers_ip_list}: ambiguous redirect
./linWinPwn.sh: line 521: [: too many arguments
grep: /root/.cme/workspaces/default/smb.db`): No such file or directory
./linWinPwn.sh: line 522: ${dc_ip_list}: ambiguous redirect
./linWinPwn.sh: line 523: [: too many arguments
grep: /root/.cme/workspaces/default/smb.db`): No such file or directory
./linWinPwn.sh: line 524: ${dc_hostname_list}: ambiguous redirect

ls: cannot access '/opt/scripts/linWinPwn/linWinPwn_[-]': No such file or directory

lefayjey commented 1 year ago

As crackmapexec has been replaced with NetExec, I will close this issue. Also try to run dos2unix on the bash script before running it.