GameHacking.gg CTF (DEFCON 32)
Level 5 [400 pts]
Challenge Description:
We see flag that is covered by red box, and if player hit this red box the laser shoots and kill player instantly.

Looking for some kind of box or laser logic in dnSpy. I found LazerTurret class with FireLazer method that looks like this:
private void FireLazer()
{
this.playerHealth = GameObject.FindWithTag("Player").GetComponent<Health>();
global::UnityEngine.Object.Instantiate<ParticleSystem>(this.lazer, this.playerHealth.transform.position, Quaternion.identity);
this.lazerTurretMuzzle.Play();
if (this.doesKill)
{
this.playerHealth.Kill();
}
}
So I delete everything from inside FireLazer method and it looks now like this:
private void FireLazer()
{
}
Save module, restart game. Now I can jump into red box and nothing happens. I can pick up flag and it says GHCTF{OK_now_you_have_godmode}.