Skip to content

lillypad/sgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sgets

The attempted secure use of gets() POC.

NOTE: Uses 32bytes as the buffer.. Good Luck!

Build and Install

git clone https://github.com/lillypad/sgets.git
cd sgets/
make
make install

Usage

echo 'hello' | sgets
sgets

Interface

/-----------------------------------------------------------------------\
|                    sgets - gets() Secure Implementation               |
|-----------------------------------------------------------------------|
|                                Examples:                              |
|-----------------------------------------------------------------------|
| echo 'hello' | ./sgets                                                |
| ./sgets                                                               |
|-----------------------------------------------------------------------|
|                                 Author:                               |
|-----------------------------------------------------------------------|
| Lilly Chalupowski                                                     |
|-----------------------------------------------------------------------|
|                         Press ENTER to Continue                       |
\-----------------------------------------------------------------------/

buffer before:
  0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Good Luck! ┌∩┐(◣_◢)┌∩┐: Hello World!
buffer after:
  0000  48 65 6c 6c 6f 20 57 6f 72 6c 64 21 00 00 00 00  Hello World!....
  0010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Output: Hello World!

How Does it Work

  • Works on the premise that gets() uses stdin and terminates on \n.

References

About

The attempted secure use of gets() POC.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published