In a large saucepan, combine the sugar and corn syrup over medium heat, constantly stirring until it comes to a light boil then remove from heat. Add in peanut butter and vanilla.
Fold in corn flakes until each one is completely coated.
Pour onto a piece of wax paper and shape however you'd like then cut into pieces.