
09.03.2010, 06:40
|
|
Познающий
Регистрация: 05.02.2010
Сообщений: 59
С нами:
8559301
Репутация:
41
|
|
fasm реестр
чот не получается в реестр ключ добавить, что не так:???
Код:
include 'win32a.inc'
format PE GUI 4.0
entry start
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
section '.data' data readable
reestrsub db 'Software\Microsoft\Windows\CurrentVersion\Run',0
rname1 db 'netagent',0
rname2 db 'test',0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
section '.code' code readable executable
start:
push esp
push KEY_ALL_ACCESS
push 0
push reestrsub
push HKEY_LOCAL_MACHINE
call [RegOpenKeyEx]
push eax
pop esp
push 4
push rname2
push REG_SZ
push 0
push rname1
push eax
call [RegSetValueEx]
push 0
call [ExitProcess]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
section 'idata' import data readable
library kernel32,'kernel32.dll'
import kernel32,\
ExitProcess,'ExitProcess'
library advapi32,'advapi32,dll'
import advapi32,\
RegSetValueEx,'RegSetValueEx',\
RegOpenKeyEx,'RegOpenKeyEx'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Последний раз редактировалось BastardFromHell; 09.03.2010 в 10:18..
|
|
|