Giriş yap
En iyi yollayıcılar
Hello EMO | ||||
EMO | ||||
eMoStyLe | ||||
BesimBICER | ||||
GameKinG | ||||
Crysis | ||||
~>!.DεvιLρяιεsт.!<~ | ||||
MeTaL | ||||
TrueCrime | ||||
djhayal3t |
Istatistikler
Toplam 203 kayıtlı kullanıcımız varSon kaydolan kullanıcımız: crayzboy76
Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Arama
Sosyal yer imi
Sosyal bookmarking sitesinde Emo, Emo nedir, Emo resimleri, Emo Kıyafetleri, Emo Sözleri, Emo Oyunları, EmoTurkey, Emo Nickler, Emo Avatarları, Punk, Punk Resimleri, Punk Avatarları, Rock, Rock Resimleri, Rock Avatarları, Msn Nickleri, Msn Avatarları, Müzik adresi saklayın ve paylaşın
Sosyal bookmarking sitesinde EMO Style ForumPro - Hos Geldiniz adresi saklayın ve paylaşın
Kimler hatta?
Toplam 9 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 9 Misafir Yok
Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
Reklam
64bit inline ASM workaround
1 sayfadaki 1 sayfası
64bit inline ASM workaround
Deutschland demiş ki:This was something I was interested in, when I was attempting to create a virus that would run in both 64 and 32bit. But I relied on inline assembly, unfortunately Microsoft's compiler doesn't support it.
So I figured, I'll Assemble it and then link it to the project. Call the function from the static lib. And wow it worked!
Take this function.Compile that in 32bit, works fine! Compile in 64bit, you'll get an annoying Microsoft error.
- Kod:
__declspec(naked) int __cdecl add(int x, int y)
{
__asm
{
push ebp
mov ebp,esp
mov eax,[ebp+0xC]
mov edx,[ebp+0x8]
add eax,edx
pop ebp
ret
}
}
So here's what we can do, create an assembly file. Just toss our code in there.Assemble it to an object file or static lib.
- Kod:
.global _add
_add:
push ebp
mov ebp, esp
mov eax, [ebp+0xC]
mov edx, [ebp+0x8]
add eax,edx
pop ebp
ret
Then link it to your projectInclude the add.h file which contains.
- Kod:
#pragma comment(lib,"add.lib");And try it out.
- Kod:
int add(int x, int y);Compile in 64, and see for your self!
- Kod:
int main()
{
printf("%i",add(25,10));
return 0;
}
This is also useful for Gunz hackers who want to distribute their functions for use, but not want to give out the source.
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO
» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO
» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO
» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO
» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO
» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO
» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO