_CRT_SECURE_NO_WARNINGS #define #include <the Windows.h> #include <stdio.h> // BYTE m_code [] = {0x8B, 0x14,0x8D, 0xC8,0xF1,0x69,0x00,0x52}; // 12 is 34 is 56 is 78 int main () { SetConsoleTitleA ( "CheatEngine / Ollydbg byte array into Xiaodi By adding 0xXX tool Made"); the printf ( "\ n-\ n-function example: \ n \ n Ollydbg assumed CheatEngine tool or find a byte array (pattern) of : 8B 14 8D C8 F1 69 00 52 \ n \ n need to call in C / C ++ language: \ n \ nBYTE m_code [] = {0x8B, 0x14,0x8D, 0xC8,0xF1,0x69,0x00,0x52} time can 0x automatic conversion and adding comma \ n-\ n-\ n-. "); char Body [10]; // Get a byte array char STR [1024]; the printf (" \ n-\ n-byte array input request to be converted ( or signature): \ the n-\ the n-"); the gets (STR); printf ( "\ n \ n ------------------------------------------- ----------------------------------- \ n \ n you enter a byte array:% s length is:% d \ n \ n " , str, strlen (str)); // for all output values, note a 0 = I int; for (; I <strlen (STR); I ++) { // If space IF (STR [I] == '') { // the printf ( "% C% C \ n-\ n-", STR [I-2], STR [I-. 1]); sprintf (Body, "0x% C% C", STR [I - 2], STR [I -. 1]); the printf ( "% S,", & Body); } } sprintf (Body, "0x% C% C", STR [I - 2], STR [I -. 1]); the printf ( "% S", & Body); the printf ( "\ n-\ n-converter complete !!! \ n \ n \ n ---------------------------------------- - \ n classroom game Netease cloud security reverse engineer search for "reverse" for more !!! "& Body); getchar (); getchar (); return 0; }
Plus QQ404087015 can communicate with me