INT242 BY Awadhesh Kumar Shukla
INT242 BY Awadhesh Kumar Shukla
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
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
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