Rev 2325 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2325 | Serge | 1 | |
2 | |||
3 | |||
4 | dd 1 |
||
5 | dd start |
||
6 | dd i_end |
||
7 | dd mem |
||
8 | dd mem |
||
9 | dd cmdline |
||
10 | dd path |
||
11 | |||
12 | |||
6088 | serge | 13 | |
14 | |||
2325 | Serge | 15 | mov eax, 68 |
6088 | serge | 16 | mov ebx, 16 |
17 | mov ecx, sz_display |
||
18 | int 0x40 |
||
19 | test eax, eax |
||
20 | jz .load |
||
21 | |||
2325 | Serge | 22 | |
6088 | serge | 23 | |
24 | |||
25 | push ebx ;.output |
||
26 | push 4 ;.inp_size |
||
27 | push cmdline ;.input |
||
28 | push SRV_CMDLINE ;.code |
||
29 | push eax ;.handle |
||
30 | |||
31 | |||
32 | mov ebx, 17 |
||
33 | mov ecx, esp ;[ioctl] |
||
34 | int 0x40 |
||
35 | |||
36 | |||
37 | int 0x40 |
||
38 | |||
39 | |||
40 | xor eax, eax |
||
41 | mov ecx, 1024 |
||
42 | mov edi, path |
||
43 | cld |
||
2325 | Serge | 44 | repne scasb |
45 | dec edi |
||
6088 | serge | 46 | mov [edi], dword '.dll' |
47 | mov [edi+4], al |
||
48 | mov eax, 68 |
||
49 | mov ebx, 21 |
||
50 | mov ecx, path |
||
51 | mov edx, cmdline |
||
52 | int 0x40 |
||
53 | |||
2325 | Serge | 54 | |
6088 | serge | 55 | int 0x40 |
56 | |||
57 | |||
2325 | Serge | 58 | |
59 | |||
60 | i_end: |
||
61 | cmdline rb 256 |
||
62 | path rb 1024 |
||
63 | rb 16 ; stack |
||
64 | mem: |
||
65 |