'Defines the section where the result of an attack will be.
For example, when performing an OS Commanding attack, the command
response could be in the middle of some HTML text. This function defines
the header and footer attributes that are used by _cut() in order to
extract the information from the HTML.
:return: True if the cut could be defined'

def _define_exact_cut(self, body, expected_result):

    if (not (expected_result in body)):
        return False
    else:
        self._header_length = body.find(expected_result)
        self._footer_length = ((len(body) - self._header_length) - len(expected_result))
        om.out.debug('Defined    cut    header    and    footer    using    exact    match')
        om.out.debug(('Defined    header    length    to    %i' % self._header_length))
        om.out.debug(('Defined    footer    length    to    %i' % self._footer_length))
        return True
