"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dissectors/ec_http.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_http.c  (ettercap-0.8.3):ec_http.c  (ettercap-0.8.3.1)
skipping to change at line 499 skipping to change at line 499
if (session_get_and_del(&s, ident, DISSECT_IDENT_LEN) == E_SUCCESS) { if (session_get_and_del(&s, ident, DISSECT_IDENT_LEN) == E_SUCCESS) {
conn_status = (struct http_status *) s->data; conn_status = (struct http_status *) s->data;
/* Are we waiting for client response? */ /* Are we waiting for client response? */
/* XXX- POST Continuation may conflict with NTLM Proxy auth /* XXX- POST Continuation may conflict with NTLM Proxy auth
* if the client doesn't send Proxy-Authorization in the same * if the client doesn't send Proxy-Authorization in the same
* packet as the POST * packet as the POST
*/ */
if (conn_status->c_status == NTLM_WAIT_RESPONSE) { if (conn_status->c_status == NTLM_WAIT_RESPONSE) {
/* Fill the user and passwords */ /* Fill the user and passwords */
response_struct = (tSmbNtlmAuthResponse *) to_decode; response_struct = (tSmbNtlmAuthResponse *) decoded;
po->DISSECTOR.user = strdup(GetUnicodeString(response_struct, uUser) ); po->DISSECTOR.user = strdup(GetUnicodeString(response_struct, uUser) );
SAFE_CALLOC(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, si zeof(char)); SAFE_CALLOC(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, si zeof(char));
snprintf(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, "(NTL M) %s:\"\":\"\":", po->DISSECTOR.user); snprintf(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, "(NTL M) %s:\"\":\"\":", po->DISSECTOR.user);
outstr = po->DISSECTOR.pass + strlen(po->DISSECTOR.pass); outstr = po->DISSECTOR.pass + strlen(po->DISSECTOR.pass);
dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_stru ct->lmResponse.offset,0), 24); dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_stru ct->lmResponse.offset,0), 24);
outstr[48] = ':'; outstr[48] = ':';
outstr+=49; outstr+=49;
dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_stru ct->ntResponse.offset,0), 24); dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_stru ct->ntResponse.offset,0), 24);
outstr[48] = ':'; outstr[48] = ':';
outstr += 49; outstr += 49;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)