ismaelvazquezjr

BOF Vulnerable App

Oct 20th, 2019
4,493
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; *************************************************************************
  2. ; 32-bit Windows Console Buffer Overflow Program
  3. ; Created by Ismael Vazquez (@iamismael_)
  4. ; *************************************************************************
  5.                                    
  6. .386                    ; Enable 80386+ instruction set
  7. .model flat, stdcall    ; Flat, 32-bit memory model (not used in 64-bit)
  8. option casemap: none    ; Case insensitive syntax
  9.  
  10. ; *************************************************************************
  11. ; MASM32 proto types for Win32 functions and structures
  12. ; *************************************************************************  
  13. include c:\masm32\include\kernel32.inc
  14. include c:\masm32\include\masm32.inc
  15. include c:\masm32\include\msvcrt.inc
  16.          
  17. ; *************************************************************************
  18. ; MASM32 object libraries
  19. ; *************************************************************************  
  20. includelib c:\masm32\lib\kernel32.lib
  21. includelib c:\masm32\lib\masm32.lib
  22. includelib c:\masm32\lib\msvcrt.lib
  23.  
  24. ; *************************************************************************
  25. ; External function definitions
  26. ; *************************************************************************
  27. strcpy proto C, :DWORD, :DWORD
  28.  
  29. ; *************************************************************************
  30. ; Our data section. Here we declare our strings for our message
  31. ; *************************************************************************
  32. .data
  33. arg1 db "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBCCCCC", 00h
  34.  
  35. ; *************************************************************************
  36. ; Our executable assembly code starts here in the .code section
  37. ; *************************************************************************
  38. .code
  39.  
  40. start:
  41.     Main Proc
  42.         ; function prologue
  43.         push ebp
  44.         mov ebp, esp
  45.        
  46.         ; add 20 bytes of stack space for local variables
  47.         ; 4 = DWORD
  48.         ; 16  = char array
  49.         sub esp, 014h
  50.  
  51.         ; int var1 = 0x1337
  52.         mov dword ptr [esp], 01337h
  53.  
  54.         ; Load the address of ESP(minus the 4 bytes we reserved for our DWORD) into EAX
  55.         lea eax, dword ptr [esp + 04h]
  56.  
  57.         ; Mimicking command line argument(72 bytes long)
  58.         push offset arg1
  59.         ; pass our destination buffer to strcpy
  60.         push eax
  61.         call strcpy
  62.  
  63.         ; clear arguments to strcpy off the stack
  64.         add esp, 08h
  65.  
  66.         ; function epilogue
  67.         pop ebp
  68.         mov esp, ebp
  69.    
  70.         ; exit
  71.         push 0h
  72.         call ExitProcess
  73.         ret
  74.     Main EndP
  75. end start
Advertisement
Comments
  • Beklimor
    18 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • Nikyuvas
    11 days
    # CSS 0.06 KB | 0 0
    1. We just shared HQ data on our channel: https://t.me/theprotocolone
Add Comment
Please, Sign In to add comment