Chapter 4

Introduction to Ruby

Abstract

Ruby is a flexible programming language that has taken the better parts of Perl, Python, and many others to create a language that is both powerful and easy to read. In this chapter, we take a look at the powerful object-oriented approach to Ruby. Using Ruby to convert data between hex, binary, and plaintext data, this chapter looks at the details of network and file manipulation, building new classes, manipulating databases, and even building basic network servers. Through these examples, we explore the critical aspects of the Ruby language and develop the skills to aid in real-world testing scenarios.

Keywords

Ruby; object-oriented; hex; binary; file manipulation; classes; databases

Information in This Chapter ...

Get Coding for Penetration Testers, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.