[Mac] A few findings and a few questions menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by eSko View Post
    Maybe a stupid question, but isn't 8 bytes=64 bits?
    Correct.. And on 64-bit pointers are 64-bits in size, thus you can "possibly read" 8 bytes as a pointer with 64-bit addressing.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

    [Mac] A few findings and a few questions
  2. #17
    Musah's Avatar Corporal
    Reputation
    3
    Join Date
    Sep 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    Correct.. And on 64-bit pointers are 64-bits in size, thus you can "possibly read" 8 bytes as a pointer with 64-bit addressing.
    I'm actually setting the buffer to 4 bytes. So it looks something like this (tried to remove as much ObjC as I could)

    int buffer[sizeof(int)];
    //Do memory stuffs with buffer length set to sizeof(int) and the returned value for the address to buffer
    //Size of int of course is 4
    int var = 0;
    var = (int)*buffer;
    return var;

  3. #18
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Musah View Post
    I'm actually setting the buffer to 4 bytes. So it looks something like this (tried to remove as much ObjC as I could)

    int buffer[sizeof(int)];
    //Do memory stuffs with buffer length set to sizeof(int) and the returned value for the address to buffer
    //Size of int of course is 4
    int var = 0;
    var = (int)*buffer;
    return var;
    You are actually setting the buffer to 16 bytes, not 4 bytes.
    Also, it was meant as a joke.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  4. #19
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Musah View Post
    I'm actually setting the buffer to 4 bytes. So it looks something like this (tried to remove as much ObjC as I could)

    int buffer[sizeof(int)];
    //Do memory stuffs with buffer length set to sizeof(int) and the returned value for the address to buffer
    //Size of int of course is 4
    int var = 0;
    var = (int)*buffer;
    return var;

  5. #20
    Musah's Avatar Corporal
    Reputation
    3
    Join Date
    Sep 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Alright, maybe I don't completely know what's going on with my memory reading method, but I'm kinda just learning as I go here.

  6. #21
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ...
    do you still try to use the GUID as a Pointer to something? Even when you cut the 8 byte big GUID into a 4 Byte integer, you won't get anything you would want (except you want some weired data or null pointerzzzZ).

  7. #22
    Musah's Avatar Corporal
    Reputation
    3
    Join Date
    Sep 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xalcon View Post
    ...
    do you still try to use the GUID as a Pointer to something? Even when you cut the 8 byte big GUID into a 4 Byte integer, you won't get anything you would want (except you want some weired data or null pointerzzzZ).
    If you really want to try to figure some ObjC/C:
    Code:
    + (int)loadDataForAddress:(mach_vm_address_t)Address Buffer:(UInt64*)DataBuffer BufLength:(mach_vm_size_t)Bytes{
        mach_vm_size_t retBytes = Bytes;
        kern_return_t  kReturn;
        
        kReturn = mach_vm_read_overwrite(globalVMTask,Address,Bytes,(vm_address_t)DataBuffer,&retBytes);
        if ((retBytes == Bytes) && (kReturn == 0))
        {
            return 0;
        }
        
        return 1;
    }

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Mysql and a few questions?
    By Arugos in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-22-2009, 12:14 PM
  2. A hello, and a few questions please?
    By djbreakah in forum World of Warcraft Bots and Programs
    Replies: 20
    Last Post: 08-28-2008, 02:53 AM
  3. A few questions and problems
    By Shadowphire in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-10-2008, 11:15 PM
  4. A few questions and a request.
    By bj234 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-15-2007, 07:58 PM
  5. im new here and i have just a few questions :D
    By murash_rulez in forum Community Chat
    Replies: 0
    Last Post: 03-01-2007, 04:15 AM
All times are GMT -5. The time now is 05:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search