Article View: pl.comp.lang.asm
Article #266pobieranie danych z stosu
From: lemkat
Date: Sat, 20 May 2006 16:45
Date: Sat, 20 May 2006 16:45
41 lines
1775 bytes
1775 bytes
witam, mam funkcje ktora pobiera dane ze stosu, niestety jak aplikacja
ja wywyoluje to sie wyklada, co jest nie tak ????? wydaje mi sie ze cos
z wielkoscia danych
void __declspec(naked) custom_send(void)
{
SOCKET s;
char* buf;
int len;
int flags;
_asm
{
push ebp
mov ebp, esp
sub esp, 0x16
mov eax, [ebp+8]
mov s, eax
mov eax, [ebp+8+4]
mov buf, eax
mov eax, [ebp+8+8]
mov len, eax
mov eax, [ebp+8+12]
mov flags, eax
}
char* text="MyInject: wykryto custom_send";
ATOM Atom = ::GlobalAddAtom( text );
UINT uiMyMessage = ::RegisterWindowMessage("InetMessage");
::SendMessage( HWND_BROADCAST , uiMyMessage , (WPARAM)Atom , 0 );
_asm
{
mov eax,len
mov esp, ebp
pop ebp
ret 16
}
}
Technical Details
Message-ID:
<e4nh3a$lss$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: lemkat <lemkat@eranet.pl> Newsgroups: pl.comp.lang.asm Subject: pobieranie danych z stosu Date: Sat, 20 May 2006 18:45:06 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 41 Message-ID: <e4nh3a$lss$1@atlantis.news.tpi.pl> NNTP-Posting-Host: cba100.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1148143530 22428 83.30.98.100 (20 May 2006 16:45:30 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sat, 20 May 2006 16:45:30 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: pl, en-us, en X-Antivirus: avast! (VPS 0620-3, 19-05-2006), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit