Welcome! Register for a free account (or login). Geeks to Go offers free, quality tech support -- in terms anyone can understand. How does it work? »
Quickly register. Takes only a minute, and it's free. Start a new topic. Ask your question. Wait for an email reply. Infected? View malware cleaning guide »
 
Reply to this topicStart new topic
Creating Services, sc create
jaxisland
post Aug 11 2006, 07:47 AM
Post #1


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



I need to know if anyone knows the syntax for the sc create command. I am following what I see from MS but it still wont work.

Thanks
Go to the top of the page
 
+Quote Post
jaxisland
post Aug 11 2006, 08:19 AM
Post #2


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



I did find the synatax it is this:

sc.exe create "file name" binPath= "path to binary file"


Now my only problem is I cannot find the right binary file for WinPcap.

If anyone knows, help would be appreciated, thanks.
Go to the top of the page
 
+Quote Post
dsenette
post Aug 11 2006, 08:26 AM
Post #3


Ruler of Omicron Persei 8
Group Icon
Posts: 23,240
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


on my winpcap (that is needed by ethereal) i think the rpcapd.exe is the capture daemon (though by the name it could be the remote packet capture daemon) the other two exe's look like management daemons
Go to the top of the page
 
+Quote Post
jaxisland
post Aug 11 2006, 08:29 AM
Post #4


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



Roger that, so I create a service pointing to the rpcapd.exe but I get this error:

Could not start the "my name" serivce on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.


Any ideas on that?
Go to the top of the page
 
+Quote Post
dsenette
post Aug 11 2006, 08:30 AM
Post #5


Ruler of Omicron Persei 8
Group Icon
Posts: 23,240
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


not as of right now...but what exactly are you trying to do (while i research)
Go to the top of the page
 
+Quote Post
jaxisland
post Aug 11 2006, 08:32 AM
Post #6


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



My companys in house software uses WinPcap. Same version as Ethereal. What I would like to do is be able to install it as a service so user accounts with limited permission can use our software. By default WinPcap needs administrator or Power user permissions to run.
Go to the top of the page
 
+Quote Post
dsenette
post Aug 11 2006, 08:36 AM
Post #7


Ruler of Omicron Persei 8
Group Icon
Posts: 23,240
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


AH...hmm i'll keep researching if i can

support@cacetech.com the winpcap support email

http://www.winpcap.org/pipermail/winpcap-u...ber/000319.html interesting but don't know that it will be for sure to help
Go to the top of the page
 
+Quote Post
jaxisland
post Aug 11 2006, 12:00 PM
Post #8


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



Ok here we go. I have the answer. From personal experience I know this will be the first answer to this question on the whole internet.

When WinPcap gets installed from our software by default it adds this registry key:
HKLM\System\CurrentControlSet\Services\NPF
Under NPF there is a REG_DWORD called Start, by default the value is Hex 3.

In order for WinPcap to function with limited permissions the npf.sys driver needs to start when windows boots. You do this by changing the hex value from 3 to 2.

Thats it.

Now I will make a new .exe for our software with that code in it and boom, its good to go.

Now for people who have installed a recent version of Ethereal, this is done completely automatically by selecting the checkbox to start NPF when windows boots, during the install. By checking that box, it makes that registry key automatically.

If anyone has questions, please ask I will be glad to help anyone else with this issue.

I put a week into tracking down 1 registry key. Please share this info.

Thanks for the ideas dsenette
Go to the top of the page
 
+Quote Post
dsenette
post Aug 11 2006, 01:08 PM
Post #9


Ruler of Omicron Persei 8
Group Icon
Posts: 23,240
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


sorry that i'm never actually able to help with any of your problems...they are always fun
Go to the top of the page
 
+Quote Post
jaxisland
post Aug 11 2006, 01:10 PM
Post #10


Member 1K
****
Posts: 1,703
From: Upstate NY
OS: Windows PC & Server, Linux (multiple flavors)



I do try and post the most off the wall happens to no one else errors because there is never any answers on the web, anywhere. So I try to make sure I get all of them on here so I can try and help someone else.

You hit it right on the head, it is fun!

laughing.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Time is now: 9th February 2010 - 08:23 AM

Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm. However, we do not guarantee that they are accurate and they are to be used at your own risk. All trademarks mentioned on this page are the property of their respective owners.

© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy | Advertising