Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created May 28, 2021 13:44
Show Gist options
  • Select an option

  • Save Bloofer/36cb64edba2e81e4f1e192ac75768db8 to your computer and use it in GitHub Desktop.

Select an option

Save Bloofer/36cb64edba2e81e4f1e192ac75768db8 to your computer and use it in GitHub Desktop.
formatstring
#include <stdio.h>
void main(int argc, char **argv)
{
// This line is safe
printf("%s\n", argv[1]);
// This line is vulnerable
printf(argv[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment