Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

Full Version: Responding As Service
Serhat
Well I have written an little updater @ some lil network I help with.. and well.. it runs it @ startup everytime which updates one file.. my problem was that it got killed after 5-10 secs because it didn't respond as service.. etc... normally the app is done updating in a few secs but when the server is down it retried every 15 seconds.. so it won't update then and get killed.. I just made a launcher that launched the updater .. and the launcher gets killed ofcourse then.. but the updater will still run.. so I am searching for a way to let VB respond back as a service somehow.. and not with those apps that do it for you.. I just had to tell all this .. so you know I am not using it for some evil purpose smile.gif
The only things I found was about VB.net and not VB.. Could be I was blind.. if so.. don't mind me!

Serhat
nolimit
their is an OCX that allows your program to respond to service calls, use google.
You might want to switch over to writing an updater in C++ however, if theirs no gui involved. smile.gif
Serhat
no GUI involved.. but I might add more stuff later..
and also that ocx.. it lead me to a m$ site.. and said the page didn't exist ...
well I can let it work like this.. but I want to make it efficient and working as it should be .. with less chance on problems etc..
I should start learning c/c++ (c++ is what I will getting @ school next year.. so knowing the basics won't hurt me )..

Serhat
Killaloop
here you go
http://vbwire.com/advanced/howto/service2.asp
and the link to the source for microsofts active x control.
hxxp://vbwire.com/advanced/howto/ntsrvocx.exe

this should do it for you
but keep in mind that visual basic applications may act strange when run as a service since multithreading is not supported

better learn a real language smile.gif
Serhat
Yeah sure.. thinking of starting with c/c++ .. we'll start with c++ @ school next year.. so atleast I will have some knowledge about it too then..

Serhat
snortpepsi
QUOTE(Serhat @ Mar 19 2005, 08:17 AM)
Yeah sure.. thinking of starting with c/c++ .. we'll start with c++ @ school next year.. so atleast I will have some knowledge about it too then..

Serhat
*



If you have the VS.net beta 2 you can make a visual basic service project and im pretty sure it takes care of all the service stuff automaticly.
nolimit
.NET has support for services, but then you have to use .NET architecture. gay.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.