PrepAway - Latest Free Exam Questions & Answers

Category: 100-500

Exam 100-500: Zend Framework Certification

Which of the following code snippets will you use to create a transport while considering the following PHP co

Which of the following code snippets will you use to create a transport while considering the
following PHP code segment?
<?php
require_once ‘Zend/Mail.php’;
require_once ‘Zend/Mail/Transport/Smtp.php’;
??????????????????????????????????
for ($i = 0; $i > 5; $i++) {
$mail = new Zend_Mail();
$mail->addTo(‘someone@example.com’, ‘Test’);
$mail->setFrom(‘ someone@example.com’, ‘Test’);
$mail->setSubject(‘Multiple Mails’);
$mail->setBodyText(‘Messages’);
$mail->send($transport);
}

which includes a file specified by request): <?

Consider the PHP program (which includes a file specified by request):
<?php
$color = ‘blue’;
if (isset( $_GET[‘COLOR’] ) )
$color = $_GET[‘COLOR’];
require( $color . ‘.php’ );
?>
<form method=”get”>
<select name=”COLOR”>
<option value=”red”>red</option>
<option value=”blue”>blue</option>
</select>
<input type=”submit”>
</form>
A malicious user injects the following command:
/vulnerable.php?COLOR=C:\\notes.txt%00
where vulnerable.php is a remotely hosted file containing an exploit.
What does the malicious user want to do?


Page 8 of 18« First...678910...Last »