SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Break Condiditon: [esp+4]==L"Test.dll"
  2. Break Condition: esp+4==L"Test.dll"
  3. etc..
  4.    
  5. Typ Address  Module/La State   Disassembly H Summa
  6. DLL                              
  7.     76850000 gdi32.dll Enabled  0 all()
  8.    
  9. Type     Address  Module/Label/Exception     State   Disassembly H Summary                                                                                        
  10. Software                                                          
  11.          76ACE8A5 <kernel32.dll.CreateFileW> Enabled mov edi,edi 5 breakif((1:[[esp+4]+0xc] == 66) &&  (1:[[esp+4]+0xe] == 69)), log("brk hit   { 1:[[esp+4]+c] }")
  12.    
  13. #include <stdio.h>
  14.  
  15. int main(void)
  16. {
  17.     char *filenames[] = {
  18.         "testmeone.txt",
  19.         "testmetwo.txt",
  20.         "testmethree.txt",
  21.         "testmefour.txt",
  22.         "testmefive.txt"};
  23.     for (int i = 0; i < 5; i++)
  24.     {
  25.         FILE *fp = NULL;
  26.         errno_t err = fopen_s(&fp, filenames[i], "r");
  27.         if (err == 0 && fp != 0)
  28.         {
  29.             char buff[0x50] = {0};
  30.             fread_s(buff, 0x50, 1, 0x50, fp);
  31.             printf("%sn", buff);
  32.             fclose(fp);
  33.         }
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top