'This method is used to transfer the data_str from w3af to the compromised server.'

def transfer(self, data_str, destination):

    self._filename = destination
    self._exec_method(('>    ' + self._filename))
    i = 0
    while (i < len(data_str)):
        cmd = '/bin/echo    -ne    '
        for c in data_str[i:(i + self._step)]:
            cmd += ('\\\\' + oct(ord(c)).zfill(4))
        cmd += ('    >>    ' + self._filename)
        i += self._step
        self._exec_method(cmd)
    return self.verify_upload(data_str, self._filename)
