View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-24-2021 , 11:00   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #853

extract it as integer, then:
PHP Code:
    octet[0] = (longip >> 24) & 0x000000FF;
    
octet[1] = (longip >> 16) & 0x000000FF
    
octet[2] = (longip >> 8) & 0x000000FF
    
octet[3] = longip 0x000000FF

    
FormatEx(NetIPsizeof(NetIP), "%d.%d.%d.%d"octet[0], octet[1], octet[2], octet[3]); 
Quote:
unsigned char ip[4];
it's not a char, it's array of bytes, or just int.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 10-24-2021 at 11:01.
Dragokas is offline