flat assembler
Message board for the users of flat assembler.

Index > Windows > windows DNS bug ,absolutely

Author
Thread Post new topic Reply to topic
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
caoyunbin001 18 Feb 2012, 11:09
see code,
line 82:after the execution, dontCare should point to IPv4 data structure
according to MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682016(v=vs.85).aspx

but actually, it points to a DNS_RECORD !
see code , it extracts IPv4 address from that DNS_RECORD,
but according to msdn, see attachment,
we should use
mov eax,[dontCare]
mov eax,[eax]
to get the IPv4 address which is incorrect!



put here to let others know about this bug,
avoid future confusing.
and if you have another better idea of resolve an URL to an IP address,
please tell me,
I'm writing a HTTP lib,
and I found winHTTP is fucking useless,
so I'm writing it using Socket,
which the first problem is to resolve an URL to an IP address.


Description:
Filesize: 15.36 KB
Viewed: 1572 Time(s)

2012-02-18_190431.png


Post 18 Feb 2012, 11:09
View user's profile Send private message ICQ Number Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1661
Location: Toronto, Canada
AsmGuru62 18 Feb 2012, 12:39
MSDN has bugs too.
Smile
Post 18 Feb 2012, 12:39
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.