EC-COUNCIL 312-92 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 312-92
  • Exam Name/Title: EC-Council Certified Secure Programmer v2
  • Certification Provider: EC-COUNCIL
  • Corresponding Certification: ECSP
  • Exam Questions: 99
  • Updated On: Jul 08, 2026
What type of error will result from the following statement?
int main(int argc, char* argv[])
{
char i[7];
strncpy(i, "sdfusdofof", sizeof(i));
}
Correct Answer: A Vote an answer
Tyler is in the applicaion testing phase of a particular project. He has decided to use the White Box testing method. Tyler has made a number of changes to his code after some initial tests found some bugs. Tyler now needs to test the code with those changes in place.
What type of testing is Tyler getting ready to perform?
Correct Answer: A Vote an answer
What type of problem will result if the following statement is used?
int main()
{
short int a;
unsigned short int=b32768;
a=b;
printf( " a = %d", a);
b=65535;
a=b;
printf( " a = %d", a);
}
Correct Answer: D Vote an answer
Jayson is the head developer of a team working on an inventory tracking and maintenance program. Jayson and his team are in the third phase of the software development life cycle, designing the program. In their current development phase, what material would be considered the input for their program?
Correct Answer: A Vote an answer
What type of authentication is used in the following Pocket SOAP code?
Dim Envelope
Dim HTTP
Set Envelope = CreateObject("PocketSOAP.Envelope.2")
Set HTTP = CreateObject("PocketSOAP.HTTPTransport.2)
Envelope.SetMethod "GetSome", "http://www.mysite.org/message/"
Emvelope.Parameters.Create "SomeParameter", "SomeValue"
HTTP.SOAPAction = "http://www.mysite.org/action/Service.GetSome"
HTTP.Authentication "Username", "Password"
HTTP.Send http://www.mysite.org/webservice.WDSL",Envelope.Serialize
Envelope.Parse HTTP
MsgBox "Result: " & Envelope.Parameters.Item(0).Value
Correct Answer: A Vote an answer
Mathew is working on a Fedora machine and is having issues with some shellcode he wrote that is producing errors. Mathew decides to download and use Ktrace to debug the shellcode to see where the errors are originating from. Why will his plan not work?
Correct Answer: A Vote an answer
What is the following shellcode trying to accomplish?
int main(void) {
mkdir("A");
chdir("A");
chroot("..//..//..//..//..//..//..//..//");
system("/bin/sh")
Correct Answer: D Vote an answer
What is the new lightweight audit framework that is built into Red Hat Linux Enterprise?
Correct Answer: C Vote an answer
Charles is writing a script in PERL for a website he is working on. The only problem he is having is that part of his script needs to call a file that a normal user does not have permission to access. What PERL command could Charles use to elevate the current user's permission so that the file could be called?
Correct Answer: D Vote an answer
Carl just purchased an expensive smart phone to use for personal and business use. Carl wants to protect his investment so he decides to register the unique GSM number of the phone in case it is ever stolen. Which number should he have registered?
Correct Answer: C Vote an answer
0
0
0
10