How may bytes should you send for buffer overflow?


If someone is trying to hack a laptop with buffer overflow how would he know the specific amount of bytes you are supposed to send to that laptop in order to cause buffer overflow?