Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the "password" #272

Open
lautiisca opened this issue Mar 1, 2020 · 1 comment
Open

What is the "password" #272

lautiisca opened this issue Mar 1, 2020 · 1 comment

Comments

@lautiisca
Copy link

lautiisca commented Mar 1, 2020

Hi everybody!
Im new

I want to know what is the password

"__version__": 1,
"cc": "549",
"client_static_keypair": "wFgqpGVn/xjGW2Bj4SLGxUVw9uXXXXXXXXXXXXXXXX6r1uhnzkaSNUViPt44by6vkaY05pB8UGQ=="
"edge_routing_info": "CAIICA==",
"expid": "tVJHMakPQgXXXXXXXXXXYw==",
"fdid": "bd16ec52-cc1f-40d6-aXXXXXXXXXX34485f",
"id": "jVDOKiidrio+XXXXXXXXXXnFxI4=",
"login": "5493512XXXX77",
"mcc": "722",
"mnc": "341",
"phone": "5493512XXXX77",
"sim_mcc": "000",
"sim_mnc": "000"

}

That is my JSON file,
what i need put in the config.py file??
Thank you

@mostepunk
Copy link

mostepunk commented Aug 7, 2020

On Linux after registration these config file lays here ~/.config/yowsup/<your_phone_number>
You should modify yor run.py like here


class MacStack(object):
    def __init__(self, profile):
        stackBuilder = YowStackBuilder()

        self._stack = stackBuilder\
            .pushDefaultLayers()\
            .push(MacLayer)\
            .build()
        # instead of self.stack.setCredentials(credentials)
        self._stack.setProfile(config.credentials['phone'])

    def set_prop(self, key, val):
        self._stack.setProp(key, val)

    def start(self):
        print("[Whatsapp] Mac started\n")

        self.stack.broadcastEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECT))

        try:
            self.stack.loop(timeout=0.5, discrete=0.5)
        except AuthError as e:
            print("Auth Error, reason %s" % e)
        except KeyboardInterrupt:
            print("\nYowsdown")
            sys.exit(0)

Yowsup will find config.json in directory and takes all needed information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants