Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT][Pic Heavy] Learning to hack with the command line (CMD) | Start learning here!

Hacking with and learning the command line
When text is italicized, it represent the command syntax.
First steps:

What is the command line, or CMD?

Well, I'll start off by showing you how to get to it.

Either: Hit the icon for it that looks like this: [Image: O058q.png]

Or:
1) Press the Windows/Start Key
2) In the search bar, type in "Run"
3) Click on Run
4) Type in "CMD" and hit enter

This should show up:
[Image: crZIm.png]

Now that you have the terminal running, I am going to show you the commands that are usually available and used.
Note: When there is a need for the syntax of a command, just use this equation and enter it into the terminal:
[Base Command] [Sub-Command] /help


Net Commands

The first set of commands I will show you are the net base commands. These offer a wide range of uses and are more specifically associated with your network and users.

net help - Net help displays all of the sub-commands associated with the net command.
[Image: 5MQZX.png]

net accounts - Net accounts will allow you to manipulate the setting for accounts on your computer.
[Image: ypVr0.png]
What you can do with net accounts:

net accounts /forcelogoff {minutes | No} - Allows for you to set an amount of time that the account may be logged on or you may completely disable this utility.
https://i.imgur.com/l6abe.png

net accounts /minpwlen:{length} - This sets a minimum number of characters that a password may be.
Default: 6 characters. Range: 0-14 characters.
https://i.imgur.com/FCuOW.png

net accounts /maxpwage:{days | UNLIMITED} - Sets the maximum number of days that a password is valid. Unlimited allows for no maximum.
/maxpwage cannot be less than /minpwage.
https://i.imgur.com/9Te46.png

net accounts /minpwage:{days} - Sets the minimum number of days that must pass before a user can change a password.
Default: 0. Range: 0-999.
https://i.imgur.com/LQ6b7.png

net accounts /uniquepw:{number} - Requires that a user's passwords be unique through the specified number of password changes.
Max number: 24.
https://i.imgur.com/uzMZi.png

net accounts /domain - Performs the operation on a domain controller of the current domain. (Didn't really work for me in the picture as I can only run the command through my workstation right now).
https://i.imgur.com/0ATfa.png

net computer
Net computer adds or deletes computers from a domain database. (Windows NT servers only). No pictures as I am not running a server but I'll show you the syntax's.

net computer \\{computer name} /add - Adds the specified computer to the domain.

net computer \\{computer name} /del - Removes the specified computer from the domain.

net config
Net config displays configuration information of the Workstation or Server service. When used without the server or workstation switch, it displays a list of configurable service.

net config {Server | Workstation} - Displays information about the configuration of the server or workstation service.
Server:
[Image: asTRq.png]
Workstation:
[Image: 2nkhJ.png]
net continue
Net continue reactivates a Windows service that has been suspended by the NET PAUSE command.

net continue {service} - Continues the specified service.
[Image: XLOGN.png]

net file
Net file closes a shared file and removes file locks. When used without options, it lists the open files on a server. The listing includes the identification number assigned to an open file, the pathname of the file, the username, and the number of locks on the file.

net file {ID} {/close} - See above
(No picture, I'm not currently running a server)

net localgroup
Net localgroup modifies local groups on computers. When used without options, it displays the local groups on the computer.

net localgroup {groupname} - Views a list of users or global groups in a localgroup. The group name is the name of the local group to add, expand, or delete.
[Image: 9an3P.png]

net localgroup {groupname} /comment:"{text}" - Adds a comment for a new or existing group.
[Image: 6NEk3.png]

net localgroup {groupname} /add - Adds a groupname or username to a localgroup. An account must be established for users or groups added to a localgroup with this command.
[Image: fj3xj.png]

net localgroup {groupname} /delete - Removes a groupname or username from a localgroup.
[Image: hCqBS.png]

net pause - Suspends a Windows service or resource. Pausing a service puts it on hold.

net pause {service} - See above.
[Image: x1WW4.png]

net session
Net session lists or disconnects sessions between the computer and other computers on the network. When used without options, it displays information about all sessions with the computer of current focus. (No pics as I don't have a server running).

net session \\{computer name} - Lists the session information for the named computer.

net session /delete - Ends the session between the local computer and {computername}, and closes all open files on the computer for the session. If {computername} is omitted, all session are ended.

net session /list - Displays information in a list rather than a table.

net share
Net share makes a server's resources available to network users. When used without options, it lists information about all resources being shared on the computer. For each resource, Windows reports the devicename or pathname and a descriptive comment associated with it.

net share - See above.
[Image: Nvu60.png]

net share {Name} - Displays information about the share. Name is the network name of the shared resource.
[Image: mVXD5.png]

To display the rest of the command options (there are a lot), I will show you the path choices instead of explaining each command:
[Image: X67VZ.png]

Will be updating soon.
Took me 3 hours to make this thread, seconds to say thanks.
Looks great so far. :) Will wait for the rest.
nice tutorial brother ..:-D
complete Cmd
Keep it up bro, i have never seen such tutorial on HF before ...Thumb ups
good detailed tutorial ;waiting for the update....
can you make a tutorial about cmd and Windows firewall next time?
thank's.
Amazing Tutorial thanks for sharing :)
Cheers Brandon, great tutorial!
I learnt a lot from this. Thanks a lot.
Nice tutorial! thanks for sharing! :)
looks good... what other commands are there? most of them you can use via any RAT .. anything interesting can be done with cmd?

Thanks
thanks for sharing, great tutorial!!!
Thank You For Sharing !!
Great Tutorial
Just what I was looking for! Bookmarked it
Cool tutorial man. Very good job...
under construction
Thank you, Great tutorial! 👍
Good job man, keep them coming more! !!


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Elite_xApr 13, 2025 04:44 PM 4 571 Apr 13, 2025 04:44 PM
Last Post: SS2580G
by xDRISSxMar 2, 2024 03:57 PM 8 380 Mar 2, 2024 03:57 PM
Last Post: account_
by SIM-587985Sep 11, 2022 10:03 AM 1 396 Sep 11, 2022 10:03 AM
Last Post: SIM-587985