A wall hack is a type of cheat in Call of Duty 6 (Modern Warfare 2). Depending on the version, it either lets you see through walls to spot enemies or lets you walk straight through them.
Using wall hacks is cheating and is against the game's rules, so it's best to stick to fair play.