Page 1 of 1 1
Topic Options
#47526 - 2003-11-03 05:51 PM Sanur help
MagicOO7 Offline
Lurker

Registered: 2003-10-21
Posts: 3
I'm trying to use the RUNAS command to run a batch file with admin rights and using Sanur.exe to pipe the password in. Whenever I test the script by running my login script from NETLOGON, it works. However, when I'm logging in and the login script fires automatically, it doesn't work. I've been able to get the RUNAS command work fine without the Sanur.exe part, where it will prompt me for a password during the login process. Any ideas??
Here's the runas command I'm using.
code:
 SHELL '%COMSPEC% /c runas /env /user:VANACORE\Scripts "\\server1\netlogon\GamesXP.bat" | C:\sanur.exe Password' 

And here's the batch file:
code:
CMD.exe /c "sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt /q"  


Top
#47527 - 2003-11-03 07:27 PM Re: Sanur help
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Have been playing with it and came up with this:

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=004570

For other admin-install methods, see the KiX-FAQ.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#47528 - 2003-11-03 10:13 PM Re: Sanur help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Ans my usual rant: Having unencrypted admin-level passwords in an unencrypted script is poor security!
_________________________
There are two types of vessels, submarines and targets.

Top
#47529 - 2003-11-03 10:51 PM Re: Sanur help
MagicOO7 Offline
Lurker

Registered: 2003-10-21
Posts: 3
Thanks for the feedback guys! I have spent the last 2 weeks going through the FAQ section on using SANUR with encryption. I don't understand why it runs if I go Start/Run \\Server1\netlogon\kix32 but it won't run correctly when I log in.
I'm not sure, MighyR1, what you are trying to tell me. Are you telling me that my syntax is incorrect? I admit I don't feel comfortable with the way I've used the quotes... could there be a problem in the quotes?
Also, I assure you, SeaLeopard, that I was using Kixcrpt.exe in the same manner as the examples in the FAQs. (I know that this method is still not 100% secure, but let's face it, no network connected to the internet is 100% hacker-proof.) I have just removed all encryption layers until I get the script to run properly in testing. I believe that to be the proper way to troubleshoot, am I not right? Why complicate the issue????

Top
#47530 - 2003-11-03 10:57 PM Re: Sanur help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
KiXcrypt currently leaves the unencrypted files ont he local disk, thus it's not secure.

quote:
I know that this method is still not 100% secure, but let's face it, no network connected to the internet is 100% hacker-proof
Secure methods to install applications under admin accounst have been posted. You should use the most secure method available, otherwise you'll never secure your network.
_________________________
There are two types of vessels, submarines and targets.

Top
#47531 - 2003-11-03 11:05 PM Re: Sanur help
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Magic,

Not sure about the syntax...

Jens,

KiXcrypt doesn't leave anything if all goes well...
Agreed there are better secure ways to do this. What goes over the line if you use scheduletask etc. Is the remote password encrypted??? Has anyone done a network scan?
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#47532 - 2003-11-04 12:03 AM Re: Sanur help
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Im sure I could sniff the traffic and find a password when remote task scheduler is used a lot easier than trying to decrypt a kixcrypted script.
Top
#47533 - 2003-11-04 12:05 AM Re: Sanur help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
to leave unencrypted files to disk, isn't it enough to deny file-deletion rights [Eek!] [Confused]
_________________________
!

download KiXnet

Top
#47534 - 2003-11-04 12:24 AM Re: Sanur help
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
If you are going to use runas technology...

I would suggest using the runas.exe found here...

http://www.anbsoftware.co.uk/netadmin/runas/download.php

It prevents having to call two different programs...It also includes the wonderful /w switch so that the script will wait until the program you run using runas is completed before proceeding.

Just my 2 cents worth.

Top
#47535 - 2003-11-04 01:40 AM Re: Sanur help
MagicOO7 Offline
Lurker

Registered: 2003-10-21
Posts: 3
I agree with CitrixMan on sniffing the password when it's sent to the task scheduler... now if you were able to encrypt that too, that'd be a diff story.

I'll try the other Runas when I get into work tomorrow... it should at least help me feel more
comfortable about my quote usage.

Top
#47536 - 2003-11-04 01:46 AM Re: Sanur help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I think you guys are barking up the wrong tree.

The task scheduler uses Microsoft's JT.EXE which I am certain would use the Microsoft crypo APIs.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#47537 - 2003-11-04 02:09 AM Re: Sanur help
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Perhaps...Perhaps...

Sounds like a good test for someone... [Big Grin]

Top
#47538 - 2003-11-04 02:36 AM Re: Sanur help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Time to read up on Windows authentication?

IIRC, Windows only sends the hash of the password when authenticating, anyway, not the password itself. The password itself is stored nowhere, not even in the SAM.

IMHO, any install that uses
  • Microsoft Installer technology via GPO
  • Task Scheduler from an admin workstation or scripts scheduled via Task Scheduler
  • scripts that processes install requests and is run via Task Scheduler or as a service (e.g. KSMS)
  • remote execution via WMI or other tools
are secure as they do not require a password stored anywhere. BTW, PSEXEC transmits the password in clear text and is thus susceptible to network sniffing.

[ 04. November 2003, 02:49: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#47539 - 2003-11-04 04:13 PM Re: Sanur help
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Then I agree...Your methods are more secure. The problem is though that none of the options you listed...

quote:

Microsoft Installer technology via GPO
Task Scheduler from an admin workstation or scripts scheduled via Task Scheduler
scripts that processes install requests and is run via Task Scheduler or as a service (e.g. KSMS)
remote execution via WMI or other tools

Will work on NT4 and above without installing something on the client machines.

Top
#47540 - 2003-11-04 04:23 PM Re: Sanur help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
NT 4 will require the 'Offline Browser Pack' of IE5+ installed to support the Task Scheduler.

Windows 2000+ natively supports both GPOs and Task Scheduler.

However, as NT4 is nearing end-of-life I'm not really concerned with that anyway.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org