Code Monkey home page Code Monkey logo

deviceauthgenerator's Introduction

DeviceAuthGenerator

Python PEP8

Program to easily create device auths for use in Epic Games API authentication.


Discord Support:


Example Usage:

Usage:

DeviceAuthGenerator is pretty simple to use. You can either use run the Python script directly or use the pre-compiled executable in the releases.

  1. Install the requirements (only applies to the Python script, you don't need to install requirements for the executable).

    pip install -U -r requirements.txt
    
  2. Run DeviceAuthGenerator, either being generator.py or DeviceAuthGenerator.exe.

  3. Login the the Epic Games account you wish to generate device auths for when prompted.

  4. Wait 5 or less seconds for device auths to be generated. They will then be pasted into the console, copied to clipboard & saved in device_auths.json which is compatible out of the box with fortnitepy.

Example responses:

Console

Generated device auths for: xMistt.
{
    "device_id": "c403e1ea918b4414b01f6292ee7bbad2",
    "account_id": "ab0f2bb71b1d4e73ac467bd1b1072061'",
    "secret": "61E9F2025EA14493A63CD94AD1B9C569",
    "user_agent": "DeviceAuthGenerator/1.0.0 Windows/10",
    "created": {
        "location": "London, England",
        "ip_address": "215.42.168.146",
        "datetime": "2021-05-15T16:57:46.372Z"
    }
}

File

{
    "[email protected]": {
        "device_id": "c403e1ea918b4414b01f6292ee7bbad2",
        "account_id": "ab0f2bb71b1d4e73ac467bd1b1072061",
        "secret": "61E9F2025EA14493A63CD94AD1B9C569",
        "user_agent": "DeviceAuthGenerator/1.0.0 Windows/10",
        "created": {
            "location": "London, England",
            "ip_address": "215.42.168.146",
            "datetime": "2021-05-15T16:57:46.372Z"
        }
    }
}

Want to compile it yourself?

If you are uneasy about running a random executable, you can compile DeviceAuthGenerator yourself by installing the requirements and pyinstaller, then you can compiile it by the command:

pyinstaller --onefile -i icon.ico -n DeviceAuthGenerator generator.py

The executable will be found in /dist.

License:

By downloading this, you agree to the Commons Clause license and that you're not allowed to sell this repository or any code from this repository. For more info see https://commonsclause.com/.

deviceauthgenerator's People

Contributors

jackblk avatar kyeondiscord avatar vsxd avatar xmistt 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

deviceauthgenerator's Issues

invalid grant

{
    "errorCode": "errors.com.epicgames.common.oauth.invalid_token",
    "errorMessage": "Client id mismatch in credentials for this pin grant",
    "messageVars": [],
    "numericErrorCode": 1012,
    "originatingService": "com.epicgames.account.public",
    "intent": "prod",
    "error_description": "Client id mismatch in credentials for this pin grant",
    "error": "invalid_grant"
}

Program not working

When I open the .exe the file redirects us but website only asks to authorize and not any code, this is the error on the program- { "errorCode": "errors.com.epicgames.common.oauth.invalid_token", "errorMessage": "Client id mismatch in credentials for this pin grant", "messageVars": [], "numericErrorCode": 1012, "originatingService": "com.epicgames.account.public", "intent": "prod", "error_description": "Client id mismatch in credentials for this pin grant", "error": "invalid_grant" }
image

pkg_resources.DistributionNotFound error for pyinstaller_hooks_contrib when compilation is attempted

Traceback (most recent call last):
  File "/usr/bin/pyinstaller", line 33, in <module>
    sys.exit(load_entry_point('pyinstaller==4.5.1', 'console_scripts', 'pyinstaller')())
  File "/usr/bin/pyinstaller", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib64/python3.9/site-packages/PyInstaller/__init__.py", line 54, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyinstaller-hooks-contrib>=2020.6' distribution was not found and is required by pyinstaller

pyinstaller-hooks-contrib version 2021.3 is currently installed. running on an updated opensuse tumbleweed install

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.