#can someone please fill this for me?

77 messages · Page 1 of 1 (latest)

kind violet
#
use crate::types::{DriverFunctions, Memory, ReadResult, UPtr};

pub struct Driver {}

impl Driver {
    pub const fn uninitialized() -> Self {
        Self {}
    }
}

#[allow(unused)]
impl DriverFunctions for Driver {
    unsafe fn new(pid: u32) -> ReadResult<Self>
    where
        Self: Sized,
    {
        todo!("Add your own driver for read and write");
    }

    unsafe fn get_process_base(&mut self) -> ReadResult<UPtr> {
        todo!("Add your own driver for process base");
    }

    unsafe fn read(&mut self, data: Memory) -> ReadResult<()> {
        todo!("Add your own driver for read");
    }

    unsafe fn write(&mut self, data: Memory) -> ReadResult<()> {
        todo!("Add your own driver for write");
    }

    unsafe fn find_guard(&mut self) -> ReadResult<UPtr> {
        todo!("Add your own driver for guard");
    }
}

I do not know anything about rust. Its just a one time project thing that needs to be done. Thank you!!!

vague star
#

You're not providing any context at all on what your code is supposed to do. Nobody can divine what code is supposed to be written based on what you've posted.

Is this homework?

faint pelican
kind violet
#

its a script for a game

faint pelican
#

What is the game

#

What is the script meant to achieve

kind violet
#

its to assist aim for practice

faint pelican
#

Where does this trait come from

kind violet
#

its an fps game

kind violet
faint pelican
#

The thing is, we can't help you if you can't tell us what this code is, where it comes from, and what it should do

#

But as best as I can tell, you lack the necessary experience to be able to answer those questions

#

I don't think we can give you any more help than pointing you at the Rust book and telling you to go learn the language then come back, tbh

kind violet
#

i cant learn it that quick. Its just one thing

#

can i send u the files? will that help maybe?

faint pelican
#

I need to know what you want your code to do

kind violet
#

aight lemme explain

faint pelican
#

Your code looks like it's meant to access some low-level details of memory

#

Memory of which process

#

What does that memory look like

kind violet
#

valorant

faint pelican
#

How do we find, in that memory, the things you need to change

kind violet
#

its a cheat thing for valorant

#

just wanted to try it out

faint pelican
#

I'm afraid you've said the forbidden word

#

#rules forbids working on cheat development, because the mods believe it to be against discord's ToS

faint pelican
kind violet
#

well its not technically cheating if i am just using it to practice

faint pelican
#

What you've shown isn't a skeleton for implementing aim assist. It's a skeleton for implementing any cheat at all

kind violet
#

well it has more functions with a gui

faint pelican
#

Let's try something else. Are you familiar with C or C++?

kind violet
#

uhh nope

#

this is the folder structure

faint pelican
#

We can't just fill that in for you

#

That would amount to writing the entire aim assist in your stead

kind violet
#

no no all the things are done. when i run it in terminal, it just says like fill ur drivers

#

i can send u the whole file, that will help u can look it up? please?

faint pelican
faint pelican
kind violet
#

noone else is replying

#

u are the only one

faint pelican
#

Showing me more of the file won't really help either of us, is the thing

faint pelican
# kind violet what will?

You need to go learn the low-level details of manipulating memory with pointers, as well as of how processes work on your operating system (start by researching what a "process base") is

#

You might be able to ask #windows-dev to help you with that, since that's where you seem to be

#

You also need to learn most of Rust, else you won't really get anywhere: This is an API meant for experts

kind violet
#

well the thing is, I dont wanna learn the entire thing just for one thing

#

i know its stupid

faint pelican
#

You will have a nightmare of a time getting off the ground, and even if you do you will be lucky if you don't violently smash against a rock immediately

kind violet
faint pelican
kind violet
#

like pilots for the plane

faint pelican
#

You built the pilots

#

Now you need to build the device they actually use to fly

kind violet
#

ooh its the other way around

#

never knew one file could ruin the whole structure

#

what is this supposed to mean? like what are driver coms

faint pelican
# kind violet ooh its the other way around

Here's a TL;DR that might help:

You're writing an external program meant to attach itself to Valorant and mess with its internals. To do this, the code you're using expects to be told "how exactly do I attach myself to another program and mess with it"?

#

You need to implement the basic operations of "read memory" and "write memory" (plus a couple more technical things)

#

The code you're using should be able to take these basic building blocks and do the rest of the work. Like, say, figure out what part of the memory contains which information, and what exactly should be written there to get the effect you want

#

But the building blocks have to be provided

#

Unfortunately, these are both extremely low-level building blocks and unsafe. This is a terrible combination for "I don't want to learn the whole thing"

#

They're low-level, so you will have to learn some things. And they're unsafe, so you have to know all things to be sure you didn't mess up some crucial detail

kind violet
#

oof

#

thx for the help

jade stag
#

@kind violet valorant has amazing anti cheat system, if you try anything they will hardware ban you and you will need to use spoofers

#

unless you have years of experience with reverse engineering and this kind of stuff, its pretty much impossible to bypass it

kind violet
#

ooki

somber vale
#

hmm

#

so many valorant cheaters lately