
Wicked Cool Ruby Scripts
Useful Scripts that Solve Difficult Problems
Steve Pugh(Author)
No Starch Press
Published on 15. December 2008
216 pages
978-1-59327-236-4 (ISBN)
System requirements
for ePUB without DRM
E-Book Single Licence
You are acquiring a single user licence for this eBook, which you might not transfer. [L]
Available for download
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Are you spending valuable time on work a well-trained monkey could do? If so, Wicked Cool Ruby Scripts will teach you how to automate repetitive tasks using Ruby, one of the most powerful and easy-to-use programming languages around.
Wicked Cool Ruby Scripts provides 58 scripts that offer quick solutions to problems like system administration, manipulating images, and managing a website. After getting your feet wet creating simple scripts to automate tasks like file compression and decompression, you'll learn how to create powerful web crawlers, security scripts, and full-fledged libraries and applications, as well as how to:
-Rename files, disable processes, change permissions, and modify users
-Manipulate strings, encrypt files, and sort efficiently
-Validate web links, check for orphan files, and generate forms
-Mass edit photos, extract image information, and create thumbnails
-Parse CSV files and scrape links, images, and pages from the Web
And as a nod to our security friends, you'll even learn how to use Ruby to write Metasploit exploits.For each script you get the code, a discussion of how it works, and tips on how to customize it to solve real-world problems. By the time you're finished, we think you'll agree that Ruby is a wicked cool way to get things done.
Wicked Cool Ruby Scripts provides 58 scripts that offer quick solutions to problems like system administration, manipulating images, and managing a website. After getting your feet wet creating simple scripts to automate tasks like file compression and decompression, you'll learn how to create powerful web crawlers, security scripts, and full-fledged libraries and applications, as well as how to:
-Rename files, disable processes, change permissions, and modify users
-Manipulate strings, encrypt files, and sort efficiently
-Validate web links, check for orphan files, and generate forms
-Mass edit photos, extract image information, and create thumbnails
-Parse CSV files and scrape links, images, and pages from the Web
And as a nod to our security friends, you'll even learn how to use Ruby to write Metasploit exploits.For each script you get the code, a discussion of how it works, and tips on how to customize it to solve real-world problems. By the time you're finished, we think you'll agree that Ruby is a wicked cool way to get things done.
More details
Language
English
Place of publication
New York
United States
Product notice
Reflowable
File size
0,84 MB
ISBN-13
978-1-59327-236-4 (9781593272364)
Schweitzer Classification
Other editions
Additional editions

Book
12/2008
1st Edition
No Starch Press
€30.50
Article exhausted; check different version
Person
Steve Pugh has been a programmer for over a decade. He has worked as a software analyst for a banking software company, run a large-scale network operations center (overseeing 7,000 users and 130 network technicians), and is currently doing security research for the US government. Much of this book was written while Pugh was working for the US government in Northern Iraq.
Content
- Intro
- Wicked Cool Ruby Scripts
- FOREWORD
- ACKNOWLEDGMENTS
- INTRODUCTION
- Wicked Cool Ruby Scripts
- You Need Ruby Basics
- Documentation
- Organization and Approach
- The Website
- 1. GENERAL PURPOSE UTILITIES
- Check for Changed Files
- Check for Changed Files
- changedFiles.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Encrypt a File
- Encrypt a File
- encrypt.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Decrypt a File
- Decrypt a File
- decrypt.rb
- The Code
- Running the Code
- The Results
- How It Works
- File Splitting
- File Splitting
- fileSplit.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- File Joining
- File Joining
- fileJoin.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Windows Process Viewer
- Windows Process Viewer
- listWin Processes.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- File Compressor
- File Compressor
- compress.rb
- The Code
- Running the Code
- The Results
- How It Works
- File Decompression
- File Decompression
- decompress.rb
- The Code
- Running the Code
- The Results
- How It Works
- Mortgage Calculator
- Mortgage Calculator
- mortgageCalc.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- 2. WEBSITE SCRIPTING
- Web Page Link Validator
- Web Page Link Validator
- linkValidator.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Orphan File Checker
- Orphan File Checker
- orphanCheck.rb
- The Code
- Running the Script
- The Results
- How It Works
- Form Generator
- Form Generator
- formGenerator.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- RSS Parsing
- RSS Parsing
- rssParser.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Stock Exchange Grep
- Stock Exchange Grep
- stockGrep.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- IP Address Generation
- IP Address Generation
- ipAdderGen.rb
- The Code
- Running the Code
- The Results
- How It Works
- Subnet Calculator
- Subnet Calculator
- subnetCalc.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- 3. LI(U)NIX SYSTEM ADMINISTRATION
- Fixing Bad Filenames
- Fixing Bad Filenames
- fixFilename.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Adding a User
- Adding a User
- addUser.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Modifying a User
- Modifying a User
- modUser.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Killing a Stuck Process
- Killing a Stuck Process
- killProcess.rb
- The Code
- Running the Code
- The Results
- How It Works
- Validating Symlinks
- Validating Symlinks
- symlinkCheck.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- 4. PICTURE UTILITIES
- Mass Editing
- Mass Editing
- massEdit.rb
- The Code
- Running the Code
- The Results
- How It Works
- Image Information Extraction
- Image Information Extraction
- imageInfo.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Creating a Thumbnail
- Creating a Thumbnail
- thumbnail.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Resize a Picture
- Resize a Picture
- resizePhoto.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Adding a Watermark to Pictures
- Adding a Watermark to Pictures
- watermark.rb
- The Code
- Running the Code
- The Results
- How It Works
- Convert to Black and White
- Convert to Black and White
- bwPhoto.rb
- The Code
- Running the Code
- The Results
- How It Works
- Creating a Photo Gallery
- Creating a Photo Gallery
- createGallery.rb
- The Code
- Running the Code
- Results
- How It Works
- Hacking the Script
- 5. GAMES AND LEARNING TOOLS
- Sudoku Solver
- Sudoku Solver
- sudoku.rb
- The Code
- Running the Code
- The Results
- How It Works
- Flash Cards
- Flash Cards
- flashCards.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Number-Guessing Game
- Number-Guessing Game
- guessingGame.rb
- The Code
- Running the Code
- The Results
- How It Works
- Rock, Paper, Scissors
- Rock, Paper, Scissors
- rps.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Word Scramble
- Word Scramble
- wordScramble.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hangman
- Hangman
- hangman.rb
- The Code
- Running the Code
- The Results
- How It Works
- Pig
- Pig
- pig.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- 6. STRING UTILITIES
- PDF Generator
- PDF Generator
- pdfGen.rb
- The Code
- Running the Code
- The Results
- How It Works
- Word Frequency
- Word Frequency
- wordFreq.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Comma-Separated Value Parser
- Comma-Separated Value Parser
- csv.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- CSV to XML
- CSV to XML
- csvToXML.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Ruby Grep
- Ruby Grep
- rubyGrep.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Password Check
- Password Check
- password.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- 7. SERVERS AND SCRAPERS
- Define
- Define
- define.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Automated SMS
- Automated SMS
- sms.rb
- The Code
- Running the Code
- The Results
- How It Works
- Link Scrape
- Link Scrape
- linkScrape.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Image Scrape
- Image Scrape
- imageScrape.rb
- The Code
- Running the Code
- The Results
- How It Works
- Hacking the Script
- Scraper
- Scraper
- scrape.rb
- The Code
- Running the Code
- The Results
- How It Works
- Encrypted Client
- Encrypted Client
- RSA_client.rb
- The Code
- Running the Code
- The Results
- How It Works
- Encrypted Server
- Encrypted Server
- RSA_server.rb
- The Code
- Running the Code
- The Results
- How It Works
- 8. ARGUMENTS AND DOCUMENTATION
- File Security
- File Security
- fileSecurity.rb
- The Code
- Running the Code
- The Results
- How It Works
- Web Scraper
- Web Scraper
- webScraper.rb
- The Code
- Running the Code
- The Results
- How It Works
- Photo Utilities
- Photo Utilities
- photoUtility.rb
- The Code
- Running the Code
- The Results
- How It Works
- Conclusion
- 9. SORTING ALGORITHMS
- Bubble Sort
- Bubble Sort
- bubbleSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Selection Sort
- Selection Sort
- selectionSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Shell Sort
- Shell Sort
- shellSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Merge Sort
- Merge Sort
- mergeSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Heap Sort
- Heap Sort
- heapSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Quick Sort
- Quick Sort
- quickSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- Shear Sort
- Shear Sort
- shearSort.rb
- The Code
- Running the Code
- The Results
- How It Works
- A Note About Efficiencies
- 10. WRITING A METASPLOIT 3.1 MODULE WITH RUBY
- Introduction to Metasploit
- Installation
- Writing a Module
- Building the Exploit
- Watching in Real Time
- Explanation of Metasploit Module Shell
- Finding the Payload Space
- A. AFTERWORD
- COLOPHON
System requirements
File format: ePUB
Copy protection: without DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use a reader that can handle the file format ePUB, such as Adobe Digital Editions or FBReader – both free (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePUB works well for novels and non-fiction books – i.e., 'flowing' text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook does not use copy protection or Digital Rights Management
For more information, see our eBook Help page.