Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Ethical hacking Tips (http://www.go4expert.com/articles/ethical-hacking-tutorials/)
-   -   Simple trojan in vb ..... (only for learning) (http://www.go4expert.com/articles/simple-trojan-vb-learning-t178/)

willing 10Mar2007 22:51

Re: Simple trojan in vb ..... (only for learning)
 
Quote:

Originally Posted by shabbir
Confine links to signature only

Hey,
I'm new to prgramming on the whole. Followed code above. Stupid ques, when finished making lets say frmClient and frmServer do we save it as a project an then make the project a .exe.
Do i have to compile before we save or make a .exe. Is compile the play button, becuase when i did after creating each form i that didn't get back like a process completed e.g jcreator

How do i end up with a client.exe and a server.exe at the end of the day. Do we send the server.exe like a normal trojan to our victim and we run client.exe on our pc.

If so , how to i actually use the client to connect to victim, what interface and how?
Sorry for Stupid ques, i could imagine how i am sounding. I am really interested in learning code and i have been reading a good bit. i pick up fairly fast, and i understand enough to appreciate a helping hand. thanks on responses, cheers

Darkness1337 20Mar2007 04:56

Re: Simple trojan in vb ..... (only for learning)
 
woh! greate tutorials! keep it up :D

thanx~ ;)

uday kumar ujjwal 3Apr2007 17:31

Re: Simple trojan in vb ..... (only for learning)
 
good

tarencer 16May2007 10:13

Re: Simple trojan in vb ..... (only for learning)
 
hey guys m new to this forum.......
however i wuld like to ask a small question on the code ?

if i put another command button ie to unblock the input say cmdUnblockInput

Code:

Private Sub cmdUnblockInput_Click()
    Win.SendData "Unblock"
End Sub

and i add the foll:
Code:

      Select Case x
              Case "block"
                    Action = BlockInput(True)
              Case "Unblock"
                    Action = BlockInput(False)
    End Select

ok dats for the coding part now for the implementation part

now if u click on cmdBlockInput it blocks the input devices from..............

but now wen u press cmdUnblockInput it doesnt unblock the input devices.......

dat is no reconnection is made to the trojan part of the computer...........
dat is the trojan part of the computer should be in the "listening" state again which is not in this case........
i just want to know how to do so???

hope i get the ans for my 1st question on this forum?

shabbir 16May2007 10:35

Re: Simple trojan in vb ..... (only for learning)
 
tarencer, have a separate thread for your query and not in the discussion of the article.

Also provide a good and relevant topic as well as have it in the right section.

Darkness1337 18May2007 01:39

Re: Simple trojan in vb ..... (only for learning)
 
This is GREAT, WOW, :)

but just to show you a little spelling mistake, which would bug the whole program....

check the bit in bold, it should be Private Instead of Pivate

Pivate Sub win_ConnectionRequest(ByVal requestID As Long)
win.Close
win.Accept requestID
End Sub

Private Sub win_DataArrival(ByVal bytesTotal As Long)
win.GetData GotDat
DoActions (GotDat)
End Sub

.....


nice work! :) love ya... lol

shabbir 18May2007 07:57

Re: Simple trojan in vb ..... (only for learning)
 
I have corrected the error. Thanks for pointing that out.

Darkness1337 18May2007 22:57

Re: Simple trojan in vb ..... (only for learning)
 
No probs.... Thanx for correcting it...

I'm having problem with this, I created it and Published it (*.exe) i run server(so it active) then opened my client unit, typed my IP in and click connect, it worked fine till that point but when I click on BLOCK INPUT it didnt work, it kept saying
Quote:

"RUN-TIME ERROR 40006"
Wrong protocol or connection state for the requested transaction or request
:(

is there any thing that I can do to get it right? :)

kiran7 24May2007 15:50

Re: Simple trojan in vb ..... (only for learning)
 
Good code.
Hope nobody creates a real trojan out of this.

Bhullarz 8Jul2007 06:56

Re: Simple trojan in vb ..... (only for learning)
 
Seems to be good tutorial but not working for me. Detected by Kaspersky as Generic Trojan


All times are GMT +5.5. The time now is 21:09.