Giter Site home page Giter Site logo

gmh5225 / winescape Goto Github PK

View Code? Open in Web Editor NEW

This project forked from momo5502/winescape

0.0 0.0 0.0 669 KB

Something with wine. I always wanted to try that out, but never had the time. Now I do.

License: GNU General Public License v3.0

C++ 30.25% C 68.81% Lua 0.91% Batchfile 0.03%

winescape's Introduction

winescape

A successful attempt at 'escaping' wine.

While wine itself does not make any attempts at isolating processes from the linux environment, I have not found a handy way to access the linux OS.

To be exact, this means loading shared objects and accessing symbols using dlopen/dlsym from an all native windows component.

What this essentially does is to query the real pid (GetCurrentProcessId() is a lie ๐Ÿ˜ข) by manually issuing the respective syscall.
From there, it searches the libc inside of /proc/[pid]/maps through the mapped filesystem.
Once that is found, it resolves dlsym and creates a calling convention wrapper.
The rest is a piece of cake ๐Ÿ˜ƒ

Resolving dlsym was shamelessly copied from here: https://modexp.wordpress.com/2019/04/24/glibc-shellcode/#dlsym

winescape's People

Contributors

momo5502 avatar

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.