• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Return a Steam Username

Hyperion

Founder
A quick, semi pointless snip of a steam username grabber. Looks in registry.. could probably make it return a saved password

(Untested in C++)

the .h:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic::Devices;

private ref class ModuleSteam
{
public:
static String ^getsname();
};
[/cpps]


the .cpp:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic::Devices;

String ^ModuleSteam::getsname()
{
Computer ^comp = gcnew Computer();
String ^spath = safe_cast<String^>(comp->Registry->GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Valve\\Steam", "SteamPath", ""));
String ^confpath = spath + "\\config\\SteamAppData.vdf";
array<String^> ^suser = comp->FileSystem.ReadAllText(confpath)->Split(gcnew array<String^> { "''" }, StringSplitOptions::None);

if (suser[9] != "")
{
suser[9] = suser[9];
return suser[9];
}
else
return "No Steam Found";
}
[/cpps]
 
Last edited:

Epicblood

Epic Member
Getting a steam password isn't all that hard.
It is stored in a .blob and encrypted using AES, but here's the kicker, the AES key is made up of info found in
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid
HKEY_CURRENT_USER\Software\Valve\Half-Life\Settings\io

(Unless of course they changed it, which I hope they have)
 

Skrbx

BETA Tester
Maybe this will help:

Code:
using namespace System;
using namespace Microsoft::Win32;
void PrintKeys( RegistryKey ^ rkey )
{

   // Retrieve all the subkeys for the specified key. 
   array<String^>^names = rkey->GetSubKeyNames();
   int icount = 0;
   Console::WriteLine( "Subkeys of {0}", rkey->Name );
   Console::WriteLine( "-----------------------------------------------" );

   // Print the contents of the array to the console.
   System::Collections::IEnumerator^ enum0 = names->GetEnumerator();
   while ( enum0->MoveNext() )
   {
      String^ s = safe_cast<String^>(enum0->Current);
      Console::WriteLine( s );

      // The following code puts a limit on the number 
      // of keys displayed.  Comment it out to print the 
      // complete list.
      icount++;
      if ( icount >= 10 )
            break;
   }
}

int main()
{

   // Create a RegistryKey, which will access the HKEY_CURRENT_USER 
   // key in the registry of this machine.
   RegistryKey ^ rk = Registry::CurrentUser;

   // Print out the keys.
   PrintKeys( rk );
}

Source: Click
 
Last edited:

Zanko

Enthusiast
Maybe this will help:

Code:
using namespace System;
using namespace Microsoft::Win32;
void PrintKeys( RegistryKey ^ rkey )
{

   // Retrieve all the subkeys for the specified key. 
   array<String^>^names = rkey->GetSubKeyNames();
   int icount = 0;
   Console::WriteLine( "Subkeys of {0}", rkey->Name );
   Console::WriteLine( "-----------------------------------------------" );

   // Print the contents of the array to the console.
   System::Collections::IEnumerator^ enum0 = names->GetEnumerator();
   while ( enum0->MoveNext() )
   {
      String^ s = safe_cast<String^>(enum0->Current);
      Console::WriteLine( s );

      // The following code puts a limit on the number 
      // of keys displayed.  Comment it out to print the 
      // complete list.
      icount++;
      if ( icount >= 10 )
            break;
   }
}

int main()
{

   // Create a RegistryKey, which will access the HKEY_CURRENT_USER 
   // key in the registry of this machine.
   RegistryKey ^ rk = Registry::CurrentUser;

   // Print out the keys.
   PrintKeys( rk );
}

Source: Click

Still getting errors, Error picture
 
Top