Advertisement
wwwc

Untitled

Mar 12th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. void Log(char * text)
  2. {
  3. FILE* Log = NULL;
  4. fopen_s ( &Log, "Loot.txt", "a+" );
  5. fprintf (Log, text);
  6. fclose ( Log );
  7. }
  8.  
  9. void Log(int i)
  10. {
  11. FILE* Log = NULL;
  12. fopen_s ( &Log, "Loot.txt", "a+" );
  13. fprintf (Log, "%x", i);
  14. fclose ( Log );
  15. }
  16.  
  17. void NameDump2()
  18. {
  19. char * pos = (char *)Names_offset;
  20. char * name = pos;
  21. bool run = true;
  22. while(run)
  23. {
  24. char c = *pos;
  25. pos++;
  26. run = false;
  27. if(c!=0)
  28. run = true;
  29. else
  30. {
  31. FILE* L = NULL;
  32. fopen_s ( &L, "Loot.txt", "a+" );
  33. fprintf (L, "%p", name);
  34. fclose ( L );
  35. Log(" : ");
  36. Log(name);
  37. Log("\n");
  38. int* test = (int *)pos;
  39. if(*test!=0)
  40. {
  41. run = true;
  42. pos += 8;
  43. name = pos;
  44. }
  45. }
  46. }
  47. }
  48.  
  49.  
  50.  
  51. void onAttach()
  52. {
  53. Log("Hello World\n");
  54. FILE* Log = NULL;
  55. fopen_s ( &Log, "Loot.txt", "a+" );
  56. fprintf (Log, "%i\n", Names->Num());
  57. fprintf (Log, "%i\n", GObjObjects->Num());
  58. fclose ( Log );
  59. NameDump2();
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement