Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <unistd.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5.  
  6. int target;
  7. void winner() {
  8. if(target!=5) {
  9. printf("Success!!\n");
  10. }
  11. exit(1);
  12. }
  13. void vuln() {
  14. char buffer[64];
  15. target=5;
  16. gets(buffer);
  17. printf(buffer);
  18. }
  19.  
  20. int main(int argc, char **argv){
  21. vuln();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement