[vb6 help] windows API

Any other programming language that is not covered in the Web Scripting category.

[vb6 help] windows API

Postby lukem_95 on Wed Sep 06, 2006 3:34 pm

i was recently trying to make an IM style program using winsock, that used:

Code: Select all
win.LocalPort = 2999     
win.RemotePort = 455     
win.Listen


and then listened for strings of data and changed the caption of a label to the string.

however (i was following a tut to make a trojan and adapting it) i was fine until it came to

To do this evil thing we need to add a module with the following code

Public Declare Function BlockInput Lib "user32" (ByVal fBlock As Long)
As Long


...

The code in the module is called a windows API. It uses a dll file to do tasks that we want. Now this code still won’t block the users input but we are very close. We now need to program the DoActions function that we called on our main form. In case you were wondering the code that we added to the form does two different things. The first sub makes it so all connection requests are automatacly accepted. The second sub makes it so all data is automaticly accepted and it then passes all of the data to the function DoActions which we are about to code.


i researched this on google as i couldnt find a 'module' anywhere to insert into my program (i was going to edit this btw dont think im malicious enough to BlockInput :D), however the only help i got was one site that said go into references and select Windows API, i did this and searched my pc, its not on there :S i have VB6 Prof edition. can anyone help??

NOTE: if this would not be required in a IM then tell me and ill skip it, the tutorial can be found here: http://www.hackthissite.org/articles/read/509


EDIT TWO: AAAH FOUND IT THANKS
lukem_95
Newbie
Newbie
 
Posts: 15
Joined: Tue Sep 05, 2006 1:18 pm

Postby debeaxcc on Wed Sep 06, 2006 7:58 pm

That sounds like you are going to use a dll import or not. When I was programing in windows I had some nice tricks I was using w32dasm to get nice functions from lets say a header( imported functions ) then when I found functions I just research them on the internet. If you use this I bet you will have fun. On short- I was using w32dasm to disasm *.exe or *.dll.
Image
debeaxcc
Contributer
Contributer
 
Posts: 66
Joined: Wed Aug 23, 2006 2:58 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron