SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 398 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

pdf
Bugcheck and Skape www.uninformed.org/?v=3&a=4&t=txt
Gary Nebbett, Windows NT/2000 Native API Reference, Indianapolis: Sams Publishing, 2000
Chapter 9: Shellcode Strategies
209
PART III
This page intentionally left blank
211
CHAPTER10 Writing Linux Shellcode
In this chapter,we will cover various aspects of Linux shellcode.
??? Basic Linux Shellcode
??? System Calls
??? Exit System Call
??? Setreuid System Call
??? Shell-Spawning Shellcode with execve
??? Implementing Port-Binding Shellcode
??? Linux Socket Programming
??? Assembly Program to Establish a Socket
??? Test the Shellcode
??? Implementing Reverse Connecting Shellcode
??? Reverse Connecting C Program
??? Reverse Connecting Assembly Program
??? Encoding Shellcode
??? Simple XOR Encoding
??? Structure of Encoded Shellcode
??? JMP/CALL XOR Decoder Example
??? FNSTENV XOR Example
??? Putting It All Together
??? Automating Shellcode Generation with Metasploit
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 isworthwhile because there will be many situations
where the standard shellcode does not work and you will need to create your own.


Pages:
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410