![]() |
Simple trojan in vb ..... (only for learning)
Writing a Trojan is a lot easier than most people think. All it really involves is two simple applications both with fewer than 100 lines of code. The first application is the client or the program that one user knows about. The second is the server or the actual “trojan” part. I will now go through what you need for both and some sample code.
Server The server is the Trojan part of the program. You usually will want this to be as hidden as possible so the average user can’t find it. To do this you start by using Code: VB
Code: VB
The first thing we want to do is make it be able to listen for connections when it loads. So in order to do this we need to add a Winsock Control. I named my control win but you can name yours what ever. Now to make it listen on port 2999 when the Trojan starts up we make our code look like this. Code: VB
To do this little devious thing we need to add a module with the following code Public Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long Then we add this code to our main form: Code: VB
For the DoActions code, we want to make a public function in the module. So add this code to the module and we are about done with the server of the Trojan! Code: VB
Main Form Code: VB
Code: VB
Client The client will be what you will interact with. You will use it to connect to the remote server (trojan) and send it commands. Since we made a server that accepts the command of “block” lets make a client that sends the command “block”. Make a form and add a Winsock Control, a text box, and three buttons. The Text box should be named txtIP if you want it to work with this code. In addition, your buttons should be named cmdConnect, cmdBlockInput, and cmdDisconnect. Now lets look at the code we would use to make our Client. Code: VB
|
Re: Simple trojan in vb ..... (only for learning)
:cool: kool one.
|
Re: Simple trojan in vb ..... (only for learning)
I was loosing interest in VB but this Articles as made me open my VB book again.
|
Re: Simple trojan in vb ..... (only for learning)
I have search the internet for a possible trojan created in vb. well, it rocks
|
Re: Simple trojan in vb ..... (only for learning)
very cool :)
|
Re: Simple trojan in vb ..... (only for learning)
nice one..
|
Re: Simple trojan in vb ..... (only for learning)
cool :-)
|
Re: Simple trojan in vb ..... (only for learning)
did any one compile it and try it out on
|
Re: Simple trojan in vb ..... (only for learning)
Cool tutorial ;)
|
Re: Simple trojan in vb ..... (only for learning)
Quote:
|
| All times are GMT +5.5. The time now is 20:22. |