Commit 243a083e by Maikel

Changed to older WA token version

parent e849add9
......@@ -488,7 +488,7 @@ function resetSocket() {
$wa = null;
$tracking_numbers = [];
// Update token
updateTokenData();
//updateTokenData();
setupWhatsappHandler();
}
......@@ -720,7 +720,7 @@ do {
// Upgrade DB if it's old
checkDBMigration($DBH);
// Update tokens if outdated
updateTokenData();
//updateTokenData();
// Nag about config.php if it's old
checkConfig();
try {
......
......@@ -19,11 +19,11 @@ class Constants
const WHATSAPP_REQUEST_HOST = 'v.whatsapp.net/v2/code'; // The request code host.
const WHATSAPP_SERVER = 's.whatsapp.net'; // The hostname used to login/send messages.
const DEVICE = 'armani'; // The device name.
const WHATSAPP_VER = '2.16.31'; // The WhatsApp version.
const OS_VERSION = '5.1.1';
const MANUFACTURER = 'OnePlus';
const BUILD_VERSION = 'YOG4PAS3JL';
const PLATFORM = 'Android'; // Platform used: NOTE THAT ONLY ANDROID IS SUPPORTED ATM
const WHATSAPP_USER_AGENT = 'WhatsApp/2.16.31 Android/5.1.1 Device/OnePlus-A0001'; // User agent used in request/registration code.
const WHATSAPP_VER = '2.12.556'; // The WhatsApp version.
const OS_VERSION = '4.3';
const MANUFACTURER = 'Xiaomi';
const BUILD_VERSION = 'JLS36C';
const PLATFORM = 'Android'; // Platform used: NOTE THAT ONLY ANDROID IS SUPPORTED ATM
const WHATSAPP_USER_AGENT = 'WhatsApp/2.12.556 Android/4.3 Device/Xiaomi-HM_1SW'; // User agent used in request/registration code.
const WHATSAPP_VER_CHECKER = 'https://coderus.openrepos.net/whitesoft/whatsapp_scratch'; // Check WhatsApp version
}
......@@ -7,7 +7,7 @@ function generateRequestToken($country, $phone, $platform)
switch ($platform) {
case 'Android':
$signature = 'MIIDMjCCAvCgAwIBAgIETCU2pDALBgcqhkjOOAQDBQAwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFDASBgNVBAcTC1NhbnRhIENsYXJhMRYwFAYDVQQKEw1XaGF0c0FwcCBJbmMuMRQwEgY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sq1sshN9T3gh+UUp0wIw0xgHYT1bnCjEqOJQKCRrWxdAe2yvsDeCJL+Y4G3PRD2HUF7oUgiGo8vGlNJOaux26k+A2F3hj8A=');
$data = base64_decode($signature).base64_decode($classesMd5).$phone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment