In a wicked and shameful manner; "two policemen were foully murdered".
In an unfair and insulting manner; "this internationally known writer was foully condemned by the Muslim fundamentalists".