Giter Site home page Giter Site logo

among-us-memory's Introduction

AmongUsMemory (Deprecated)

2022-03-20: No longer update this repository.

It's Among us hacking example for students.

image blog post

You are responsible for any disadvantages caused by using this src.
It only working on downloaded from steam..

Please use only for study. Do not abuse it!

Offset update guide here! : https://github.com/shlifedev/AmongUsMemory/blob/master/OffsetGuide.md
It's very easy. does not require il2cpp dumper.


How to Use

  1. Download Source Code
  2. Add Reference AmongUsMemory Your Project
  3. Let's write your cheat code and build project!

Example Start Cheating.

      
       // Readed Player List
       static List<PlayerData> playerDatas = new List<PlayerData>(); 
       
       // Update Your Cheat 
       static void UpdateCheat()
       {
           while (true)
           { 
               foreach (var data in playerDatas)
               {
                   Console.WriteLine("Find Player Name :: " + Utils.ReadString(data.PlayerInfo.Value.PlayerName));
               } 
               System.Threading.Thread.Sleep(100); 
           }
       }
       
       // Update Player List EveryGame.
       static void OnDetectJoinNewGame()
       {
           playerDatas = HamsterCheese.AmongUsMemory.Cheese.GetAllPlayers();
       }
       
       static void Main(string[] args)
       {
           // Cheat Init
           if (HamsterCheese.AmongUsMemory.Cheese.Init())
           { 
               // Update Player Data When Join New Map.
               HamsterCheese.AmongUsMemory.Cheese.ObserveShipStatus(OnDetectJoinNewGame);

               // Start Your Cheat 
               CancellationTokenSource cts = new CancellationTokenSource();
               Task.Factory.StartNew(
                   UpdateCheat
               , cts.Token); 
           }

           System.Threading.Thread.Sleep(1000000);
       }
       

Example Cheat

This is my private cheat :) https://www.youtube.com/watch?v=Cfk9_wNjEto&feature=youtu.be

offset is no longer updated. if you have new offset pull request plz.

among-us-memory's People

Contributors

crispcrew avatar shlifedev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

among-us-memory's Issues

How to get playerName?

Hi

it works well but I can't get PlayerName.

How do I convert IntPtr(PlayerInfo.PlayerName) to string?

How to set red is if impostor

So the code is

if (data.PlayerInfo.Value.IsImpostor == 1)

and then what? to set the name to red in game, not in console.

PlayerName

I'm working with the PlayerName pointer to a struct for said PlayerName which includes a length and value. Now I can only get the first character.

My Discord: OsOmE1#0019

Code crashes when not in a game

If I make code to set the kill cooldown to 0 while a checkbox is checked if I am not in a game it crashes with an error code of something related to the value is set to nil at this line
"var data = (T)Marshal.PtrToStructure(gcHandle.AddrOfPinnedObject(), typeof(T));" (Saying T is not set)
I checked don't break on this error so I don't have the exact error but that is as close as I remember

[Feature request] More write mem functions, fix write mem, add documentation, update offset

Can you add functions to write:

  • Color ID
  • Pet ID
  • Hat ID
  • Name

Also as of writing this, all write memory functions do not work, possibly due to me not knowing how to use them properly which leads me into my next request

Write documentation, If you need help with writing it I would be glad to help but I need a working example of every function and so far a few don't work.

Finally, you did add a guide on how to update the offset but it is not totally clear and it is easier if u do it lol.

How to know the structure & field type ?

Hello,

In your code you've done that : var data = (T)Marshal.PtrToStructure(gcHandle.AddrOfPinnedObject(), typeof(T)); to get data from a memory adress.

T will be the structure (ex: PlayerInfo, PlayerControl ...), but how do you get theses structures ?

For example, PlayerControl have a public IntPtr FootSteps; how can I interact with this pointer & how can I get the structur assiocated with it.

I've tried this -> var targetPointer = Utils.GetMemberPointer(Instance.FootSteps, typeof(PlayerControl), "FootSteps"); Cheese.mem.WriteMemory(targetPointer.GetAddress(), "float", value.ToString("0.0")); but it doesn't work.

How can i know the type of FootSteps & how do you get all your structure ?? (PlayerInfo, PlayerControl...).

i'm a Junior Software developer (C#), so it's a bit confused to me, I use this project to study memory interaction, thanks a lot for your sources !

The example code seems broken.

The game was updated yesterday, could this have affected your API? I don't get any useful output, just a flashing screen with the following:

| offset | netId | OwnerID | PlayerID | spawnid | spawnflag |

Figuring out who killed who

I see that there onDie event is fired when isDead value changes.

Is it reliable to calculate the relative position of imposters to where the player died, or is there a more precise way to figure out which imposter killed which player?

Questions

Could you use this to allow yourself to be imposter??

How to write player positional data?

Can someone provide me with the code to change the players position? I've tried rewriting the WriteMemory_IsImposter() multiple times now to make it change the player position, but with no success. Please someone send me a a WriteMemory_Position() method because this is driving me insane lmao

Write Light range does not work

I am using the code data.WriteMemory_LightRange(100.0f); but it just flickers to full bright every couple of seconds and then imminently goes back to normal brightness.

What is ShipStatus.DirtyBits?

Sorry if this has been answered before but what is ShipStatus.DirtyBits, its a uint but its odd because sometimes its 0 and sometimes its a value.

How to be impostor?

(I'm not english)
I found "data.WriteMemory_Impostor(value);" string, but what value i need to use here? Please help!

(my code is:)
if (data.IsLocalPlayer == 1)
data.WriteMemory_Impostor(1);

The AmongUsClient struct is unused.

The struct for the AmongUsClient is never read in from memory. Is there any way you could add this?
Or if you could explain how you found the PlayerControl pointer offset, then I could maybe help finding this offset.

High CPU usage and not detecting map change

Hello, I've started to write a client on your base, but it has a really high CPU Usage (40%). I'm running i7 9th gen, rtx2060, 16gb ram and ssd (my rig is good). I've tried to make the delay between memory reads bigger, but the client stops working. Could you optimize the memory reader?

Nugget Error ?

I'm not sure if I'm doing something wrong (kind of new to coding still) but I get this error when I build

Severity Code Description Project File Line Suppression State Error NuGet Package restore failed for project AmongUsMemory: Unable to find version '1.2.19' of package 'Memory.dll'. C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'Memory.dll.1.2.19' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'. https://api.nuget.org/v3/index.json: Package 'Memory.dll.1.2.19' is not found on source 'https://api.nuget.org/v3/index.json'. . Please see Error List window for detailed warnings and errors.

I've tried some different things but none seem to work.

Update Pointers

Tried to run the example code.
But i got a null pointer exception in GetAllPlayers() because
byte[] playerAoB = Cheese.mem.ReadBytes(Pattern.PlayerControl_Pointer, Utils.SizeOf());
returns a null pointer.

So my question is, do I have to update the pointers or are they constant?

Module GameAssembly.dll was not found in module list!

Just downloaded the repo and compiled it, the Memory.dll logs:

[DEBUG] memory scan starting... (start:0x00010000 end:0x7ffffffeffff time:7:18:11 )
[DEBUG] memory scan completed. (time:7:18:12 )
Module GameAssembly.dll was not found in module list!
Modules: [Among Us.exe, 5963776],[ntdll.dll, 140710331547648],[wow64.dll, 140710310510592],[wow64win.dll, 140710321848320],[wow64cpu.dll, 2001403904]
[DEBUG] memory scan starting... (start:0x00010000 end:0x7ffffffeffff time:7:18:12 )
[DEBUG] memory scan completed. (time:7:18:13 )

As such the hack gives exception no data can be read since GameAssembly is not found.

Any idea why this might be?

Why should I copy '7' bytes from player.getdata() address?

From the offset guide link in README.md, I followed through all steps and working just fine, but i don't understand why I should copy 7 bytes from hex view of player.getdata()? why not 4 or 6 or anything else? How can I know how many bytes to copy?

Console Blinking Repeativly.

After checking out the source i cant see the issue. The console keeps blinking repeatedly and giving me a stroke. Does anyone have some info on how to stop this?

emergency meeting/dead body found event?

I want to write a discord bot that mutes/unmutes everyone on a meeting/dead body found. Can keep dead people muted with the existing stuff, just wondering if an event can be raised for whenever a vote is happening?

How to reveal maps

How to reveal maps? The dark one. How do i do that? Is that an offset to do that

Cannot get it working

Updated the offsets, tried the example program and I get an exception. Tried my own program and it doesnt log anything to console at all.

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.