2.15 LAB: Artwork label (modules) Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "None" and the years of birth and death to 0. Define the Artwork class in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "None", the year created to 0, and the artist to use the Artist default constructor parameter values. Add an import statement to import the Artist class. Add import statements to main.py to import the Artist and Artwork classes. Ex: If the input is: Pablo Picasso 1881 1973 Three Musicians 1921 the output is: Artist: Pablo Picasso (1881-1973) Title: Three Musicians, 1921 If the input is: Brice Marden 1938 -1 Distant Muses 2000 the output is: Artist: Brice Marden, born 1938 Title: Distant Muses, 2000
2.15 LAB: Artwork label (modules) Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "None" and the years of birth and death to 0. Define the Artwork class in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "None", the year created to 0, and the artist to use the Artist default constructor parameter values. Add an import statement to import the Artist class. Add import statements to main.py to import the Artist and Artwork classes. Ex: If the input is: Pablo Picasso 1881 1973 Three Musicians 1921 the output is: Artist: Pablo Picasso (1881-1973) Title: Three Musicians, 1921 If the input is: Brice Marden 1938 -1 Distant Muses 2000 the output is: Artist: Brice Marden, born 1938 Title: Distant Muses, 2000
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
2.15 LAB: Artwork label (modules)
Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "None" and the years of birth and death to 0.
Define the Artwork class in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "None", the year created to 0, and the artist to use the Artist default constructor parameter values. Add an import statement to import the Artist class.
Add import statements to main.py to import the Artist and Artwork classes.
Ex: If the input is:
Pablo Picasso 1881 1973 Three Musicians 1921the output is:
Artist: Pablo Picasso (1881-1973) Title: Three Musicians, 1921If the input is:
Brice Marden 1938 -1 Distant Muses 2000the output is:
Artist: Brice Marden, born 1938 Title: Distant Muses, 2000![entry level cyber
* Home
Content
zy Section 3.13 - CYE X
O ITS128 Fall 2020
G 3.13 LAB: Extracti X
b My Questions | b
[Solved] 13LAB: E X
+
i learn.zybooks.com/zybook/CYB_135_54915392/chapter/3/section/13?content_resource_id=62352403
= zyBooks My library > CYB/135: Object-Oriented Security Scripting home > 3.13: LAB: Extracting Passwords (files and lists)
E zyBooks catalog
? Help/FAQ
Kenneth Schultz -
3.13 LAB: Extracting Passwords (files and lists)
The Linux operating system is a very popular server OS. A network administrator has to protect the login/password files stored on the
servers. In Linux there are two important files:
/etc/passwd
And it contains rows that look like this:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
userl:x:15:51:User One:/home/userl:nologin
user2:x:15:51:User One:/home/userl:nologin
user3:x:15:51:User One :/home/userl:nologin
This file contains login information. It's a list of the server's accounts that has userID, groupID, home directory, shell and more info.
And the second file /etc/shadow, contains rows that look like this:
root:$1$TDQFedzX$.kv51AjM.FInu0lrHldY30:15045:0:99999:7:::
bin:*:14195:0:99999:7:::
daemon:*:14195:0:99999:7:::
adm: *:14195:0:99999:7:::
ftp:*:14195:0:99999:7:::
userl:$1$sSTPXdzX$.kv51AjM.FInu0lrHldY30:15045:0:99999:7:::
userl:44##$TDQFedzX$.Pxp39484.FInu0lrHldY30:15045:0:99999:7:::
userl:&TXlsifhQMinXX@.YUlppxp0177:15045:0:99999:7:::
3:22 AM
O Type here to search
77°F Cloudy
9/17/2021](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7ef9d07b-5934-4723-aca6-faf08a622511%2F83be521a-c413-46fa-8624-7afa4b6bb8bd%2Finjirsm_processed.png&w=3840&q=75)
Transcribed Image Text:entry level cyber
* Home
Content
zy Section 3.13 - CYE X
O ITS128 Fall 2020
G 3.13 LAB: Extracti X
b My Questions | b
[Solved] 13LAB: E X
+
i learn.zybooks.com/zybook/CYB_135_54915392/chapter/3/section/13?content_resource_id=62352403
= zyBooks My library > CYB/135: Object-Oriented Security Scripting home > 3.13: LAB: Extracting Passwords (files and lists)
E zyBooks catalog
? Help/FAQ
Kenneth Schultz -
3.13 LAB: Extracting Passwords (files and lists)
The Linux operating system is a very popular server OS. A network administrator has to protect the login/password files stored on the
servers. In Linux there are two important files:
/etc/passwd
And it contains rows that look like this:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
userl:x:15:51:User One:/home/userl:nologin
user2:x:15:51:User One:/home/userl:nologin
user3:x:15:51:User One :/home/userl:nologin
This file contains login information. It's a list of the server's accounts that has userID, groupID, home directory, shell and more info.
And the second file /etc/shadow, contains rows that look like this:
root:$1$TDQFedzX$.kv51AjM.FInu0lrHldY30:15045:0:99999:7:::
bin:*:14195:0:99999:7:::
daemon:*:14195:0:99999:7:::
adm: *:14195:0:99999:7:::
ftp:*:14195:0:99999:7:::
userl:$1$sSTPXdzX$.kv51AjM.FInu0lrHldY30:15045:0:99999:7:::
userl:44##$TDQFedzX$.Pxp39484.FInu0lrHldY30:15045:0:99999:7:::
userl:&TXlsifhQMinXX@.YUlppxp0177:15045:0:99999:7:::
3:22 AM
O Type here to search
77°F Cloudy
9/17/2021
![entry level cyber
* Home
Content
zy Section 3.13 - CYE X
O ITS128 Fall 2020
G 3.13 LAB: Extracti X
b My Questions | b
[Solved] 13LAB: E X
+
i learn.zybooks.com/zybook/CYB_135_54915392/chapter/3/section/13?content_resource_id=62352403
Q
= zyBooks My library > CYB/135: Object-Oriented Security Scripting home > 3.13: LAB: Extracting Passwords (files and lists)
E zyBooks catalog
? Help/FAQ
Kenneth Schultz -
• mere is d newiine ai the enu oI the output.
input1pass.txt is available to download.
input1shadow.txt is available to download
• 'Hint' - check out the Python zip () for mapping the login in one file to the other.
346682.2019644.gx3zgy7
LAB
3.13.1: LAB: Extracting Passwords (files and lists)
0/ 10
АCTIVITY
Downloadable files
inputipass.txt
and
inputishadow.txt
Download
main.py
Load default template..
1 # Type your code here.
Run your program as often as you'd like, before submitting for grading. Below, type any needed
input values in the first box, then click Run program and observe the program's output in the
Develop mode
Submit mode
second box.
Enter program input (optional)
3:23 AM
O Type here to search
77°F Cloudy
9/17/2021](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7ef9d07b-5934-4723-aca6-faf08a622511%2F83be521a-c413-46fa-8624-7afa4b6bb8bd%2Fullp1uv_processed.png&w=3840&q=75)
Transcribed Image Text:entry level cyber
* Home
Content
zy Section 3.13 - CYE X
O ITS128 Fall 2020
G 3.13 LAB: Extracti X
b My Questions | b
[Solved] 13LAB: E X
+
i learn.zybooks.com/zybook/CYB_135_54915392/chapter/3/section/13?content_resource_id=62352403
Q
= zyBooks My library > CYB/135: Object-Oriented Security Scripting home > 3.13: LAB: Extracting Passwords (files and lists)
E zyBooks catalog
? Help/FAQ
Kenneth Schultz -
• mere is d newiine ai the enu oI the output.
input1pass.txt is available to download.
input1shadow.txt is available to download
• 'Hint' - check out the Python zip () for mapping the login in one file to the other.
346682.2019644.gx3zgy7
LAB
3.13.1: LAB: Extracting Passwords (files and lists)
0/ 10
АCTIVITY
Downloadable files
inputipass.txt
and
inputishadow.txt
Download
main.py
Load default template..
1 # Type your code here.
Run your program as often as you'd like, before submitting for grading. Below, type any needed
input values in the first box, then click Run program and observe the program's output in the
Develop mode
Submit mode
second box.
Enter program input (optional)
3:23 AM
O Type here to search
77°F Cloudy
9/17/2021
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education