Code Monkey home page Code Monkey logo

g-mem's Introduction

Hi there G-Gang 👋

Contact me:

  • Twitter: @sirjonasxx
  • Discord: sirjonasxx#2633 (for G-Earth help, use the #help channel in the G-Earth Discord)
  • Habbo: sirjonasxx-II (.com) | sirjonasxx-VII (.nl)

If you have G-Earth related issues, check the Troubleshooting page

Join the G-Earth Discord server

g-mem's People

Contributors

kslidehh avatar sirjonasxx avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kslidehh dorving

g-mem's Issues

`task_for_pid` issues on MacOS

G-mem issue on Mac

I cloned the G-Mem application, and I found out that the program exits when checking whether a specific process is a flash process

int is_flash_process(int pid) 

Specifically it exits the program at

ERROR_A:
    fprintf(stderr, "Sorry, failed\n");
    exit(2);

When I replace the exit(2) statement with

free(procargs);

It does successfully parse all the processes.

Then this check fails:

    kret = task_for_pid(mach_task_self_, mPid, &task);
    if (kret != KERN_SUCCESS)
    {
        std::cout << "task_for_pid() failed. kret = " << kret << "\n";
        exit(EXIT_FAILURE);
    }

Instead I get

#define KERN_FAILURE                    5
/* The function could not be performed.  A catch-all.
 */

This is likely due to me having SIP on, will try again in a bit with SIP off.

Update: Okay even with SIP disabled the issue persists.

I found the following post on stackoverflow: https://developer.apple.com/forums/thread/701647
It states that for security reasons in later version of MacOS task_for_pid only works for processes that have com.apple.security.get-task-allow set and are running as root, so this applies to the Habbo client.
I am not sure how to set get-task-allow yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.