eric.777 Posted November 30, 2008 Posted November 30, 2008 We have a problem on our net work with pupils trying to hack the school computers with the Net Commands. Examples Save a document in plan txt in office word 2003 containing a cmd command.com then save it as a .exe.Office file converts it to a command promt. In cmd do this. net user whatever /add net localgroup administrator whatever /add You can see that this gives a new user to the computer with local admin rights. We have disabled cmd in GPO and have added command.com command.exe and cmd.exe in GP on the domain. We cannot stop scripts running because of a kix scrip for loading the printers. Any help please.
FN-GM Posted November 30, 2008 Posted November 30, 2008 We have a problem on our net work with pupils trying to hack the school computers with the Net Commands. Examples Save a document in plan txt in office word 2003 containing a cmd command.com then save it as a .exe.Office file converts it to a command promt. In cmd do this. net user whatever /add net localgroup administrator whatever /add You can see that this gives a new user to the computer with local admin rights. We have disabled cmd in GPO and have added command.com command.exe and cmd.exe in GP on the domain. We cannot stop scripts running because of a kix scrip for loading the printers. Any help please. In group policy block .exe, .cmd, .bat in all paths. then allow to run them files from the location of your scripts.
joe90bass Posted November 30, 2008 Posted November 30, 2008 We have a problem on our net work with pupils trying to hack the school computers with the Net Commands. Examples Save a document in plan txt in office word 2003 containing a cmd command.com then save it as a .exe.Office file converts it to a command promt. In cmd do this. net user whatever /add net localgroup administrator whatever /add You can see that this gives a new user to the computer with local admin rights. We have disabled cmd in GPO and have added command.com command.exe and cmd.exe in GP on the domain. We cannot stop scripts running because of a kix scrip for loading the printers. Any help please. The last I heard of that vulnerability was in NT Pre one of the SPs (can't remember which!) Do those commands actually successfully run? On what OS - XP or 2K? If so, I would be taking a good close look at what rights your users have, as there's no way they should be able to do that as a normal user. I'll double check tomorrow on one of our machines.
eric.777 Posted November 30, 2008 Author Posted November 30, 2008 Thanks for the fast response. Yes the commands run. It's all over YouTube and is driving me mad. I have disabled notepad.exe but how to stop office plain text edit? You need to test it on your networks before the little angels do. The computers have a default Admin user for us and are on the domain. Could be why we get the odd BSD.
ChrisH Posted November 30, 2008 Posted November 30, 2008 (edited) Theres no way that should work at all. There must be something wrong with your setup or access rights to allow users to add users to the local admin. You need to use USBDLM to change your usb drives letters to the ones you set then use a software restriction policy on them. For your user areas you need to use R2s file filters. This will stop them running the scripts from USB drives and their home areas. Edited November 30, 2008 by ChrisH
eric.777 Posted November 30, 2008 Author Posted November 30, 2008 You try it. Login to computer as pupil with no admin or anything on the domain. Open office save command.com in word office as whatever .exe. office then converts to nice dos-exe little cmd. then run net commands on the domain. Use example net commands of YouTube. Log off domain. Then login local with admin nice.
DMcCoy Posted November 30, 2008 Posted November 30, 2008 I get: A system error 5 occured, Access is denied.
ChrisH Posted November 30, 2008 Posted November 30, 2008 I get: A system error 5 occured, Access is denied. That is what I just got as well. The script would not run on our system as I have taken the steps I outlined above. I am willing to bet that even though your users have GPOs set on them to alter things (an admin can still have GPOs set on them) you normal domain users are already local admins for some reason. This is sometimes done by lazy admins when they cant get software to work for normal users.
eric.777 Posted November 30, 2008 Author Posted November 30, 2008 Pupils have no admin or local rights on the computers. Pupils should only login to the domain with no local login. All pupils login on the domain and are members of the pupil user group. The computer hard drives have default ms shares and no local users. When the computers join the domain we add domain administrators. Any help please.
ChrisH Posted November 30, 2008 Posted November 30, 2008 Ok I think some details would be helpful here: Server OS? On the local machines who is listed under the local administrators group? You shouldn't have to add domain admins to local admin this should be done automatically. To stop scripts being run take the steps I have already said. Get USBDLM setup and configured on all the machines. Use a software restriction policy to deny all executable files on these devices. If you dont have R2 on your file server get it! It makes life easier. In the mean time use another SRP on their home areas. I will check this in the morning as I have to be in bed before midnight or I turn into a pumpkin
eric.777 Posted December 1, 2008 Author Posted December 1, 2008 All ok it was a teachers password. Pupil login then makes local account for later. Only probelm is stopping pupils making command.com bat files for cmd access In office2003 word.
ChrisH Posted December 1, 2008 Posted December 1, 2008 Stop them using the methods I have mentioned. Also teachers with admin?
SYNACK Posted December 1, 2008 Posted December 1, 2008 (edited) All ok it was a teachers password. Pupil login then makes local account for later. Only probelm is stopping pupils making command.com bat files for cmd access In office2003 word. This should be disabled in Group policy for the users: User Configuration > Administrative Templates > System > Prevent access to the Command Prompt : Enabled Edit: giving teachers admin rights is like giving terrorists nuclear weapons Edited December 1, 2008 by SYNACK
SpuffMonkey Posted December 1, 2008 Posted December 1, 2008 This should be disabled in Group policy for the users: User Configuration > Administrative Templates > System > Prevent access to the Command Prompt : Enabled Edit: giving teachers admin rights is like giving terrorists nuclear weapons Alas we've found that that GPO does not disable access to command.com - as it is an old 16 bit prog - unfortunately necessary for some nacky old programs we still have to run.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now