IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2006, 05:03 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
CMD functions

Can I create a windows account who is in administrator group by using CMD?

creating user?
rebooting machine?

Reply With Quote
  #2  
Old February 17th, 2006, 05:20 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
If I can,

how Can I disable it to be used?

wscript.shell can be used in ASP or PHP by IUSR_....
I want that
only administrator can use wscript.shell other user can't..
how can I do that

Reply With Quote
  #3  
Old February 17th, 2006, 05:36 AM
megumi amatuka megumi amatuka is offline
Contributing User
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jun 2004
Posts: 4,869 megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Months 6 Days 21 h 24 m 42 sec
Reputation Power: 333
(Oo;?(There seems to be as follows: )

1. Use Windows Script Host(WSH)

2. Use NET USER command, in batch.

3. or CSVDE command.

4. or LDIFDE command.

5. or ADDUSERS command.

(^^;?(If you are talking of that server, all commands are unreliable. Yes, even "dir" or "netstat" can tell a lie. You can entrust in nothing. That's a way of it.)

Reply With Quote
  #4  
Old February 17th, 2006, 05:41 AM
aitken325i's Avatar
aitken325i aitken325i is offline
At a NO MA'AM meeting . . . .
Dev Shed God 18th Plane (13500 - 13999 posts)
 
Join Date: Mar 2004
Location: nr Edinburgh, Scotland
Posts: 13,504 aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 10110 Folding Title: Novice Folder
Time spent in forums: 5 Months 2 Weeks 20 h 36 m 50 sec
Reputation Power: 1935
Users can be created by using CMD, think it's something like :
Code:
net user <username> <password> /ADD
When in the Command Prompt, you can find out more on this by typing
Code:
net help user
Although this can be done. I'm not too sure about creating them with Admin privileges as I have never really created accounts in this way.

As to disabling it, you can't disable users from using certain commands in the Command Prompt, only thing you can do is restrict access to it altogether if it is a problem. However, if the script can only be run with admin privileges, then you might not have a problem.

Reply With Quote
  #5  
Old February 17th, 2006, 05:49 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
I tried "net user <username> <password> /ADD"
It worked..

this is about my server's security..
a hacker can create users by using wscript.shell in ASP or PHP or ASP.NET.


for example
he uploads a dll file named HACK.DLL
hack.dll can be registered by using wscript.shell
hack.dll can create users with administrator permissions


and I want to block this

Last edited by pette.n : February 17th, 2006 at 05:53 AM.

Reply With Quote
  #6  
Old February 17th, 2006, 05:51 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
Quote:
Originally Posted by aitken325i
However, if the script can only be run with admin privileges, then you might not have a problem.


you mean
if only admin can use this, you are safe.
Yes but how can I do this safety ?

Reply With Quote
  #7  
Old February 17th, 2006, 06:14 AM
aitken325i's Avatar
aitken325i aitken325i is offline
At a NO MA'AM meeting . . . .
Dev Shed God 18th Plane (13500 - 13999 posts)
 
Join Date: Mar 2004
Location: nr Edinburgh, Scotland
Posts: 13,504 aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)aitken325i User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 10110 Folding Title: Novice Folder
Time spent in forums: 5 Months 2 Weeks 20 h 36 m 50 sec
Reputation Power: 1935
Quote:
Originally Posted by pette.n
Yes but how can I do this safety ?
Do what safety ?

If this is for your server, shouldn't you be more concerned about putting a very good firewall in place so that hacker attempts are futile and you wouldn't need to worry about user create scripts ?

Or, am I coming at this from the wrong angle ?

Reply With Quote
  #8  
Old February 17th, 2006, 06:26 AM
megumi amatuka megumi amatuka is offline
Contributing User
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jun 2004
Posts: 4,869 megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Months 6 Days 21 h 24 m 42 sec
Reputation Power: 333
(^^;?(lol. And it's just a drop in the ocean, though.)

regsvr32 /u hack.dll

Reply With Quote
  #9  
Old February 17th, 2006, 06:27 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
this server has more than 100 hosting customers.
this server is a dedicated server.. I access it via remote connection.
If I use a local firewall I can't access it anymore.
my solution isnt firewall..

I have to give my customers the rights to use server-side-scripting
but there are some holes about windows scripting host.
I have to limit it.

Reply With Quote
  #10  
Old February 17th, 2006, 06:30 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
Quote:
Originally Posted by megumi amatuka
(^^;?(lol. And it's just a drop in the ocean, though.)

regsvr32 /u hack.dll


I gave an example
and I said "for example" read again please..

hack.dll
or
loveme.dll
or
doyouwannaabeer.dll

more and more.

I can't know what is the file name.
but I think I can stop him to register this DLL files by using wscript.shell..

get it?

Last edited by pette.n : February 17th, 2006 at 06:34 AM.

Reply With Quote
  #11  
Old February 17th, 2006, 07:02 AM
megumi amatuka megumi amatuka is offline
Contributing User
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jun 2004
Posts: 4,869 megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level)megumi amatuka User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Months 6 Days 21 h 24 m 42 sec
Reputation Power: 333
(^^;?(I see. I don't think you can stop him so easily, though.)

Similar hack.dll is reported as Trojan maker.

Your case is not rare, root highjacked. Actually there are many articles combatting with crackers. And it usually seems to take a lot of time to expel or improve situation even for experts. There is no easy solution. Long patient observance and procedures are needed. Analyzation of access log before its deletion, and any change on HDD. He prepared much and got your system, but you know nothing about him.

Try netstat -a apart from its effectivity or Ethereal or anything, you must know him well.

Reply With Quote
  #12  
Old February 17th, 2006, 07:28 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
if it was not easy, all hosting firms were hacked.
I believe there is a so easy solution about it.

Reply With Quote
  #13  
Old February 17th, 2006, 07:31 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
I think it is better to move this thread to IIS forum.
wscript.shell is usually used in server-side-scripting.

MOD, could you please move the thread, so I don't need to create new one.

Reply With Quote
  #14  
Old February 17th, 2006, 09:26 AM
pette.n's Avatar
pette.n pette.n is offline
Loser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 398 pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level)pette.n User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 10 h 21 m 2 sec
Reputation Power: 5
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q278/3/19.asp&NoWebContent=1
I hope this is what I need

thank you all friends..
I will tell if he idiot comes again

Reply With Quote