If it's too dark to see the silhouetted shape of your pistol, it's also too dark to make sure that you're not shooting at your wife or daughter. That's when you need a flashlight, and some understanding of a safe flashlight technique.
If you can identify your, um, target, then you can use the silhouetted shape of your pistol to make accurate length-of-hallway hits on an enemy. All it takes is practice, shooting in low-light conditions. You may be surprised at how accurate so-called "slide shooting" can be—with practice.