Join Malcolm Shore for an in-depth discussion in this video Using functions in bash, part of Penetration Testing Essential Training.
- [Instructor] Bash provides the ability…to define and call functions.…Let's write a script…which demonstrates the use of a function…and we'll also include the use…of the select and case statements.…Here we've defined the function…and we've used an extended if statement…to check the city we're going to visit.…This function takes one parameter which is the city name.…Note in Bash that the single operator equals…is used to do string comparisons…and assignments and the double operator…equal equal is used for numeric comparisons.…
We check the city…and print advice on the language spoken.…The start of the main code prints a question…and then uses the select statement…to print a menu and then ask for a series of responses.…These are within a do great construct…which terminates when exit is selected.…The variable PS3 is a system variable…used as the prompt for the select statement.…Quick response a case statement…prints out the city and the country chosen…and calls the speak function to display the language used.…
Let's run this.…
Cybersecurity expert Malcolm Shore reviews popular pen testing tools, as well as the Bash and Python scripting skills required to be able to acquire, modify, and re-use exploit code. He also provides a refresher on Kali Linux and introduces techniques for testing web services. At the end of this course, you'll be prepared to take more advanced training, and to pursue the popular Offensive Security Certified Professional (OSCP) certification.
- Pen testing overview
- Pen testing tools
- Bash scripting
- Python scripting
- Kali and Metasploit
- Web testing
- Finding exploit code
Skill Level Intermediate
Ethical Hacking: Penetration Testingwith Lisa Bock1h 20m Intermediate
1. What is Pen Testing?
2. Pen Testing Tools
3. Bash Scripting
4. Python Scripting
5. Kali and Metasploit
6. Web Testing
7. Understanding Exploit code
What's next1m 27s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.