Skip to Content
Gray Hat Hacking The Ethical Hacker's Handbook, Fourth Edition, 4th Edition
book

Gray Hat Hacking The Ethical Hacker's Handbook, Fourth Edition, 4th Edition

by Daniel Regalado, Shon Harris, Allen Harper, Chris Eagle, Jonathan Ness, Branko Spasojevic, Ryan Linn, Stephen Sims
January 2015
Intermediate to advanced
656 pages
18h 58m
English
McGraw-Hill
Content preview from Gray Hat Hacking The Ethical Hacker's Handbook, Fourth Edition, 4th Edition

CHAPTER 7

 

Writing Linux Shellcode

In the previous chapters, we used Aleph1’s ubiquitous shellcode. In this chapter, we will learn to write our own. Although the previously shown shellcode works well in the examples, the exercise of creating your own is worthwhile because there will be many situations where the standard shellcode does not work and you will need to create your own.

            In this chapter, we cover the following topics:

            •  Writing basic Linux shellcode

            •  Implementing port-binding shellcode

            •  Implementing reverse connecting shellcode

            •  Encoding shellcode

            •  Automating shellcode generation with Metasploit

 

Basic Linux Shellcode

The term shellcode refers to self-contained ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gray Hat Hacking: The Ethical Hacker's Handbook, Sixth Edition, 6th Edition

Gray Hat Hacking: The Ethical Hacker's Handbook, Sixth Edition, 6th Edition

Allen Harper, Ryan Linn, Stephen Sims, Michael Baucom, Huascar Tejeda, Daniel Fernandez, Moses Frost
Gray Hat Hacking The Ethical Hacker's Handbook, Fifth Edition, 5th Edition

Gray Hat Hacking The Ethical Hacker's Handbook, Fifth Edition, 5th Edition

Daniel Regalado, Shon Harris, Allen Harper, Chris Eagle, Jonathan Ness, Branko Spasojevic, Ryan Linn, Stephen Sims
Hacking Exposed 7, 7th Edition

Hacking Exposed 7, 7th Edition

Stuart McClure, Joel Scambray, George Kurtz

Publisher Resources

ISBN: 9780071832380