Rev 2958 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2958 | Rev 2995 | ||
---|---|---|---|
Line 761... | Line 761... | ||
761 | mov al, ',' |
761 | mov al, ',' |
762 | stosb |
762 | stosb |
763 | ; port |
763 | ; port |
764 | movzx eax, byte [ebp + thread_data.datasock.sin_port + 1] |
764 | movzx eax, byte [ebp + thread_data.datasock.sin_port] |
765 | call dword_to_ascii |
765 | call dword_to_ascii |
766 | mov al, ',' |
766 | mov al, ',' |
767 | stosb |
767 | stosb |
768 | movzx eax, byte [ebp + thread_data.datasock.sin_port] |
768 | movzx eax, byte [ebp + thread_data.datasock.sin_port+1] |
769 | call dword_to_ascii |
769 | call dword_to_ascii |
770 | ; ')', 13, 10, 0 |
770 | ; ')', 13, 10, 0 |
771 | mov eax, ')' + 0x000a0d00 |
771 | mov eax, ')' + 0x000a0d00 |
772 | stosd |
772 | stosd |
773 | 773 | ||
774 | lea esi, [edi - thread_data.buffer] |
774 | lea esi, [edi - thread_data.buffer] |
Line 841... | Line 841... | ||
841 | ; Now the same with portnumber |
841 | ; Now the same with portnumber |
Line 842... | Line 842... | ||
842 | inc esi |
842 | inc esi |
843 | call ascii_to_byte |
843 | call ascii_to_byte |
844 | mov bh, al |
844 | mov byte[ebp + thread_data.datasock.sin_port], al |
845 | inc esi |
845 | inc esi |
846 | call ascii_to_byte |
846 | call ascii_to_byte |
847 | mov bl, al |
847 | mov byte[ebp + thread_data.datasock.sin_port+1], al |
848 | - | ||
849 | ; Save it in datasock too |
- | |
850 | mov [ebp + thread_data.datasock.sin_port], bx |
- | |
851 | 848 | ||
Line 852... | Line 849... | ||
852 | ; We will open the socket, but do not connect yet! |
849 | ; We will open the socket, but do not connect yet! |
853 | mov [ebp + thread_data.datasock.sin_family], AF_INET4 |
850 | mov [ebp + thread_data.datasock.sin_family], AF_INET4 |
854 | mcall socket, AF_INET4, SOCK_STREAM, 0 |
851 | mcall socket, AF_INET4, SOCK_STREAM, 0 |
855 | cmp eax, -1 |
852 | cmp eax, -1 |