Thursday, 3 September 2009

Command Promt Codes

These are a few command prompt codes that you may find useful, they should work on various versions of windows, although you may have to be administrator to perform some of these codes, but you should be able to obtain the "secret" admin account and apply tour own password using these codes.

Firstly you must open command prompt, you can do this by opening the start menu or by choosing run and typing in cmd.

To change the colour of the text: The colour is defined by two digits, the first is the background and the second is the text.

be careful though, if you put two digits in like white on light red the colour command sets ERROR level to 1.

each digit can be any of the following values: you must type color then the no. code
example: color 0a then press enter.

0: Black 8: Gray
1: Blue 9: Light blue
2: Green a: Light green
3: Aqua b: Light aqua
4: Red c: Light red
5 Purple d: Light purple
6 Yellow e: Light yellow
7 White f: Bright white
Example: color 5f

To clear the screen: cls


Activate "secret" administrator account:
net user administrator active:yes (or no)


Display all users on the system:
net user


Display various groups on the system:
net localgroup


To add or delete accounts:
net user (name) /add (or delete)



Change passwords of any account on the system:
net user (name) *


Become administrator:
net local group administrators (name) /add



find a websites I.P adress:
ping (website.com or ip adress) - ping will also show if the computer is online.

or

tracert (website.com or ip adress)- also shows all the routers that the packets go through to get to the website and back to you.



Delete a file:
del filename.txt then enter dir and hit enter


Delete more than one file:
del "filename1.txt" "filename2.txt" - must use " if its more that one word


Delete a folder:
rmdir foldername - hit enter then type dir and hit enter to confirm


Delete programs: cd %programfiles% then type dir /p and hit enter to bring up a list of directories, find the right one you want to delete and then type rd /s "directoryname"

Delete application data: (files that may be accosiated with deleted programs)

cd%appdata%, and follow same process as above.

Configure your IP, subnet mask and gateway. (so hackers cant see your IP):

ipconfig

Bring up net options:

net

Use the options:

net (option)

WARNING
it is very hard to retrieve deleted programs so use caution when doing this.





==============DO NOT PUT BRACKETS IN================






(I am in no way resposible for any consequenses you may or may not occour from using this information, if your computer turns into a robot and slashes your eyes out, its not my fault.)


No comments:

Post a Comment