Nmap Development mailing list archives
passing a domain to mssql scripts
From: Robin Wood <robin@digi.ninja>
Date: Thu, 31 Jan 2019 23:33:11 +0000
Hi How do I pass domain creds to an mssql script? I tried mssql.domain=xxx but that gave an error about openssl.encrypt: nmap -p 1433 --script ms-sql-config -oA xxx -empty --script-args mssql.username=qqq,mssql.password=xxx,mssql.domain=abc -d abc NSE: Starting ms-sql-config against abc (1.2.3.2:1433). NSE: [ms-sql-config 1.2.3.2:1433] brandedVersion: 2005, #lookup: 5 NSE: [ms-sql-config 1.2.3.2:1433] brandedVersion: nil, #lookup: 0 NSE: [ms-sql-config 1.2.3.2:1433] LM Password: 593837254b5534534052 NSE: ms-sql-config against xxxl (1.2.3.2:1433) threw an error! /usr/bin/../share/nmap/nselib/smbauth.lua:442: bad argument #4 to 'encrypt' (string expected, got table) stack traceback: [C]: in function 'openssl.encrypt' /usr/bin/../share/nmap/nselib/smbauth.lua:442: in function 'smbauth.lm_create_response' /usr/bin/../share/nmap/nselib/smbauth.lua:693: in function 'smbauth.get_password_response' /usr/bin/../share/nmap/nselib/mssql.lua:3164: in field 'NtlmResponse' /usr/bin/../share/nmap/nselib/mssql.lua:1947: in method 'ToString' /usr/bin/../share/nmap/nselib/mssql.lua:2747: in function </usr/bin/../share/nmap/nselib/mssql.lua:2699> (...tail calls...) /usr/bin/../share/nmap/scripts/ms-sql-config.nse:112: in upvalue 'process_instance' /usr/bin/../share/nmap/scripts/ms-sql-config.nse:149: in function </usr/bin/../share/nmap/scripts/ms-sql-config.nse:141> (...tail calls...) Robin _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- passing a domain to mssql scripts Robin Wood (Jan 31)
- Re: passing a domain to mssql scripts Paulino Calderon (Feb 04)
- Re: passing a domain to mssql scripts Robin Wood (Feb 04)
- Re: passing a domain to mssql scripts Robin Wood (Feb 07)
- Re: passing a domain to mssql scripts Robin Wood (Feb 04)
- Re: passing a domain to mssql scripts Paulino Calderon (Feb 04)