Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shellcode starter kit

Develop and test shellcodes locally.

Contains

  • The source code for a tester program, to load the shellcode in memory and execute it;
  • A basic shellcode example to:
    • open the flag file,
    • Use sendfile to send data from the flag file file descriptor to the standard output, effectively printing the flag,
    • exit gracefully;
  • An example flag file for the kit to work out of the box.

How to use

# compile the tester
gcc -o tester tester.c

# compile and extract the shellcode
as shellcode.s -o shellcode.o
objcopy --dump-section .text=shellcode shellcode.o

# run the shellcode using the tester
cat shellcode | ./tester

Acknowledgements

This repo is just a formatting of the snippets provided by @zardus during the Computer Systems Security (CSE466) class at ASU.

About

A kit to help starting the development of shellcodes.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages