What's the easiest way to run as attacked entity?

Hello! I was wondering what the easiest way was to get something like execute on attacker but inverse. So the context changes to the entity that was attacked by whatever was in the context before. Thanks!
Continue to help post