Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

my first post on my own message board.... it's about registry acces

didanididani Member Posts: 99
for anybody who wants to acces the registry to WRITE whatever in it, yoou can use the api32.dll. or, you can use the easy way in and use regedit. from inside your program. how? let me show you:

open "temp.reg" for output as #1
print #1, "[REGEDIT4]"
print #1, " "
print #1, "[HKEY_LOCAL_MACHINESOFTWAREMicrosoft_
WindowsCurrentVersionRun]"
print #1, chr(34) & "myevilapp" & chr(34) & "=" & chr(34) & "_
c:\windows\system\myevilapp" & chr(34) 'that's right: \ instead of
close #1
shell "regedit /s temp.reg"
kill "temp.reg"

Comments

  • Zell1388Zell1388 Member Posts: 82
    Interesting. That code can be very useful, even for harmless programs :D
  • didanididani Member Posts: 99
    yeah, i know...
    i guess it could be used for non-evil code...
    anywayz, pleaz post questions about potential evil code, or potential evil code samples on this forum...
    together we can take the world :-p

Sign In or Register to comment.