Giter VIP home page Giter VIP logo

uniref's Issues

[CloseHandle] error code: 6

Hello, for some reason, the descriptor closes with error 6
Here is my script for the DEVOUR game in Python:

def GetListAssemblies(ref: WinUniRef):
    list_asm = ref.list_assemblies()
    print("LIST ASSEMBLIES --> \n", list_asm) #Getting List Assemblies
def ScriptFlashlight(ref: WinUniRef):
    if ref.use_il2cpp():
        nolan_beh = ref.find_class_in_image("Assembly-CSharp.dll", "NolanBehaviour")
        offset_flashlight_fieldrange = nolan_beh.find_field("initialFlashlightRange")
        type_name_field = nolan_beh.find_field("initialFlashlightRange").type_name
        type_flashlight = offset_flashlight_fieldrange.field_type
        print("FLASHLIGHT FIELD TYPE: ", type_name_field) #If you See System.Single it's float :D
        if offset_flashlight_fieldrange.is_static():
            print("Field Is Static")
        else:
            if offset_flashlight_fieldrange.is_const():
                print("Field Offset is Const")
            else:
                addresses = nolan_beh.guess_instance_address()
                for addr in addresses:
                    nolan_beh.instance = addr
                    
if __name__ == "__main__":
    xxx = WinUniRef("DEVOUR.exe")
    GetListAssemblies(xxx)
    print("Trying To Initializating Flashlight Range Address...")
    ScriptFlashlight(xxx)

idk, why is CloseHandle Error 6, but for some reason it seems to me that this is due to a 32-bit process. Pls Help Me :)

AttributeError: 'NoneType' object has no attribute 'find_method'

from uniref import WinUniRef
import win32api
import win32com
import win32ctypes
import ctypes
def GetCurrentProcess(processname : str):
    return WinUniRef("{}.exe".format(processname))

def Main():
    uniref_func = GetCurrentProcess("CrushCrush")
    diamonds = uniref_func.find_class_in_image("Assembly-CSharp.dll", "Utilities") #Award Diamonds is Static Bool... So You Can Get Function EASILY!!!
    AwardDiamonds = diamonds.find_method(method_name="AwardDiamonds", param_count=2)
    if AwardDiamonds.is_static() is True:
        AwardDiamonds(args=[4000000, True])
    else:
        print("Failed to Get Static Address")
        exit(5003)
if __name__ == "__main__":
    Main()

I'm Get This Error when This Library is Trying Finding Method

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.