Contents
Guide
Page List
ABOUT THE AUTHORS
Heather Linn is a red teamer, penetration tester, threat hunter, and cyber security strategist with more than 20 years of experience in the security industry. During her career, she has consulted as a penetration tester and digital forensics investigator and has operated as a senior red team engineer inside Fortune 50 environments. In addition to being an accomplished technical editor, including Gray Hat Hacking (McGraw Hill, 2018), Heather has written and delivered training for multiple security conferences and organizations, including Black Hat USA and Girls Who Code. Heather has contributed to open-source frameworks for penetration testing and threat hunting. She holds or has held various certifications, including OSCP, CISSP, GREM, GCFA, GNFA, and PenTest+.
Ray Nutting is a security practitioner with over 20 years experience in the field of information security. He is the co-owner and founder of nDepth Security, a managed security service provider that specializes in penetration testing. He graduated magna cum laude with a degree in computer information systems and a concentration in information systems security. He holds numerous industry-recognized certifications, including the ISC2 CISSP and ISSEP, EC-Council C|EH v5, and the CompTIA PenTest+, and has presented at various conferences and events throughout his career.
About the Technical Editor
Ryan Linn has over 20 years in the security industry, ranging from systems programmer, to corporate security, to leading a global cybersecurity consultancy. Ryan has contributed to a number of open-source projects, including Metasploit and the Browser Exploitation Framework (BeEF). Ryan participates in Twitter as @sussurro, and he has presented his research at numerous security conferences, including Black Hat and DEF CON, and has provided training in attack techniques and forensics worldwide.
Copyright 2022 by McGraw Hill. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication.
ISBN: 978-1-26-427490-1
MHID: 1-26-427490-4
The material in this eBook also appears in the print version of this title: ISBN: 978-1-26-427489-5, MHID: 1-26-427489-0.
eBook conversion by codeMantra
Version 1.0
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps.
McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions or for use in corporate training programs. To contact a representative, please visit the Contact Us page at www.mhprofessional.com.
Information has been obtained by McGraw Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw Hill, or others, McGraw Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information.
TERMS OF USE
This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill Educations prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED AS IS. McGRAW-HILL EDUCATION AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill Education and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill Education nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill Education has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill Education and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
This book is dedicated to my mom. Thank you for fostering my creativity, showing me patience, and teaching me the underappreciated value of a well-timed and genuinely stupid joke.
Heather Linn
CONTENTS AT A GLANCE
CONTENTS
ACKNOWLEDGMENTS
Id like to thank all of the open-source security practitioners who have contributed in some way, shape, or form to the greater good of improving and standardizing information security practices. To name everyone who has contributed would require a book all to itself, but to name a few I would say thank you to OWASP for providing foundational learning material on the arts of web and mobile application security testing. Thank you to all those who contributed to the Open Source Security Testing Methodology Manual (OSSTMM); the Information Systems Security Assessment Framework (ISSAF); the Penetration Testing Execution Standard (PTES); and the CVE, CWE, CAPEC, and ATT&CK framework provided by MITRE. Thank you to PentesterLab and other silent contributors who have shared their knowledge and expertise on certain subjects to help inspire the development of certain exercises used in this book. I would like to acknowledge and extend a big thank you to McGraw Hill, especially my acquisitions editor, Lisa McClain; my coordinators, Emily Walters and Caitlin Cromley-Linn; and copy editor, Lisa McCoy. It takes an absolute village. Thank you for keeping me on track and making sure I sound as smart as possible. Thanks to my tech editor, Ryan Linn, for fact checking and proofing my code. And thank you to all of my friends who have helped me along the way. You know who you are!
INTRODUCTION