03.10.2016 Views

Investigation of Linux.Mirai Trojan family

u97CXm

u97CXm

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

35<br />

35<br />

.text:0804A50F xor ecx, ecx<br />

.text:0804A511 mov eax, 1<br />

.text:0804A516 jmp short check_char_in_query<br />

.text:0804A518 ;<br />

-------------------------------------------------------------------------<br />

--<br />

; CODE XREF: cm-<br />

.text:0804A518 not_dot:<br />

d2_dns_flood+29Dj<br />

.text:0804A518 inc ecx ; parsing query<br />

.text:0804A519<br />

; CODE XREF: cm-<br />

.text:0804A519 not_very_efficient_loop:<br />

d2_dns_flood+2A6j<br />

.text:0804A519 inc eax<br />

.text:0804A51A cmp eax, [esp+6Ch+random_data_length]<br />

.text:0804A51E jz loc_804A6E9<br />

.text:0804A524<br />

; CODE XREF: cm-<br />

.text:0804A524 check_char_in_query:<br />

d2_dns_flood+286j<br />

.text:0804A524 mov esi, [esp+6Ch+domain_query]<br />

.text:0804A528 cmp byte ptr [eax+esi-1], '.'<br />

.text:0804A52D jnz short not_dot ; parsing query<br />

.text:0804A52F mov [edx], cl<br />

.text:0804A531 lea edx, [ebx+eax]<br />

.text:0804A534 xor ecx, ecx<br />

.text:0804A536 jmp short not_very_efficient_loop<br />

A name <strong>of</strong> a requested host is generated by setting a length <strong>of</strong> a generated prefix in the field 0, to which<br />

a string, transmitted in the parameter with id = 8, is added.<br />

cmd3 – TCP flood 2 options<br />

The command is responsible for sending TCP packets to specified targets. It also allows values to be specified<br />

for TCP flags using these parameters:<br />

TOS = getNumberOrDefault(params_count, params, 2, 0);<br />

ident = getNumberOrDefault(params_count, params, 3, 0xFFFF);<br />

TTL = getNumberOrDefault(params_count, params, 4, 64);<br />

frag = getNumberOrDefault(params_count, params, 5, 1);<br />

sport = getNumberOrDefault(params_count, params, 6, 0xFFFF);<br />

dport = getNumberOrDefault(params_count, params, 7, 0xFFFF);<br />

seq = getNumberOrDefault(params_count, params, 17, 0xFFFF);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!