8 Shell script program to count number of files in a Directory 59 Lab 6 To

8 shell script program to count number of files in a

This preview shows page 59 - 67 out of 73 pages.

8. Shell script program to count number of files in a Directory. 59
Image of page 59
Lab 6 To study and implement shell programming in Linux 60
Image of page 60
Lab 7 To study and implement information security techniques in Linux Lab 7 To study and implement information security techniques in Linux In this lab, we will explore the basic information security tools available in Linux. There are a number of tools available in Linux. This lab only covers nmap, whois and wireshark tool Lab Tasks 1. Download and install the three tools nmap, whois and wireshark tool on Linux. What command did you use to install? 2. Now run the nmap tool on . Capture the output. 3. Provide a commentary on the output Nmap can be used to monitor single hosts as well as vast networks that encompass hundreds of thousands of devices and multitudes of subnets 4. Run the whois tool on . Capture the output 61
Image of page 61
Lab 7 To study and implement information security techniques in Linux 5. Provide a commentary on the output It also allows you to perform DNS lookup of A, AAAA, AXFR, CNAME, NS, MX, PTR, RRSIG, SRV, SPF and TXT record types (simultaneously). And ofcourse _dmarc and _domainkey records checking 62
Image of page 62
Lab 7 To study and implement information security techniques in Linux 6. With the wireshark tool capturing the interface data, browse .edu.pk 7. Capture the HTTP protocol message 63
Image of page 63
Lab 7 To study and implement information security techniques in Linux 8. Provide the commentary on the above captured message. HTTP means H yper T ext T ransfer P rotocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. 64
Image of page 64
Lab9 Object Oriented Programming Lab 8 To study and implement concurrency control techniques in Java Java provides the synchronized key word for implementing concurrency control while using multi-threaded applications. In this lab, you will learn how to implement these techniques. Instructions: Create the following program in Java: public class UnsynchronizedExample { public static void main(String[] args) { newPrintStringsThread("Hello ", "there."); newPrintStringsThread("How are ", "you?"); newPrintStringsThread("Thank you ", "very much!"); } } public class PrintStringsThread implements Runnable { Thread thread; String str1, str2; PrintStringsThread(String str1, String str2) { this.str1 = str1; this.str2 = str2; thread = new Thread(this); thread.start(); } public void run() { TwoStrings.print(str1, str2); } } public class TwoStrings { // This method is not synchronized static void print(String str1, String str2) { System.out.print(str1); try { Thread.sleep(500); } catch (InterruptedExceptionie) { } 65
Image of page 65
Lab9 Object Oriented Programming System.out.println(str2); } } Lab Tasks: 1. What output do you see? Explain the output.
Image of page 66
Image of page 67

You've reached the end of your free preview.

Want to read all 73 pages?

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors