CEH-001 Exam Question 156

Buffer X in an Accounting application module for Brownies Inc. can contain 200 characters. The programmer makes an assumption that 200 characters are more than enough. Because there were no proper boundary checks being conducted, Bob decided to insert 400 characters into the 200-character buffer. (Overflows the buffer). Below is the code snippet:

How can you protect/fix the problem of your application as shown above?
  • CEH-001 Exam Question 157

    Take a look at the following attack on a Web Server using obstructed URL:

    How would you protect from these attacks?
  • CEH-001 Exam Question 158

    Bart is looking for a Windows NT/2000/XP command-line tool that can be used to assign, display, or modify ACL's (access control lists) to files or folders and also one that can be used within batch files.
    Which of the following tools can be used for that purpose? (Choose the best answer)
  • CEH-001 Exam Question 159

    John the hacker is sniffing the network to inject ARP packets. He injects broadcast frames onto the wire to conduct MiTM attack. What is the destination MAC address of a broadcast
    frame?
  • CEH-001 Exam Question 160

    What does the following command in netcat do?
    nc -l -u -p55555 < /etc/passwd