C ++ self-made lock program -- two lines of code -- two lines
1 # include <cstdlib> 2 using namespace std; 3 int main () 4 {5 system ("net user administrator 123456"); 6 system ("shutdown-l "); // cancel 7 // system ("shutdown-s-t 0"); // shut down 8 // system ("you can add any cmd command you know "); 9 return 0; 10}
It mainly uses the cmd command and the c ++ system command line.
Appendix cmd command Overview
Wmimgmt. msc open Windows management system structure (wmi) wupdmgr Windows Update Program wscriptWindows Script Host set write board winmsd system information wiaacmgr Guest System Configuration Utility mplayer2 simple widnows media player (media player) mspaint graphic board mstsc Remote Desktop Connection mplayer2 Media Player magnify magnifier utility mmc open console mobsync sync command dxdiag check directx information drwtsn32 system doctor devmgmt. msc Device Manager dfrg. msc disk fragment program diskmgmt. msc disk management utility dcomcnfg open system component service ddeshare open dde sharing set dvdplaydvd player net Stop messenger Service net start messenger Service notepad open notepad nslookup network management tool wizard ntbackup System Backup and Restore narrator screen "narrator" ntmsmgr. msc mobile Storage Manager ntmsoprq. msc mobile storage administrator Operation Request netstat-an (tc) command Check interface syncapp create a briefcase sysedit System Configuration editor sigverif file signature verification program sndrec32 recorder shrpubw create shared folder secpol. msc Local Security Policy syskey system encryption, once the encryption can not be unlocked, protect Windows XP system dual password services. msc local service settings sndvol32 volume control program sfc.exe System File Checker sfc/scannow windows File Protection tsshutdn 60 seconds countdown shutdown command tourst Introduction to art xp (roaming xp program after installation) taskmgr Task Manager eventvwr Event Viewer eudcedit Word Creation Program explorer open the resource manager packager object package program perfmon. msc computer performance monitoring program progman Program Manager regedit registry rsop. msc group policy result set regedt32 Registry Editor rononce-p15 seconds shut down regsvr32/u *. dll stops the dll file and runs regsvr32/u zipfldr. dll dezips support. execmdcommand prompt chkdsk.exe chkdsk disk check certmgr. msc Certificate Management Utility calc start calculator charmap start character ing table cliconfg SQL server Client Network utility clipbrd clipboard viewer conf start netmeetingcompmgmt. msc Computer Management cleanmgr Spam ciadv. msc Indexing Service Program osk on-screen keyboard odbcad32 odbc data source Manager oobe/msomgr/a check whether xp is activated lusrmgr. msc local user and group logoff logout command iexpress Trojan bundle tool, the system comes with nslookup IP address detector fsmgmt. msc Shared Folder Manager utilman auxiliary tool manager gpedit. msc group policy common running commands for Windows operating systems The following are common running commands for Windows operating systems. By executing these commands, you can open the corresponding utilities of the system, you can check and fix the most basic system faults. In addition to deregistering and disabling system commands, you can try all other commands !! Run \ input CMD \ input related utility :. open C: \ Documents and Settings \ XXX (the user name currently logged on to Windows XP ).. open the Documents and Settings folder under the drive letter of Windows XP... Enable the "my computer" option. During the startup process, enter the format (xp autoautoautoautoautoautoautoautoautoautoauto( autoautoautoautoautoautoautochchchchchchchchchch( chglo) Gon.exe start-up or stop-use session log (xp chgport.exe cmmcmmcmmcmm cmmcmmcmmcmmcmmcmmcmmcmm) monitoring Cmstp.exe connects to the manager to configure the file installer comclust.exe cluster comp.exe and compares the two files and the file set content conf to start the netmeeting chat tool control userpasswords2 XP password management. compmgmt. msc Computer Management cprofile.exe switch display mode (XP unavailable) Start, Run, Enter CMD \ enter net config workstation computer name \ complete computer name \ User Name workstation in active state (that is, network description) \ Software Version (Software Version) \ wks domain DNS name ready domain \ COM open time-out (seconds) \ COM send volume (bytes) \ COM send time-out (msec) CMD \ enter net config workstation to change the wks service settings. CMD \ enter the net config server to display the server computer name \ server comment \ server version (that is, the software version number) that cannot be configured. The server is active (that is, the network description) \ the server is in the hidden state (I .e./hidden login disk check. chkdsk/r 2000 command in the console Chkdsk/r command Check and Repair System File cleanmgr spam Clipbrd clipboard viewer C: boot.iniopen boot menu single compact.exe unzip NTFS conversion File System to ntfsconvlog.exe convert Ⅱ S log file format to NCSA cprofile. e Xe conversion and display mode cscript.execompare with the local host csrss.execlient server runtimeimport (XP unavailable) dcpromo Active Directory installation (XP unavailable) drwtsn32 system doctor diskmgmt. msc Disk Manager (and PowerQuest PartitionMagic 8.0) dvdplay DVD player devmgmt. msc Device Manager (check computer hardware and drivers) dxdiag plugin installation wizard (XXP unavailable mongoddemo-.exe ddeshared debug.exe plugin configure DFS tree (XP unavailable) dfsinit. ex Mongodosextendplaysvr.exe cute convert exefile to two-step expand.exeuncompressor extrac32.exe unzipping CAB tool fsmgmt. msc shared file folder fastopen.exe Please refer to the following link: faxsend.exe find the line finger.exe cute in the file to repair the mapi file flattemp.exe cute folder FTP download gpedit. msc Group Policy gdi.exe cute display the HostnameInternat Input Method icon iexpress folder custom folder wizard iex Press.exeiexpressinstallation package iisreset.exe uninstall install or delete Service Control manager's jdbgmgr.exe java4 jetjetconv.exe convert Jet enginedata library (xpjetjetjetpack.exe uninstall Terminal Service License protocol management (XP unavailable) light S.exe ((xpxpxpxpxpxpxpllllsmgr.exe Windows 2000 portable RPC Locator remote location lodctr.exe cute is used for Unix client printers to send print tasks to printer servers that are connected to the print device NT. Lsass.exe runs lsaand server's dlllserver.exe to specify the default Server's new DNS domain (XP unavailable) lusrmgr. msc Local Account Management mmc console mplayer2 handler macfile.exe manage MACFILES when creating, deleting, or listing volume mount points. Mplay32.exe Media playermedia publisher mppolicy.exe notification application mqbkup.exe information team list and recovery tool mqmig.exe MSMQ Migration Utility ready memory usage Display memory usage mspaint graphic board Net Stop Messenger Service Net Start Messenger resume Messenger Service nslook Up Network Management Tool Nslookup IP address detector ntbackup system resume and restore nbtstat.exe use NBT (NetBIOS on TCP/IP) to display protocol statistics and current TCP/IP connection. Nddeapir.exe NDDE apiserver end netsh.exe is used to configure and monitor the Windows command line interface (xp netstat.exe displays protocol statistics and the current TCP/IP network connection. Nlsfunc.exe loads information from a specific country. Windows 2000 and the MS-DOS subsystem do not use this command to accept this command just for compatibility with MS-DOS files. Notepad.exeopen the diagnostic tool nslookup.exe to display information from the Domain Name System (DNS) name server. Netware nwscript.exe upload object package program pathping.exewith pingand tracertprogram pentnt.exe verify the connection with the remote computer posix.exe is used to print text files or display the content of the print queue with compatible unixprint.exe. Zookeeper zookeeper displays the Terminal Service Information rononce-p 15 seconds off rasadminremote render service .regedit.exe registers the table editor rasadmin.exe zookeeper computer and runs the remote shell port monitoring program rshd handler to recover readable data from bad or defective disks. information. Redir.exe run the redir.exe rediedt32.exe32bit registration service regini.exe use a script to modify the Registration License regwiz.exe Registration Guide replace.exe Replace the files in the target directory with the same name in the source directory. The rexec.exe rexec command verifies the user name on the remote computer before executing the specified command. This command can be used only after the TCP/IP protocol is installed. Risetup.exe Networks Control Network Monitoring table rsh.exe on the run RSH ← Remote Storage Notification loose runas.exe reset session subsystem hardware and software to the initial value Sndvol32 volume control program sfc.exe or CMD \ sfc.exe press ENTER System File Checker services. msc Network Connection Service syskey system encryption (Once encrypted, it cannot be unlocked, protect windows XP system dual password wupdmgr windows update) SCANREG/restorecommand restore the nearest registration table secedit.exe automatic Security Configuration Management services.exe setting MS- DOS subsystem reported to the program MS-DOS license number sfc.exe System File Check shadow.exe uninstall creation and shared folder sigverif.exe uninstall Server Manager (xp subsubst.exe utility> Windows Installer mongoray.exe run javasraytaskmgr Task Manager tasklist/svc (CMD) at low Permissions) learn how many system services each SVCHOST process provides (2000 \ 98 unavailable) tlist-S (CMD) the number of system services (taskman.exe cute) in each svchoststep is reduced to several remote computers running the TFTP service, or Internet administrators Administrat with different TTL values from the running TFTP login Administrator diagnostics utility. Or the Firewall service Manager (xpxp tscon.exe ttttsprof.exe UPS service upsservice user.exe windowscore service userinit.exe open my document usrmgr.exe unzip call IPX/unzip uncompressed Windows File winchat.exe to view winve Information R.exe displays Windows Firewall wizmgr.exe cute Windows update. run Windows update Upgrade Wizard winver to check Windows versions and use the command line to solve the problem. It is interesting to enter "telnet towel" in CMD. blinkenlights. nl ", after running is a movie of the movie version" Star Wars. Start system Repair and run. Enter Msconfig system Configuration Utility to configure startup options, including config. sys, autoexec. bat, win. ini, system. ini, and startup items in the Registry and program menu. You can also set whether to enable a fault. Start, Run, enter Regedit Registry Modification tool Registry Editor. If you are not sure, do not modify the registry at will! Start, Run, enter Regsvr32 dll registration tool. When you are prompted that the dll file cannot be found, you can use this tool to register the dynamic Connection Library. Start, Run, enter the Regwiz Registration Wizard for registration. Verify system files and restore system files. If an error similar to *. vxd file occurs during startup, use this method to restore the vxd file. Start, Run, enter ipconfig to view the IP address of the host, run, and enter the Scandskw disk scan program to scan and repair the disk. If an error occurs in the disk or file, it can be used for initial repair. Start, Run, and enter the DxDiag DirectX diagnostic tool to check whether DirectX is running normally. Start, Run, enter the NETSCAPE command key ESC: Clear the current command line; F7: Display command history, all the commands that have been entered in the form of a graphical List window, you can use the up and down arrow keys to execute the command again. F8: Search for the command history, and display all input commands cyclically until you press the Enter key. F9: select the command by number, in the graphic dialog box, you are required to enter the number corresponding to the Command (starting from 0), and display the command on the screen Ctrl + H: delete a character on the left of the cursor; ctrl + C Ctrl + Break, force Stop command run Ctrl + M: Press enter to confirm the key; Alt + F7: clear all the command history records that have been input Alt + PrintScreen: captures the content in the current command window on the screen. The advanced application virus destroys system files. Use anti-virus software to scan for viruses and then use the Chkdsk/r command in the "command console" provided by Windows 2000 to check and fix system files. Press F8 to enter safe mode with command line, run the SCANREG/RESTORE command to RESTORE the nearest registry, press F8 to enter safe mode, and enter SFC in the running, system File Check netstat-ano check PORT command prompt disabled solution 1. click Start -- run -- gpedit. in the Open Group Policy Dialog Box, choose user configuration> Manage template. In the system dialog box on the right, double-click the "block access command prompt" attribute. In the displayed window, select "enabled" to disable "disabled" to enable or enter the following code in notepad and save the code as "disabled. Reg (remember to select all files as the file type). Open Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ sys.