Thread: [Solved] ReadLine returns LF
View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-09-2019 , 06:57   Re: ReadLine returns LF
Reply With Quote #7

Quote:
Originally Posted by Dragokas
Code:
PrintToServer("asc[15]: %i, asc[16]: %i, asc[17]: %i, asc[18]: %i", sPath0[15], sPath0[16], sPath0[17], sPath0[18] );
Is 2573 mean CR? Why so strange code?

What kind of encoding is it - "13168" (0x3370) ? "p" character has no 2-byte analogue, afaik.
Ok, solved. Instead, it should be:

Code:
int c1, c2, c3, c4;
c1 = sPath0[15];
c2 = sPath0[16];
c3 = sPath0[17];
c4 = sPath0[18];

PrintToServer("asc[15]: %i, asc[16]: %i, asc[17]: %i, asc[18]: %i", c1, c2, c3, c4 );
Now, codes are printed correctly.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline