ya_makaron

Untitled

Jul 25th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.85 KB | None | 0 0
  1. {$CLEO}
  2. 0000:
  3.  
  4. repeat
  5. wait 0
  6. until Samp.Available()
  7. call @GetVolumeInformation 0 || 0@
  8. 0AC8: 1@ = allocate_memory_size 64
  9. 0AC8: 2@ = allocate_memory_size 512
  10. 0AC8: 4@ = allocate_memory_size 120000 // íà âñÿêèé ñëó÷àé ïîáîëüøå, ìàëî ëè ñêîëüêî òàì ïðèâÿçîê, ìîæíî áîëüøå, ìîæíî ìåíüøå
  11. 0AC8: 5@ = allocate_memory_size 64
  12. 0AD3: 1@ = format "CLEO\makaron.txt"
  13. 0AD3: 2@ = format "https:%c/www.dropbox.com/s/acsq7teguy7acmb/test.txt?dl=1" 47
  14. 0AB1: call_scm_func @DownloadFile 2 1@ 2@
  15. 0AB1: call_scm_func @DeleteURLCache 1 2@  
  16. 0A9A: 3@ = openfile "CLEO\makaron.txt" mode "rt"
  17. 0AD7: read_string_from_file 3@ to 4@ size 120000
  18. 0A9B: closefile 3@
  19. 0B00: delete_file "CLEO\makaron.txt"  
  20. 0AD3: 5@ = format "%X" 0@
  21. if 0C29: 4@ = stristr string1 4@ string2 5@
  22. then
  23. chatmsg "Проверки лицензии прошла успешно" -1
  24. else
  25. chatmsg "Нет привязки, твой ключ: %X" -1 0@
  26. 0A93: end_custom_thread
  27. end
  28. 0AC9: free_allocated_memory 1@
  29. 0AC9: free_allocated_memory 2@
  30. 0AC9: free_allocated_memory 4@
  31. 0AC9: free_allocated_memory 5@
  32. 0BDE: pause_thread 0
  33.  
  34. :GetVolumeInformation
  35. 0AA2: 0@ = load_library "Kernel32.DLL" // IF and SET
  36. 0AA4: 1@ = get_proc_address "GetVolumeInformationA" library 0@ // IF and SET
  37. 0AC7: 2@ = var 2@ offset
  38. 0AA7: call_function 1@ num_params 8 pop 0 0 0 0 0 2@ 0 0 0 | 3@  
  39. 0AA3: free_library 0@
  40. 0AB2: ret 1 2@
  41.  
  42. :DownloadFile
  43. 0AA2: 2@ = load_library "Urlmon.DLL"
  44. 0AA4: 3@ = get_proc_address "URLDownloadToFileA" library 2@
  45. 0AA7: call_function 3@ num_params 5 pop 0 0 0 0@ 1@ 0 | 4@
  46. 0AA3: free_library 2@
  47. 0AB2: ret 0
  48.  
  49. :DeleteURLCache
  50. 0AA2: 1@ = load_library "Wininet.DLL"
  51. 0AA4: 2@ = get_proc_address "DeleteUrlCacheEntryA" library 1@
  52. 0AA7: call_function 2@ num_params 1 pop 0 0@ | 3@
  53. 0AA3: free_library 1@
  54. 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment