Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 23 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Other
Windows Service Permissions
EH-Net
May 22, 2013, 05:29:11 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Other
(Moderator:
don
) >
Windows Service Permissions
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Windows Service Permissions (Read 7683 times)
0 Members and 1 Guest are viewing this topic.
BillV
Hero Member
Offline
Posts: 1892
Windows Service Permissions
«
on:
January 25, 2010, 11:19:50 AM »
Okay, so I have an odd scenario (odd to me at least). If I understand correctly, we have a server here that had the security permissions of a service changed to 'Everyone - Deny' to disallow anyone from touching it and anything from starting it. The service no longer shows up in services management, or anywhere else for that matter, and I have no way to do anything with it. I've been looking around but haven't had much luck finding an answer.
The closest solution I found was something that could revert ALL services back to their default permissions by applying a special template. That's not something I want to do (plus I'm not convinced it'll work).
Has anyone ever seen anything like this? Any ideas on how I can get access to this service?
Thanks!
Logged
hayabusa
Hero Member
Offline
Posts: 1632
Re: Windows Service Permissions
«
Reply #1 on:
January 25, 2010, 11:46:18 AM »
Top of my head, no, but if you have another 'similar' server, you could essentially try to use sc.exe from a command-line on this server (
http://support.microsoft.com/kb/251192
) and try to kill and recreate the service. Might even be able to do it from safemode. Only other thought I'd have would be to boot to a linux cd / dvd (
http://www.pcregedit.com/
) and find / manipulate the key from there, since Linux doesn't really CARE about windows permissions, much! <evil grin>
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
bamed
Newbie
Offline
Posts: 48
Re: Windows Service Permissions
«
Reply #2 on:
January 25, 2010, 12:40:25 PM »
Are you saying you changed the permissions of the actual executable file or the account the service ran as? Maybe I'm wrong here, but I didn't think you could actually change permissions from the Services management, only change the account the service runs as. So I'm assuming the file permissions of the executable were changed. So you just need to find the location of the executable file and change them back. If you don't know the name/location of the executable you could look for the service in the Registry under HKLM\SYSTEM\CurrentControlSet\services
Also, if you're still haveing trouble, let us know what server version (may not need this) and more importantly what service we're talking about.
Logged
chown -R bamed ./base
BillV
Hero Member
Offline
Posts: 1892
Re: Windows Service Permissions
«
Reply #3 on:
January 25, 2010, 01:21:51 PM »
Thanks for the replies.
I have tried sc with no luck, just get an 'access denied' error.
No, I'm talking about the permissions of the service (as in, pull in a new security template, edit the service to be 'disabled' and then change it to a have permissions of 'everyone - deny').
This is on Server 2003 and it is the Windows Time service (w32time). When you look in services, it's not even there. And any other attempts I've made have just resulted in 'access denied.' I did try changing the security value within the registry to match one of the other services but this didn't appear to work either (unless a reboot is needed?).
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: Windows Service Permissions
«
Reply #4 on:
January 25, 2010, 01:37:29 PM »
Bill, anytime you adjust services through the registry, a reboot is required. Services get put in a pending stage.
Logged
~~~~~~~~~~~~~~
Ketchup
BillV
Hero Member
Offline
Posts: 1892
Re: Windows Service Permissions
«
Reply #5 on:
January 25, 2010, 01:45:00 PM »
Okay, thanks. I will give that another shot when I get a chance to see if it actually works then.
I did find that resetting security permissions via this command did the trick on a test box:
Code:
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
I just have to do some further testing/checking to see what all else it changes. The services isn't too big a deal since I can just go back in and re-apply the template I already have.
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: Windows Service Permissions
«
Reply #6 on:
January 25, 2010, 02:08:16 PM »
Is it possible that the registry key itself (for the w32time) service has incorrect permissions?
Logged
~~~~~~~~~~~~~~
Ketchup
BillV
Hero Member
Offline
Posts: 1892
Re: Windows Service Permissions
«
Reply #7 on:
January 25, 2010, 02:37:54 PM »
I suppose it's possible - but I was told that it was locked out via the security analysis/configuration snap-in. I just happened to notice that the security key with the security entry had a value that was different from the other services. I thought maybe by changing that value to match the others it would magically show up
The command I referenced above works, but it pulls back in the 'setup security' (out of the box settings). Which is good that it works, but requires a whole lot of reconfigurations to get things back to how they should be. I'm working on going through that template right now to compare to the current settings (minus the w32time permissions). If I can figure it all out I'll just create a new template, do the reset and then apply my template to bring all the settings back to how they should be.
Luckily, this isn't causing any problems for the moment so I've got some time. It was done originally to sync the time with a phone switch instead of the network due to the application running on it. Apparently group policy was re-enabling w32time after the admins were disabling it and it was causing issues with their app so removing all permissions was the way to fix it I guess.
Logged
hayabusa
Hero Member
Offline
Posts: 1632
Re: Windows Service Permissions
«
Reply #8 on:
January 25, 2010, 04:39:18 PM »
Personally, I'd still try the reboot, and see if the registry change does the job. As Ketchup said, service changes in the registry tend to require reboot.
Keep us posted, BillV.
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
BillV
Hero Member
Offline
Posts: 1892
Re: Windows Service Permissions
«
Reply #9 on:
January 26, 2010, 06:02:41 AM »
Beautiful!
That was it. Had the right registry key - HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Security - it just needed to be rebooted after making that change. It worked on my test box anyway, just gotta wait for an opportunity to reboot this server and make sure it works there too (I'm sure it will).
Sweet
Thanks guys!
Logged
hayabusa
Hero Member
Offline
Posts: 1632
Re: Windows Service Permissions
«
Reply #10 on:
January 26, 2010, 07:55:32 AM »
That's what we're here for! Glad it worked BillV. Sometimes, MS makes things easier than you think, if you just have a little insight and some spare time...
Have a great day!
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
GPEN - GIAC Certified Penetration Tester
: Karen Millen Outlet as an example SFTP
(0) by
dtree28yt
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(27) by
don
Greetings
: Hi from the UK
(2) by
n37sh@rk
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.