| View previous topic :: View next topic |
| Author |
Message |
ovann Advanced Cheater
Reputation: 0
Joined: 18 May 2006 Posts: 73
|
Posted: Thu Mar 27, 2008 12:13 pm Post subject: [Question] About "newmem" at scripts |
|
|
What different about all of them?
alloc(newmem,50)
alloc(newmem,128)
alloc(newmem,256)
alloc(newmem,1024)
alloc(newmem,2048)
etc...
I think have more like 512 and 50 should be 64 but it's nevermind...
I just wanna know what everything do, and how do you all choose them when your making scripts...
Thank you =]
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Mar 27, 2008 12:17 pm Post subject: |
|
|
Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste)
|
|
| Back to top |
|
 |
ovann Advanced Cheater
Reputation: 0
Joined: 18 May 2006 Posts: 73
|
Posted: Thu Mar 27, 2008 12:30 pm Post subject: |
|
|
| Symbol wrote: | Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste) |
If I want make a own script...
How should I know how many bytes type there?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25999 Location: The netherlands
|
Posted: Thu Mar 27, 2008 12:40 pm Post subject: |
|
|
Just try it.
4096 is usually more than enough for your own scripts, but if you need more, you can just add more.
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
24653187 Expert Cheater
Reputation: 0
Joined: 19 Aug 2007 Posts: 214 Location: 218.255.97.194/61.18.170.???
|
Posted: Thu Mar 27, 2008 7:42 pm Post subject: |
|
|
| ovann wrote: | | Symbol wrote: | Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste) |
If I want make a own script...
How should I know how many bytes type there? |
you probably don't need to inject lots of address, ya?
if you just inject a code or something 4096 is far enough
_________________
newbies post these threads:
1. all capital letters
2. lots of exclamation marks
and these posts:
1. no punctuation marks
2. not enough information
3. post on wrong forum
and these attitudes:
1. unformal words
2. say "thanks" in 90% post
3. angry when got pissed |
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Mar 28, 2008 8:14 am Post subject: |
|
|
| ovann wrote: | | Symbol wrote: | Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste) |
If I want make a own script...
How should I know how many bytes type there? |
And avarage opcode (not something too long, like "lock imul eax,edx,00456789" ) has about 2-6 bytes. (some might take 1 and some might even take 20, I think 20 is about the largest ammount of bytes for a single opcode)
For a small script 100 should be more than enough, but as Dark Byte said, you could also use 4098.
|
|
| Back to top |
|
 |
|