Combine sugar, salt, syrup, butter and water. Bring to a boil and reduce heat. Cook to hard ball stage (250°), using care not to overcook.
Remove from heat and stir in vanilla and peanut butter. Pour over corn flakes. Toss with fork to completely cover corn flakes with syrup. Work quickly.