Hi! Has anyone ever made a simple client/server application using Windows (NT/2K/XP), Visual C++ and OpenSSL??? Or can anybody give me a link to an example? Thank you so much!! JaVinci.
JaVinci
Posts
-
Help with Windows, C++, OpenSSL -
Help hooking Windows API functionsHi, everybody! I need help... I'm still trying to develop a kind of a firewall for WinNT/2K/XP, in C++. I'm using a program that hooks Windows API functions and it works reasonably good. The way it hooks Windows API functions is injecting the dll to every process using CreateRemoteThread(). My problem is with two functions: accept() and listen() aren't hooked (I've tried to hook them from WS2_32.DLL and WSOCK32.DLL), altough the code I've written should be hooking them (I've hooked lots of API functions the same way without a problem -CreateProcess, ExitProcess, send, recv, etc..-), but I don't seem to be able to hook those two functions. Do you have any idea of what can be the reason for this? Thanks a lot to all in advance. Regards: Javi.
-
Help hooking Windows API functionsHi, everybody! I need help... I'm still trying to develop a kind of a firewall for WinNT/2K/XP, in C++. I'm using a program that hooks Windows API functions and it works reasonably good. The way it hooks Windows API functions is injecting the dll to every process using CreateRemoteThread(). My problem is with two functions: accept() and listen() aren't hooked (I've tried to hook them from WS2_32.DLL and WSOCK32.DLL), altough the code I've written should be hooking them (I've hooked lots of API functions the same way without a problem -CreateProcess, ExitProcess, send, recv, etc..-), but I don't seem to be able to hook those two functions. Do you have any idea of what can be the reason for this? Thanks a lot to all in advance. Regards: Javi.
-
Problems with a dllYeah, thanks... I had already done that. I nearly kill myself when I realized that I wasn't setting the dependence between both projects. That was all I needed. Thank you very much for your reply!!! :) JaVinci
-
Problems with a dllHi! I'm trying to import a dll in Visual C++ 6. Can anybody help me? When I link to that dll from another project it doesn't work. I'm sure I'm missing something, but I don't know what... Here's how the dll is written (no errors, no warnings): ************** * whatever.h * ************** #ifdef __cplusplus extern "C"{ #endif class __declspec(dllexport) MyClass{ private: char myString[100]; int myInteger; public: MyClass(); void getMyString(char * str); int getMyInteger(void); void setMyString(char * str); void setMyInteger(int); }; __declspec(dllexport) int function(MyClass * mc); **************** * whatever.cpp * **************** Just implementation here... What can I do to import the class and the function from that dll (preferably not using a .def file)??? Please, help me, I'm going mad... :(( Thank you!!!
-
Get user from process (windows NT/XP)Cool! Thank you so much!
-
Get user from process (windows NT/XP)Hi! I need to know how to get user information of every process running in windows. I already have a list with all the process id's, but I can't find the way to obtain the user names (or user id's) of the owners of that processes. I'm using VC++ 6 Can you help me, please? Thanks!!!
-
Start application before Windows startupSorry! I forgot to mention I'm using VC++ 6...
-
Start application before Windows startupHi and thanks for your reply! I was looking for some kind of registry solution... But it's important for my application to start before any other user application, does this solution grant it? My firewall, for instance, is launched even before the Win xp login screen appears, I mean, I know it can be done... I just don't know how... Thank you very much, Kaushik. JaVinci.
-
Start application before Windows startupHi! I'm developing a security application under Windows xp and I want it to run at the very beginning of the startup, before any other application starts. Is there any easy way to do it? Thank you very much. JaVinci.