Nmap Development mailing list archives
Re: psexec failing against XP and seven
From: Brahim Sakka <brahim.sakka () gmail com>
Date: Tue, 24 May 2011 09:52:37 +0100
I found what the issue is. In windows XP I had to go to "Tools > Folder options > View" and disactivate "Use simple file sharing" (at the end of the list. That's it. The comand then works like a charm. There is a -c switch in the psexec that "copies the program (command) to the target machine before execution". Is there an equivalent for that in Nmap's psexec ? 2011/5/23 DePriest, Jason R. <jrdepriest () gmail com>
Try enclosing the password in double-quotes or single-quotes. You could also try the --script-args 'smbuser=user,smbpass="password",config=network' method instead of the --script-args=smbuser=user,smbpass='password',config=network method. -Jason On Mon, May 23, 2011 at 10:10 AM, Brahim Sakka <> wrote:Hello list, I'm trying to use the psexec script against Windows XP : *# nmap -n -p139,445 --script=smb-psexec --script-args=smbuser=user,smbpass=password,config=network target_IP**-d*- user/password are credentials of an admin user. - Attacker machine is a fully updated ubuntu 10.10. - I'm using Nmap v5.51. Here is a snippet from the output: *NSE: SMB: Added account 'user' to account list NSE: SMB: Extended login as \user failed (NT_STATUS_LOGON_FAILURE) PORT STATE SERVICE REASON 139/tcp open netbios-ssn syn-ack 445/tcp open microsoft-ds syn-ack MAC Address: 08:00:08:8C:FB:1E Host script results: | smb-psexec: |_ ERROR: Couldn't find a writable share! (May not have an administrator account) *I got the exact same error against Windows 7. Anyone knows how to solve this or am I missing something obvious here? _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- psexec failing against XP and seven Brahim Sakka (May 23)
- Re: psexec failing against XP and seven DePriest, Jason R. (May 23)
- Re: psexec failing against XP and seven Brahim Sakka (May 24)
- Re: psexec failing against XP and seven Ron (May 24)
- Re: psexec failing against XP and seven Brahim Sakka (May 24)
- Re: psexec failing against XP and seven Ron (May 24)
- Re: psexec failing against XP and seven Brahim Sakka (May 25)
- Re: psexec failing against XP and seven rilian4 rilian4 (May 25)
- Re: psexec failing against XP and seven Brahim Sakka (May 25)
- Re: psexec failing against XP and seven Brahim Sakka (May 30)
- Re: psexec failing against XP and seven Ron (Jun 16)
- Re: psexec failing against XP and seven Brahim Sakka (May 24)
- Re: psexec failing against XP and seven DePriest, Jason R. (May 23)