whatsapp-framework icon indicating copy to clipboard operation
whatsapp-framework copied to clipboard

What is the "password"

Open lautiisca opened this issue 6 years ago • 1 comments

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

lautiisca avatar Mar 01 '20 21:03 lautiisca

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

mostepunk avatar Aug 07 '20 14:08 mostepunk