Welcome Guest ( Log In | Register )

      
Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the 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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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: 20,688
From: kn-ARGH!-xville Tenn-ARGH!-see
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)



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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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: 20,688
From: kn-ARGH!-xville Tenn-ARGH!-see
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)



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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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: 20,688
From: kn-ARGH!-xville Tenn-ARGH!-see
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)



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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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: 20,688
From: kn-ARGH!-xville Tenn-ARGH!-see
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)



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,597
From: Upstate NY
OS: Windows XP Pro / Home, 2000, 2003, Fedora Core 4, Knoppix



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:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   10 / 466 26th October 2008 - 02:49 PM
mj8 started - last by Transience
No New Posts   1 / 165 21st October 2008 - 04:08 PM
VYPEREGT started - last by Titan8990
No New Posts   0 / 87 21st October 2008 - 02:30 PM
911pchelp started - last by 911pchelp
No New Posts   0 / 67 1st November 2008 - 04:27 AM
Sangsom started - last by Sangsom

RSS Time is now: 2nd December 2008 - 02:16 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 to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.