Linux Fundamentals ๐ Part - 1


TASK - 1:
Linux is an operating system such as Mac or Windows. It runs upon phones, cars, and computers. Many other things make it run also.
โกThings we will learn about Linux:
In your own browser, ๐ป try out your first Linux commands now.
In order to locate files ๐ as well as move around, one must learn basic commands.
View how files get searched using simple tricks. ๐ง
TASK - 2:
Linux is Everywhere! ๐, You may not see it, but you probably use Linux every day. Here are some places where Linux runs:
๐ Websites: Google/Facebook servers run Linux.
๐ Cars: Infotainment & dashboards use Linux.
๐ช Stores: Checkout machines & POS systems.
๐ฆ Traffic: Smart signals & sensors.
Flavours of Linux:
Just like Windows has versions (7, 8, 10), Linux also has many versions called โdistrosโ ๐ท๏ธ.
Ubuntu Server can run on systems with only 512MB of RAM!
Popular ones are Ubuntu and Debian.
You can use them for websites or as a regular computer.
TASK - 3:
- For now, press "Start Machine" where you will be able to interact with your own Linux machine within your browser whilst following along with this room:
Task - 4:
- Ubuntu is lightweight and can run on old computers, but sometimes it doesnโt have a GUI. Instead, you use the Terminal ๐ฅ๏ธ a text-only window for typing commands.
At first, the terminal looks a bit scary, but with practice, it gets easy!
Command ๐ฅ๏ธ | Description. |
Echo ๐ข | Output any text that we provide. |
Whoami ๐ค | Find out what user we're currently logged in as! |
Task - 5:
Interacting With the Filesystem:
COMMAND | Full Name |
1) ls | Listing |
2) cd | Change Directory |
3) cat | Concatenate |
4) pwd | Print Working Directory |
- Listing Files(ls):
Type โlsโ and press Enter! ๐. It shows everything in your folder ๐.
Change Directory(cd):
Now that you can see folders with ls ๐, use cd (change directory) to move inside them. For example, type cd Pictures to enter your photos folder ๐ธ. Once inside, use ls again to view its contents ๐ผ๏ธ.
Concatenate(cat):
Use the cat command ๐ฑ - just type cat filename (like cat notes.txt) to display the file's contents right in your terminal ๐. It works for text files, configs, and more! After listing files with ls, pick one and cat it to see inside ๐.
Print Working Directory(pwd):
Your terminal shows your current folder ๐. pwd (print working directory) it prints your **exact location (**like /home/user/Documents).
Task - 6:
- Using Find:
The find command ๐ is incredibly useful for locating files - whether you need a simple search or something more advanced. Let's start with the basics. First, use ls to view your current directories ๐. When you need to find a specific file (like "passwords.txt") but can't remember its location ๐ค, simply use find โ-name passwords.txtโ ๐ต๏ธ. This handy command will search through all folders in your current directory to find that file for you.
- Using Grep:
When dealing with large files like logs ๐, cat isn't efficient - imagine searching 244 entries manually! Instead, use grep ๐ to find specific content fast. For example, to find all visits from IP "81.143.211.90" in a web server's access log:
Task - 7:
SYMBOL/OPERATOR | DESCRIPTION |
1) & | This operator allows you to run commands in the background of your terminal. |
2) && | This operator allows you to combine multiple commands together in one line of your terminal. |
3) > | This operator is a redirector - meaning that we can take the output from a command (such as using cat to output a file) and direct it elsewhere. |
4) ยป | This operator does the same function of the > operator but appends the output rather than replacing (meaning nothing is overwritten). |
Task Completion of Linux Fundamentals Part - 1
Linux Modules ๐ง
Task - 1:
This room is your terminal practice playground ๐ง - Focus on learning! We'll cover essential tools like grep ๐, awk โ๏ธ, sed ๐๏ธ, curl ๐, and more to boost your command-line efficiency. Instead of reading lengthy manuals, you'll learn hands-on with practical examples ๐ก.
Task -2:
- โduโ is a command in Linux which helps you identify what files/directories ๐ are consuming how much space.
Important Flags: -
FLAG | DESCRIPTION |
-a | Will list files as well with the folder. |
-h | Will list the file sizes in human readable format(B,MB,KB,GB) |
\=c | Using this flag will print the total size at the end. Jic you want to find the size of directory you were enumerating |
-d | Flag to specify the depth-ness of a directory you want to view the results for (eg. -d 2) |
--time | To get the results with time stamp of last modified. |
Example:
โdu -a /home/โ - will list every file in the /home/ directory with their sizes in KB.
โdu -a /home/ | grep โ- user will list any file/directory whose name is containing the string "user" in it.
Final Word:
- du --time -d 1
Task - 3:
FLAGS | DESCRIPTION |
-R | Does a recursive grep search for the files inside the folders (if found in the specified path for pattern search; else grep won't traverse directory for searching the pattern you specify) |
-h | If you're grepping recursively in a directory, this flag disables the prefixing of filenames in the results. |
-c | This flag won't list you the pattern only list an integer value, that how many times the pattern was found in the file/folder. |
-i | I prefer to use this flag most of the time; this is what specifies grep to search for the PATTERN while IGNORING the case |
-l | will only list the filename instead of pattern found in it. |
-n | It will list the lines with their line number in the file containing the pattern. |
-v | This flag prints all the lines that are NOT containing the pattern. |
-E | This flag we already read above... will consider the PATTERN as a regular expression to find the matching strings. |
-e | The official documentation says, it can be used to specify multiple patterns and if any string matches with the pattern(s) it will list it. |
- grep -E functions same as egrep and grep -F functions same as fgrep.
Task - 4:
Youโve used grep ๐ now things get more powerful. String manipulation (strops) lets you slice โ๏ธ, filter ๐งน, and transform ๐ text like a pro.
Tools for the string manipulation:
tr ๐ โ Swap/delete characters. (Example: Change a-z โ A-Z in seconds โฑ๏ธ)
awk ๐ฆ โ Text processing powerhouse. (Example: Print column #2 from a CSV ๐)
sed โ๏ธ โ Edit text on the fly. (Example: Replace "error" with "fixed" globally ๐ง)
xargs ๐๏ธ โ Turn text into command fuel.
Other Commands :
sort ๐ โ Alphabetize chaos.
uniq ๐ง โ Nuke duplicates.
Task - 5:
FLAGS | DESCRIPTION | |
-d | To delete a given set of characters. | |
-t | To concat source set with destination set(destination set comes first; t stands for truncate). | |
-s | To replace the source set with the destination set(s stands for squeeze). | |
-c | This is the REVERSE card in this game, for eg. If you specify -c with -d to delete a set of characters then it will delete the rest of the characters leaving the source set which we specified (c stands for complement; as in doing reverse of something). |
Example : "cat file.txt | tr -s '[:lower:]' '[:upper:]โ โ
- โtr --helpโ command Helps in the various commands.
Task - 6:
Syntax: awk [flags] [select pattern/find(sort)/commands] [input file]
Awk is acripting language used for manipulating data ๐and generating reports. The awk command programming language requires no compiling, ๐ก and allows the user to use variables, numeric functions, string functions, and logical operators."
Important Flags
FLAGS | DESCRIPTION |
-F | With this flag you can specify FIELD SEPARATOR (FS), and thus don't need to use the BEGIN rule |
-v | Can be used to specify variables (like we did in BEGIN{OFS=":"} |
-D | You can debug your. awk scripts specifying this flag(awk -D script.awk) |
-o | To specify the output file (if no name is given after the flag, the output is defaulted to (awkprof.out) |
- Using AWK:
To simply print a file with awk.
To search for a pattern inside a file you enclose the pattern in forward slashes /pattern/ . For instance, if I want to know who all plays CTF competitions the command should be like: โ awk '/ctf/' file.txtโ.
- Built-In variables in AWK:
Built-in variables include field variables ($1, $2, $3 .. $n). These field variables are used to specify a piece of data (. If I run โawk '{print $1 $3}' file.txt โ. it will list me the words that are at 1st and 3rd fields.
More on variables":
NR: (Number Record) is the variable that keeps count of the rows after each line's execution... You can use NR command to number the lines (awk '{print NR,$0}' file.txt). Note that awk considers rows as records.
FS: (Field Separator) is the variable to set in case you want to define the field for input stream. The field separation can be altered to whatever you want while specifying the pattern. FS can be defined to another character(s)(yea, can be plural) at the BEGIN {command}.
Ex:- โawk "BEGIN {FS='o'} {print $1,$3} END{print 'Total Rows=',NR}"
- RS: (Record Separator): By default, it separate rows with '\n'.
- OFS: (Output Field Separator) You must have gathered some idea by the full form, it is to specify a delimeter while outputing.
- ORS: (Output Record Separator)
Task - 7:
The sed life: There are endless ways of using sed.
sed -e '1,3 s/john/JOHN/g' file.txt
1,3 = Only lines 1 through 3 ๐
s = Substitute command ๐
john = Text to find ๐
JOHN = Replacement text โ๏ธ
g = Replace ALL matches (not just first) ๐ฅ
Syntax: sed [flags] [pattern/script] [input file]
Important Flags:
FLAGS | DESCRIPTION |
-e | To add a script/command that needs to be executed with the pattern/script(on searching for pattern). |
-f | Specify the file containing string pattern. |
-E | Use extended regular expressions. |
-n | Suppress the automatic printing or pattern spacing. |
Modes/Commands:
COMMANDS | DESCRIPTION |
S | (Most used) Substitute mode (find and replace mode) |
Y | Works same as substitution; the only difference is, it works on individual bytes in the string provided (this mode takes no arguments/conditions) |
Args:
FLAGS/ARGS | DESCRIPTION |
/g | globally (any pattern change will be affected globally, i.e. throughout the text; generally, works with s mode). |
/i | To make the pattern search case-insensitive (can be combined with other flags). |
/d | To delete the pattern found (Deletes the whole line; takes no parameter like conditions/modes/to-be-replaced string) |
/p | prints the matching pattern (a duplicate will occur in output if not suppressed with -n flag.). |
/1,/2,/3../n | To perform an operation on an nth occurrence in a line (works with s mode). |
- Range of lines:
- Viewing the entire file except a given range
- Viewing multiple ranges of lines inside a file
- To start searching from nth pattern occurrence in a line you can use combination of /g with /1,/2,/3.
- If you have log files to view which have trailing white spaces, and it is hard to read them, then you can fix that using regex.
Task - 8:
- xargs turns text into command arguments! ๐ฏ Pipe input to it (like echo "a b c" | xargs mkdir โก๏ธ creates folders a, b, c ๐). Handles spaces/splitting automatically โจ. Use -n to limit args per call. CLI magic! โก
FLAGS | DESCRIPTION |
-0 | Will terminate the arguments with null character (helps to handle spaces in the argument) |
-a file | This option allows xargs to read item from a file |
-d delimiter | To specify the delimiter to be used when differentiating arguments in stdin |
-L int | Specifies max number non-blank inputs per command line. |
-s int | Consider this as a buffer size that you allocate while running xargs, it sets the max-chars for the command, which includes its initial arguments and terminating nulls as well. (You won't be using this most of the times but it's good to know). Default size is around 128kB (if not specified). |
-x | This flag will exit the command execution if the size specified is exceeded. (For security purposes.) |
-E str | This is to specify the end-of-file string (You can use this in case you are reading arguments from a file) |
-l str | (Capital i) Used to replace str occurrence in arguments with the one passed via stdin(More like creating a variable to use later) |
-p | prompt the user before running any command as a token of confirmation. |
-r | If the standard input is blank (i.e. no arguments passed) then it won't run the command. |
-n int | This specifies the limit of max-args to be taken from command input at once. After the max-args limit is reached, it will pass the rest arguments into a new command line with the same flags issued to the previously ran command. (More like a looping) |
-t | verbose; (Print the command before running it).Note: This won't ask for a prompt |
- What if we want to run multiple command with xargs in one line.
- You can use xargs with conjunction to find command to enhance the search results.
Note: The find command prints results to standard output by default, so the -print option is normally not needed, but -print0 separates the filenames with a \0 (NULL) byte so that names containing spaces or newlines can be interpreted correctly.
- You can use xargs command to grep a text from any file in any directory meeting a specific pattern/criteria.
Task - 9:
Uniq Command:
The โuniqโ command filters out duplicate lines from a file or stdin, but it only works on adjacent duplicates. To effectively use it, first sort the lines. This combo reduces clutter and simplifies searching! ๐โจ
sort file.txt | uniq
Sort Command:
The sort command organizes lines alphabetically or numerically with ease. Simply pipe your stdin into it, and it will handle the sorting for you! ๐โจ
Important Flags for Uniq:
FLAGS | DESCRIPTION |
-c | To count the occurrences of every line in file or stdin |
-d | Will only print the lines that are repeated, not the one which are unique |
-i | Ignores case(Default is case-sensitive) |
-u | Will only print lines that are already uniq. |
Important Flags for Sort:
FLAGS | DESCRIPTION |
-r | Sorts in reverse order |
-c | This flag is used to check whether the file is already sorted or not(If not, it will list, where the disorder started) |
-u | To sort and removes duplicate lines(does work same as stdin redirected into uniq) |
-o save.txt | To save into a output file |
sort command, as the name suggests sorts the lines alphabetically and numerically, automatically. All you got to do is pipe the stdin into sort command.
Task - 10:
cURL (short for "crawl URL") fetches webpage data in raw format, letting you perform browser tasks in the terminal. ๐ฅ๏ธ.You can't save cat pictures directly from Google, but with some grepping, you can! ๐ฑUse cURL to download large files or create offline copies easily. Just curl the URL and go! ๐๐
Syntax: curl https://google.com/
Important Flags:
FLAGS | DESCRIPTION |
-# | Will display a progress meter for you to know how much the download has progressed.(or use --silent flag for a silent crawl) |
-o | Saves the file downloaded with the name given following the flag. |
-O | Saves the file with the name it was saved on the server. |
-c - | This flag can resume your broken download without specifying an offset. |
--limit-rate | Limits the download/upload rate to somewhere near the specified range (Units in 100K,100M,100G) |
-u | Provides user authentication (Format: -u user:password) |
-T | Helps in uploading the file to some server(In our case php-reverse-shell) |
-x | If you have to view the page through a PROXY. You can specify the proxy server with this flag. (-x proxy.server.com -u user:password(Authentication for proxy server)) |
-I | (Caps i) Queries the header and not the webpage. |
-A | You can specify user agent to make request to the server |
-L | Tells curl to follow redirects |
-b | This flag allows you to specify cookies while making a curl request(Cookie should be in the format "NAME1=VALUE1;NAME2=VALUE2") |
-d | This flag can be used to POST data to the server(generally used for posting form data). |
-X | To specify the HTTP method on the URL. (GET,POST,TRACE,OPTIONS) |
- Continuing a download:
- Saving the file with the name it was saved on the server.
Task - 11:
Syntax: โwget protocol://url.com/ โ
Important Flags:
FLAGS | DESCRIPTION |
-b | To background the downloading process |
-c | To continue to the partially downloaded file (It will look for the partially downloaded file in the directory and starts appending; takes no argument) |
-t int | To specify retries to the URL |
-O download.txt | To specify the output name of downloaded file |
-o file | To overwrite the logs into another file |
-a file | To append the logs into already existing file without deleting previous contents |
-i file | Read the list of URLs from a file. |
--user=username | To give a login username(Use --ftp-user and --http-user if doesn't work) |
--password=password | To give a login password( Use --ftp-password and --http-password if doesn't work) |
--ask-password | Ask for a password prompt if a login is necessary. (I recommend using this flag instead of --password because there are chances that password might start with $ or something else that can be interpreted as something else in your terminal) |
--limit-rate=10k | Similarly to curl(supports k and m notation for kB and mB respectively) |
-w=<int> | This is to specify the waiting time before the retrieval from a URL.(Takes time in seconds) |
-T=<int> | Timeout the retrieval after a specified amount of time.(Takes time in seconds) |
-N | Enables timestamping |
-U | To specify the user-agent while downloading the file |
- Downloading a file with different name
- specifying logfile as log.txt with timestamping enabled
Task - 12:
โxxdโ is a handy tool for creating and reversing hexdumps. ๐ป๐ It's great for handling hex strings, whether you're into CTFs or automating JWT bypasses. Use it with files or pipe input directly! โก๏ธ๐ ๏ธ
Important Flags:
FLAG | DESCRIPTION |
-b | will give binary representation instead of hexdump |
-E | Change the character encoding in the right hand column from ASCII to EBCDIC (Feel free to leave this flag if you don't know about BCD notation) |
-c int | Sets the number of bytes to be represented in one row. (i.e. setting the column size in bytes; Default to 16) |
-g | This flag is to set how many bytes/octets should be in a group i.e. separated by a whitespace (default to 2 bytes; Set -g0 if no space is needed). |
-i | To output the hexdump in C include format ('0xff' integers) |
-l | Specify the length of output(if the string is bigger than the length specified, hex of the rest of the string will not be printed) |
-p | Second most used flag; Converts the string passed into plain hexdump style(continuous string of hex bytes) |
-r | Most used flag, will revert the hexdump to binary(Interpreted as plain text). |
-u | Use uppercase hex letters(default is lower case) |
- Use of -E flag (For curious minds)
- Output in binary and C include format
- Specifying a length
- Seeking an offset
- Seeking at offset from the end of the file.
- here is a difference between -s +offset and -s offset while seeking through stdin.
Task -13:
GPG & Encryption Commands ๐:
An open-source encryption tool, different from PGP (Pretty Good Privacy). GPG uses AES by default.
Tar Command ๐ฆ:
Use tar for encrypting/decrypting gzip or bzip archives. Check the man page for details: man tar.
ID/PWD/UNAME Commands ๐: Essential commands for user info after gaining shell access.
PS/KILL Commands โ๏ธ: List and kill processes using PID. Learn more about โpsโhere.
Netstat Command ๐: Lists network activity, open ports, and connections. An alternative is the ss command for real-time port activity.
Less/More Commands ๐
More: Older command with limited backward scrolling.
Less: Improved version with better navigation and search options.
Most: Another alternative, install with sudo apt install most.
Diff Command ๐:
pares two files byte-by-byte. For line-by-line comparison, use the comm command.
- base64 command
- tee command
- file/stat commands
Export Command ๐:
Use the export command to set environment variables for your shell session.
Reset Command ๐:
If your terminal is acting up, just type reset to restore it to normal without closing the shell.
systemctl/Service Command โ๏ธ:
Service Command: Initializes services in /etc/init.d without major system changes. Systemctl: A more powerful command for managing services with systemd, but be cautious as it affects system settings.
Linux Modules Task Completion :
Windows Fundamentals 1
Task - 1:
Task - 2:
The Evolution of Windows OS ๐ฅ๏ธ๐ช Since its launch in 1985, Windows has ruled homes and businesses but also attracted hackers ๐ฑโ๐ป.
Windows XP was loved โค๏ธ, but Windows Vista struggled and was quickly replaced. When XP support ended, many rushed to Windows 7, causing a compatibility scramble โณโ๏ธ.
After Windows 7, Windows 8.x had a short run, then came the solid Windows 10. Now, Windows 11 is here with Home and Pro editions, bringing new features and better security ๐โจ.
For servers, the latest is Windows Server 2025 ๐ฅ๏ธ๐ก๏ธ. Microsoft keeps improving despite criticism.
Note: The attached VM uses Windows Server 2019 Standard ๐ฅ๏ธ.
Update: Windows 10 support runs until Oct 14, 2025, ๐ , and Windows 11 launched Oct 5, 2021 ๐.
Stay updated with Windows! ๐
Task - 3:
Exploring the Windows 10 Desktop ๐ฅ๏ธโจ
The Windows Desktop, also known as the graphical user interface (GUI), is your welcome screen after logging into a Windows 10 machine. First, youโll encounter the login screen, where you enter your username and password ๐.
Key Components of the Windows Desktop:
The Desktop: This is your workspace, filled with shortcuts to programs, folders, and files. You can organize these icons or let them scatter randomly for quick access. Right-clicking on the desktop opens a menu to change icon sizes, arrange them, or personalize your wallpaper ๐จ.
The Start Menu: Accessed by clicking the Windows logo, the Start Menu provides shortcuts to apps, files, and settings. Itโs divided into sections for quick actions, recently added apps, and installed programs. You can pin your favorite apps for easy access ๐.
The Taskbar: This is where all your open apps appear. Hovering over an icon shows a preview, helping you find the right window. You can customize the taskbar by right-clicking to enable or disable components ๐ ๏ธ.
The Notification Area: Located at the bottom right, this area displays the date, time, and icons for volume and network status. You can customize which icons appear here through Taskbar settings โฐ๐.
With these features, Windows 10 offers a user-friendly experience, making it easy to navigate and customize your desktop environment. ๐
Task - 4:
Understanding NTFS in Windows ๐ฅ๏ธ๐
The modern Windows file system is NTFS (New Technology File System), which replaced older systems like FAT16/FAT32 and HPFS. While FAT is still common in USB drives and MicroSD cards, NTFS is the go-to for Windows installations.
Key Features of NTFS:
Journaling: Automatically repairs files in case of failure using a log file ๐.
File Size Support: Handles files larger than 4GB ๐.
Permissions: Set specific access rights for files and folders,
including: Full control Modify Read & Execute List folder contents Read Write ๐ To check your drive's file system, right-click the C drive and select Properties.
Alternate Data Streams (ADS) ๐ NTFS allows files to have multiple data streams through ADS. While Windows Explorer doesnโt show these, you can use PowerShell to view them. ADS can be used for both legitimate purposes and malicious activities, like hiding malware.
Task - 5:
The Windows Folder: C:\Windows ๐๏ธ๐ป
The Windows folder (C:\Windows) is where the Windows operating system is stored, but it doesn't have to be on the C drive. It can exist on any drive or even in a different folder.
Environment Variables ๐ The system environment variable for the Windows directory is %windir%. Environment variables store important information about the operating system, such as paths, processor details, and temporary folder locations.
Inside the Windows folder, you'll find several important subfolders, including System32.
The System32 Folder โ ๏ธ The System32 folder contains critical files essential for the OS to function. Be very careful when interacting with this folder, as deleting files here can make Windows inoperable.
Many tools you'll learn about in the Windows Fundamentals series are located in the System32 folder.
Task - 6:
User Accounts in Windows: Administrator vs. Standard User ๐ค๐
In a typical Windows system, user accounts can be either Administrator or Standard User. The type of account determines what actions the user can perform.
Account Types:
Administrator: Can make system changes, add or delete users, modify settings, and more.
Standard User: Can only modify personal files and folders, with no permission to install programs or make system-level changes.
You are currently logged in as an Administrator. To view existing user accounts, click the Start Menu and type "Other User" to access System Settings > Other users.
Managing User Accounts โ๏ธ: As an Administrator, you can add users. Standard Users wonโt see this option. Clicking on a local user account will show options like Change account type and Remove.
When a new user logs in for the first time, their profile is created in C:\Users (e.g., C:\Users\Max). During this process, messages like "User Profile Service" will appear on the login screen. Each user profile includes standard folders such as:
Desktop Documents Downloads Music Pictures Local User and Group Management ๐ ๏ธ For more detailed management, right-click the Start Menu, select Run, and type โlusrmgr.mscโ. This opens Local User and Group Management, where you can see Users and Groups.
Task - 7:
What is User Account Control (UAC)? ๐ฅ๏ธ๐ก๏ธ
Many Windows users are logged in as local administrators, which means they can change system settings. But running with full admin rights all the time is risky because malware can easily infect the system.
UAC helps protect your PC by asking permission when a program needs higher privileges.
How UAC Works ๐?
When you log in as an administrator, your session runs with normal rights by default.
If a program wants to make big changes (like install software), UAC shows a prompt asking for permission.
This prompt appears with a shield icon on the program.
Important to Know โ ๏ธ
The built-in administrator account skips UAC prompts. Standard users see the shield icon and must enter admin credentials to proceed.
Try It Yourself ๐จโ๐ป Log in as a standard user and try to install a program. Youโll see the shield icon and get a UAC prompt asking for the admin password. If you donโt enter it, the install wonโt start.
UAC keeps your PC safer by making sure you agree before important changes happen! ๐โจ
Task - 8:
Windows Settings vs Control Panel ๐ฅ๏ธโ๏ธ
Windows has two main places to change system settings:
Settings Menu: Newer and easier to use, found in Windows 8 and 10.
Control Panel: Older, with more advanced options. How to Access ๐๏ธ Both can be opened from the Start Menu.
Quick Example ๐ง
Go to Settings > Network & Internet > Change adapter options.
It takes you to the Control Panel for more options.
Tips ๐ If unsure, just search for what you want (like โwallpaperโ) in the Start Menu. It will help you open the right place.
Task - 9:
Exploring Task Manager in Windows ๐ฅ๏ธ๐
The Task Manager is a powerful tool that shows you what applications and processes are currently running on your system. It also provides insights into CPU and RAM usage under the Performance tab.
How to Access Task Manager ๐๏ธ
Right-click the taskbar to open Task Manager.
Views in Task Manager ๐ Simple View: Initially opens with limited information.
More Details: Click this to expand and see more data about running processes. For a deeper dive into Task Manager, check out the related blog post.
Windows Fundamentals 1 Task:
Windows Fundamentals 2
Task - 1:
Machine IP: MACHINE_IP
User: administrator
Password: letmein123!
Task - 2:
System Configuration Utility (MSConfig) in Windows ๐ ๏ธ๐ง
The System Configuration utility (MSConfig) is designed for advanced troubleshooting, primarily to help diagnose startup issues.
How to Access MSConfig ๐๏ธ
You can launch MSConfig from the Start Menu. Note that you need local administrator rights to open it.
Tabs in MSConfig ๐ MSConfig has five tabs:
General: Choose how Windows loads (Normal, Diagnostic, or Selective).
Boot: Set various boot options for the operating system.
Services: Lists all services, whether running or stopped. Services run in the background. Startup: Not very useful in some VMs; Microsoft recommends using Task Manager for managing startup items.
Tools: Contains various utilities to further configure the operating system, with descriptions for each tool. Running Tools ๐ ๏ธ In the Tools tab, you can launch utilities by using the command in the run prompt, command prompt, or by clicking the Launch button.
Task 3:
User Account Control (UAC) in MSConfig ๐ก๏ธ
In the System Configuration panel, you can adjust User Account Control (UAC) settings, which were discussed in detail in Windows Fundamentals 1.
Adjusting UAC Settings โ๏ธ
You can change UAC settings or turn them off (not recommended).
Use the slider to see how different settings affect UAC.
Task - 4:
Computer Management (compmgmt) ๐ฅ๏ธ๐ง Sections:
System Tools Storage Services & Applications System Tools ๐
Task Scheduler: Automate tasks (run at login, schedule, etc.).
Event Viewer: See system events to troubleshoot.
Shared Folders: View and manage shared files and users.
Local Users & Groups: Manage users and groups.
Performance Monitor: Check system performance.
Device Manager: Manage hardware devices. Storage ๐พ
Disk Management: Manage drives, partitions, and letters.
Services & Apps โ๏ธ
Manage running services and view details.
WMI Control: Manage Windows system info (uses PowerShell now).
Task - 5:
System Information Tool (msinfo32) ๐ฅ๏ธ
โWhat is msinfo32?
Windows has a tool called System Information (msinfo32) that shows detailed info about your computerโs hardware, components, and software environment.
๐๏ธMain Sections
Hardware Resources: Advanced info about your hardware.
Components: Info on devices like your display or keyboard.
Software Environment: OS software info and environment variables.
๐ ๏ธEnvironment Variables
They store important system info, like where Windows is installed or the number of processors. You can also find them via Control Panel or Settings.
๐Try Searching!
At the bottom of msinfo32, use the search bar. Try searching for IP address under Components to see your network info.
Task - 6:
Discovering Resource Monitor (resmon) ๐ฅ๏ธ
What is Resource Monitor? ๐ค
Resource Monitor is a tool that shows how your computer is using resources like CPU, memory, disk, and network. It helps you see which programs are using these resources and can help you fix issues if something is not working right. ๐ ๏ธ
Key Sections in Resource Monitor ๐
In the Overview tab, youโll find four main sections:
CPU ๐ฅ๏ธ: Shows how much processing power is being used.
Disk ๐พ: Displays disk usage and activity.
Network ๐: Shows network activity and usage. Memory
๐ง : Displays how memory is being used. Each section has its own tab at the top for more details!
Real-Time Graphs ๐ On the right side, Resource Monitor has real-time graphs that show how your resources are being used right now. This helps you see whatโs happening at a glance.
Note: What you see in Resource Monitor may look different from examples, as it depends on your computer's activity.
Task - 7:
Introduction to Command Prompt (cmd) ๐ฅ๏ธ
What is Command Prompt? ๐ค
The Command Prompt is a tool that lets you type commands to interact with your computer. Before graphical interfaces (like Windows), this was the main way to use a computer. Now, you can still use it for quick tasks! ๐ ๏ธ
Easy Commands to Try ๐
Here are a couple of easy commands:
hostname: This shows your computer's name.
whoami: This tells you the name of the user currently logged in.
Helpful Commands for Troubleshooting ๐ง
Here are some commands that can help you fix issues:
- ipconfig: This shows your network settings. To get help on any command, just add /?. For example, to see help for ipconfig, type:
1ipconfig
๐งน To clear the Command Prompt screen, type:
cls
- Another useful command is netstat, which shows your network connections. You can run it by itself or add options like -a to see more details.
Managing Network Resources ๐
The net command helps you manage network settings. If you type net by itself, it will show you what you can do. To get help for a specific part, use:
1 net help [sub-command]
example:
1 net help user
Task - 8:
What is the Windows Registry? ๐๏ธ
The Windows Registry is a database that stores important settings for your computer. It helps Windows work properly. ๐
Whatโs Inside? ๐
The registry contains:
User profiles Installed apps Folder and icon settings Hardware info Used ports Important Note
โ ๏ธ Warning: Only advanced users should change the registry, as it can affect your computer.
How to Access It ๐ฅ๏ธ Use the Registry Editor (regedit) to view or edit the registry.
Windows Fundamentals 2 Task Completion:
OverTheWire Bandit ๐ฎ
1๏ธโฃ Level 0 โ Level 1
Log in with: ssh
bandit0@bandit.labs.overthewire.org
-p 2220
Find the password for bandit1 in the file readme
in your home directory:cat readme
2๏ธโฃ Level 1 โ 2
The password for the next level is stored in a file called - located in the home directory.
cat readme
3๏ธโฃ Level 2 โ 3
The password f is stored in a file called spaces in this filename located in the home directory.
cat spaces\ in\ this\ filename
4๏ธโฃ Level 3 โ 4
The password is stored in a hidden file .cat ...Hiding-From-You
5๏ธโฃ Level 4 โ 5
The password is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the โresetโ command.
find . -type f | xargs file
6๏ธโฃ Level 5 โ 6
The password is stored in a file somewhere under the inhere directory and has all of the following properties:
human-readable
1033 bytes in size
not executable
find . -type f -size 1033c ! -executable
7๏ธโฃ Level 6 โ 7
The password is stored somewhere on the server and has all of the following properties:
owned by user bandit7
owned by group bandit6
33 bytes in size
find / -type f -user bandit7 -group bandit6 -size 33c
8๏ธโฃ Level 7 โ 8
Password stored in data.txt
, next to the word โmillionthโ
Using String to find the password beside โmillionthโ.strings data.txt | grep โmillionthโ
9๏ธโฃ Level 8 โ 9
The password is stored in the file data.txt and is the only line of text that occurs only oncesort data.txt | uniq -c
๐ Level 9 โ 10
Use the command strings
to search password stored in the file data.txt in one of the few human-readable strings, preceded by several โ=โ characters.strings data.txt | grep โ=โ
Subscribe to my newsletter
Read articles from V. Leela directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
