question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] [Tutorial] Import maFile from iDevices

See original GitHub issue

Requirements

  • Jailbroken iDevice (NOT ENTIRELY SURE, YOU MAY BE ABLE TO DO THIS WITHOUT JB)
  • File browser tweak on your iDevice (Filza recommended)
  • Notepad++ along with plugin called NppBplistPlugin, however currently it’s labeled as Notepad++ bplist plugin within the plugin manager. We need this to view the downloaded contents of our downloaded file from .../Documents/Steamguard/.

Important locations & files

  • /var/mobile/Containers/Data/Application/F7CE8###-####-####-####-############/ is the Steam app folder
  • The root folder (listed above) contains a file named .com.apple.blablabla.plist which has our device_id
  • .../Documents/Steamguard contains the file(s) we need to create the .maFile

Tutorial

Gathering required files and information

  • Note, if you’re using Filza, make sure to toggle “WebDAV Server” within the app’s settings.
  1. On your iDevice, open Filza or any other tweak/app to browse your filesystem to the Steam app folder. Location is listed above, ignore the #, it’s there for my privacy in case folders are unique.
  2. Either using the WebDAV server within Filza or other means, download the files under .../Documents/Steamguard. Do not rename them or anything to be safe. We will use this to create our .maFile manually as SDA currently does not support iDevice imports.
  3. Now we need to get our unique device id. Go back to the root Steam application folder and I’d recommend simply tapping to open the only .plist file there (see above for partial name). Next, tap Root to expand the menu and tap the i in the MCMMetadataUUID variable. Copy the value and send it to yourself. OR you can download that file as well and I’m sure using Notepad++ you can still retrieve the UUID.
  • It’s important to get the UUID located within the .plist as our actual devices UUID is not equal the UUID within the .plist file. Better safe then sorry.

Creating our .maFile to import

  • If you haven’t already, download Notepad++ and install the Notepad++ bplist plugin via the plugin manager.
  1. Open the downloaded Steamguard-YourSteamIDHere file using Notepad++. Scroll down to where you see <string>shared_secret</string>. From here I recommend labeling each variable and it’s value. Do not save the file should you choose to modify the file. Click here to see an example on how I labeled my file. I highly doubt these 24 lines will change it’s order. Keep in mind, the first 12 lines, as shown in the picture, represent the variables, followed by the next 12 lines whose values are assigned to the variables above.
  2. Create a new file called _STEAMID_.maFile, make sure to scroll up and select All files as the file type, and preferably through Notepad++ and not windows explorer/notepad. Save the file within the folder maFiles, if it’s not there, make it.
  3. Using the .maFile’s manifest listed below under the Manifiest Template headline and copy & paste the necessary values. Copy values from your downloaded Steamguard - SteamID and replace the REPLACEME text.
  • IF REPLACEME IS WITHIN QUOTATIONS, MAKE SURE TO KEEP THE QUOTES!

Importing our .maFile

  • By this step, you should have no longer have any REPLACEME occurrences within your newly created .maFile (located within .../SteamDeskAuth/maFiles)
  1. Open SDA. Click File -> Import Account -> From maFile
  • Don’t enter anything into the text box as we never set any encryption, yet.
  1. Click “Select .maFile…” and browse to and select the newly created .maFile, located within /SDA/maFiles if you followed my instructions.

Encryption - Optional

  • Personally I haven’t done this yet but I’m 99% sure it will work.
  1. Within the account list box, make sure to select the account you wish to encrypt.
  2. Click Setup Encryption and follow the steps, simple right?
  • If you regret this, after clicking setup encryption, just hit cancel

Final Remarks

Well, we’re done! You should have and hopefully successfully the steam guard auth code from your iDevice to SDA. Make sure you double check to see if the code displayed on your iDevice corresponds with the code within the SDA application. I’m not sure if device_id matters when creating .maFile, but when using SDA to setup a new account, it generates a new and random value. For instance, when setting up the same steam account, twice, it’s device_id value was assigned android:###blablabla###.

.maFile Template

{"shared_secret":"REPLACEME","serial_number":"REPLACEME","revocation_code":"REPLACEME","uri":"REPLACEME","server_time":REPLACEME,"account_name":"REPLACEME","token_gid":"REPLACEME","identity_secret":"REPLACEME","secret_1":"REPLACEME","status":1,"device_id":"iphone:REPLACEME","fully_enrolled":true,"Session":{"SessionID":"","SteamLogin":"","SteamLoginSecure":"","WebCookie":"","OAuthToken":"","SteamID":REPLACEME}}

manifest.json Template - Not needed

{"encrypted":false,"first_run":false,"entries":[{"encryption_iv":null,"encryption_salt":null,"filename":"REPLACEME.maFile","steamid":REPLACEME},{"encryption_iv":null,"encryption_salt":null,"filename":"REPLACEME.maFile","steamid":REPLACEME}],"periodic_checking":false,"periodic_checking_interval":5,"periodic_checking_checkall":false,"auto_confirm_market_transactions":false,"auto_confirm_trades":false}

  • Ignore, only here for reference or for someone who doesn’t have the file.
  • If you don’t have the file, create it just as you created .maFile, but instead name the file manifest.json.
  • If you want to add more accounts, after the element within entries, added a comma followed by {"encryption_iv":null,"encryption_salt":null,"filename":"REPLACEME.maFile","steamid":REPLACEME}
  • However, it’s easier to just import the .maFile

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:35

github_iconTop GitHub Comments

1reaction
hellotinh03commented, Nov 17, 2022

As of the Steam Mobile App update on Oct 13 2022, this method doesn’t work anymore. The authentication system got a rework. Only thing I can find in the Documents folder is a log file named ‘current.txt’.

1reaction
melvyn2commented, Jul 20, 2020

https://gist.github.com/melvyn2/aaf514254f87d7f44b8140537cce6c87 is a python script that will convert your maFiles to the iOS format. You’ll need to have a working python3 installation, with pip. The script requires bpylist, which you can install by running pip3 install bpylist. Start by downloading the script, then copying your target maFile to the same folder as the script (you don’t need to copy manifest.json). Run the script with python3 convert.py your_steamid_here.maFile, replacing your_steamid_here with your steamid, or whatever the maFile is named. The script will create a file named Steamguard-your_steamid_here.plist, which is the file that you can put in the documents folder of steam on your phone. Simply follow the instructions given before, but place the file into the Documents folder instead of copying it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Steam Desktop Authenticator - [SDA COMPLETE GUIDE]
How to transfer your SMA to SDA without trade hold 17:13 - 8. ... new SDA in a new Folder 18:55 - 9.4...
Read more >
Extract Steam Authenticator .maFile from non-root Android ...
maFile from non-root Android device (any version) ... Open the Steam app and transfer your authenticator (Offical steam guide; you will have no...
Read more >
[Guide] Extracting Steam Guard TOTP secrets from the ...
[Guide] Extracting Steam Guard TOTP secrets from the Android app for use in Bitwarden or other authenticators without root.
Read more >
SDA - WebDivision
If your .maFile is encrypted, then to decrypt, run SDA and change your password in SDA to void! Or download SDA 47 and...
Read more >
Activation section, "Sending" - CounterBot - CSGO.com
See the SDA File->Import account>From the android device ... Go to the folder with the bot "ProgramFiles/maFiles" and rename the file "manifest!scr.json" in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found