0% found this document useful (0 votes)
80 views

INT242 BY Awadhesh Kumar Shukla

This document provides an introduction to using the Kali Linux operating system. It discusses that Kali is Debian-based and designed for penetration testing and forensics. It then covers using the shell, terminal customization, signals and commands, shortcuts, basic commands like pwd and cd, copying/moving/deleting files, using users and switching between users, and managing user accounts and passwords.

Uploaded by

Suresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

INT242 BY Awadhesh Kumar Shukla

This document provides an introduction to using the Kali Linux operating system. It discusses that Kali is Debian-based and designed for penetration testing and forensics. It then covers using the shell, terminal customization, signals and commands, shortcuts, basic commands like pwd and cd, copying/moving/deleting files, using users and switching between users, and managing user accounts and passwords.

Uploaded by

Suresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Lec1

INT242
BY
Awadhesh Kumar Shukla
Introduction to KALI
 Debian Driven
 Built for Pen-Testing and forensics
 Over 300 tools
 Not suited for non pentester
Shell
 The shell is the layer of programming that
understands and executes the commands a
user enters
 Types of Shell

◦ Root shell (#)


◦ Not-root shell ($)
Terminal customize
 Edit -> Preferences
 Edit-> Preferences-> General
 Edit-> Preferences-> Shortcuts
 Edit-> Preferences-> Profiles
Terminal Signals and commands
 Ctrl+C
 Ctrl+z
 Fg
 Clear
 Exit
Terminal Tips
 TAB- Auto complete
 Shift+PgUp –scrolling up
 Shift+PgDn –scrolling down
 UP Arrow – Go to previous commands
 History- see commands run in the past
Terminal Shortcuts
 Ctrl+r
 Ctrl+a
 Ctrl+e
 Ctrl+k
 Ctrl+y
 Ctrl+l
Basic commands
 PWD
 CD
 MKDIR
 Touch
 Ls –l –a –r –t -rt
 Cat
 Less
 Head –n
 Tail –n
 Df
 locate
Basic commands
 Copy commands
◦ Cp source destination
◦ Cp -i
 Move Commands
◦ Mv source destination
◦ Mv –I
 Delete command
◦ Rmdir : Remove directory
◦ Rm : Remove file
◦ Rm –m : Remove directory and its content
◦ Rm –r –I : Interactive
◦ Rm-rf : Force remove
Root, Root, Root
Play with terminal
 Ctrl+b " — split pane horizontally.
 Ctrl+b % — split pane vertically.
 Ctrl+b arrow key — switch pane.
 Ctrl+b c — (c)reate a new window.
 Ctrl+b n — move to the (n)ext window.
 Ctrl+b p — move to the (p)revious window.
Introduction to users
 Who
 W
 Id
 Su to another user
 Su to root
 Su as root
 Su -$username
 Sudo
 Note: /var/log/auth.log on

Debian).
Practice challanges
 Run a command that displays only your currently logged
on user name.
 Display a list of all logged on users.
Display a list of all logged on users including the
command they are running at this very
moment.
Display your user name and your unique user
identification
Use su to switch to another user account (unless you are
root, you will need the password
of the other account). And get back to the previous
account.
User Management
 /etc/passwd
 Useradd

◦ -m: Forcing the creation of home directory


◦ -d: setting the name of home directory
◦ -c: setting description
 Ex: useradd –m –d /home /awad –c “I love india”
 /etc/default/useradd: conatain some default

user options
 Userdel
 Userdel -r
User Management
 Usermod
 Creating home directories manually

◦ Mkdir /home/awad
◦ Chown laura:laura /home/laura
 /etc/skel/
 Chsh : user can change their login shell using

this command
 Chsh
 Chsh –s /bin/bash or bin/sh or /bin/ksh
Practice Questions
 Create a user account named serena, including a
home directory and a description (or comment) that
reads Serena Williams. Do all this in one single
command.
 Create a user named venus, including home
directory, bash shell, a description that reads
Venus Williams all in one single command.
Change the default login shell for the serena user to
/bin/bash. Verify before and after
you make this change.
Password management
 Passwd
 /etc/shadow
 /etc/login.defs
 Chage : this command can be used to set an:
 -E : expiary date
 -m : set minimum password age
 -M : set maximum password age
 Ex: chage -l

You might also like