Code Monkey home page Code Monkey logo

steamcmd-2fa's Introduction

steamcmd-2fa

A simple tool that automatically generates a 2FA Steam Guard code and then runs steamcmd with that login and the rest of your arguments.

Important

Please keep your seed/secret VERY safe as people with your seed can easily bypass your 2FA by simply generating the Steam Guard codes themselves!

Installation

Install a pre-built application, direct download or use curl:

curl -#SfLo /usr/bin/steamcmd-2fa \
  https://github.com/WoozyMasta/steamcmd-2fa/releases/latest/download/steamcmd-2fa
chmod +x /usr/bin/steamcmd-2fa

You can either clone this and build it yourself or use the supplied binaries for both Linux and Windows.

git clone https://github.com/WoozyMasta/steamcmd-2fa
cd steamcmd-2fa
cargo build

Usage

Usage: steamcmd-2fa.exe [OPTIONS] --username <USERNAME> --password <PASSWORD> --secret <SECRET>

Options:
  -u, --username <USERNAME>        Username to login [env: USERNAME=user]
  -p, --password <PASSWORD>        Password to login [env: PASSWORD]
  -s, --secret <SECRET>            2FA shared_secret (base64 encoded) [env: SECRET]
  -c, --code-only                  Generates only TOTP code for authentication
  -a, --args <ARGS>                Arguments to pass to steamcmd [default: "+@ShutdownOnFailedCommand 1 +quit"]
  -b, --before-args <BEFORE_ARGS>  First positional args like +force_install_dir
  -d, --path <PATH>                Path to steamcmd binary, [env: STEAMCMD_BIN_PATH=]
                                   default one of:
                                    - /home/steam/steamcmd/steamcmd.sh
                                    - /usr/bin/steamcmd
                                    - /home/steam/steamcmd
                                   or
                                    - C:\steamcmd\steamcmd.exe
  -h, --help                       Print help
  -V, --version                    Print version

For example, instead of running steamcmd +login USER +quit, you would run:

steamcmd-2fa --path /some/path/steamcmd --username USER --password PASSWORD --secret SECRET --args +quit
steamcmd-2fa -u USER -p PASSWORD -s SECRET -b +force_install_dir -a '+app_update 223350 +quit'
USER=user PASSWORD=pass SECRET=secret steamcmd-2fa

To simply retrieve a token:

steamcmd-2fa -s SECRET -c
SECRET=secret steamcmd-2fa -c

You can get your 2FA seed by various methods. Your seed here is the shared_secret.

Note

I am not responsible if you somehow manage to lose/get yourself locked out of your account.

License

MIT

steamcmd-2fa's People

Contributors

weilbyte avatar woozymasta avatar

Stargazers

Erin Sharp avatar Dmitriy Okladin avatar

Forkers

awilderin

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.