Jump to content

Recommended Posts

6 hours ago, Gusik Prasetyo said:

Hello, how to make otp using api bro? I am interested to learn it.

 

May be OTP only used for request lost or forgot password. So it can minimize our number got banned.

 

Hello mas bro, i come from binjai. Not far from medan. 

I tried to develop an OTP system but everything is messed up. I'll explain the problem: let's say you created an account and you are the admin with the phone number 6211111111. There is another person who registered but hasn't linked their phone number yet. The next day, they log in again. How will they receive the OTP if they haven't entered a phone number? Where will the OTP be sent?

The OTP system would be good if you were using it for another script, such as a script for online shopping sites like Shopee or Lazada, where you activate membership through OTP using an API. In that case, it would work well. However, if you are using OTP for the same script, things get very confusing.

I suggest that if you want to implement OTP, do it via email or Google 2FA.

6 minutes ago, The Billionaire said:

Please can someone help, why do I need to always rescan, before it connects just like the script goes idle time

Yes, this issue is affecting everyone. WhatsApp updated its WebSocket, which led to connection problems with WhiskeySockets. We are all waiting for their new update to be compatible with the latest socket used by WhatsApp. You can follow their news in the issues section on their GitHub page:
(github .com/WhiskeySockets/Baileys/issues)

11 minutes ago, The Billionaire said:

Please can someone help, why do I need to always rescan, before it connects just like the script goes idle time

access: yourweb.com/schedule-run if the page load to blank page with some number inside (show 0 in top left corner), the cron should work, but if the result blank maybe any problem with your server so the cronjob not working properly

5 minutes ago, Bajra Al Faruq said:

image.thumb.png.02292da8a4833a902b8f48801e8c0c37.png

 

pesan terjadwal belum jalan

ini cronjob yg digunakan @Magd Almuntaser

 

image.thumb.png.54168006d2bedd79e3e486ead3777d43.png

Sekarang Anda memberi tahu saya bahwa auto message dan campaign tidak berfungsi, masalah ini telah saya perbaiki di versi saya, jadi bagaimana bisa tidak berfungsi dengan Anda?
Buka tautan berikut ini dan beri tahu saya apakah halaman putih dengan angka 0 muncul:
 

yoursite.com/schedule-run

Apakah tautan situs web Anda menggunakan https dan apakah Anda telah menginstal file key.pem dan cert.pem yang telah saya jelaskan sebelumnya? Atau masih menggunakan http?
 

4 minutes ago, Magd Almuntaser said:

Sekarang Anda memberi tahu saya bahwa auto message dan campaign tidak berfungsi, masalah ini telah saya perbaiki di versi saya, jadi bagaimana bisa tidak berfungsi dengan Anda?
Buka tautan berikut ini dan beri tahu saya apakah halaman putih dengan angka 0 muncul:
 

yoursite.com/schedule-run

Apakah tautan situs web Anda menggunakan https dan apakah Anda telah menginstal file key.pem dan cert.pem yang telah saya jelaskan sebelumnya? Atau masih menggunakan http?
 

image.png.5e6616f46ee80a77b68959acfdc274c3.png

 

angka 0 yg keluar

On 7/13/2024 at 4:46 PM, agus amin said:

Replace Server.js and Restart Node.js

"use strict";

// Copyright By Ilman Sunanuddin, M pedia
// Email : Ilmansunannudin2@gmail.com
// website : https://m-pedia.co.id
// Whatsap : 6282298859671
// ------------------------------------------------------------------
// You are not allowed to share or sell this source code without permission.

const wa = require("./server/whatsapp");
const fs = require("fs");
const dbs = require('./server/database/index');
require("dotenv").config();
const lib = require("./server/lib");
global.log = lib.log;

/**
 * EXPRESS FOR ROUTING
 */
const express = require("express");
const app = express();
const http = require("http");
const server = http.createServer(app);

/**
 * SOCKET.IO
 */
const { Server } = require("socket.io");
const io = new Server(server);
const port = process.env.PORT_NODE;
app.use((req, res, next) => {
  res.set("Cache-Control", "no-store");
  req.io = io;
  // res.set('Cache-Control', 'no-store')
  next();
});

const bodyParser = require("body-parser");

// parse application/x-www-form-urlencoded
app.use(
  bodyParser.urlencoded({
    extended: false,
    limit: "50mb",
    parameterLimit: 100000,
  })
);
// parse application/json
app.use(bodyParser.json());
app.use(express.static("src/public"));
app.use(require("./server/router"));

// console.log(process.argv)

io.on("connection", (socket) => {
  socket.on("StartConnection", (data) => {
    wa.connectToWhatsApp(data, io);
  });
  socket.on("ConnectViaCode", (data) => {
    wa.connectToWhatsApp(data, io, true);
  });
  socket.on("LogoutDevice", (device) => {
    wa.deleteCredentials(device, io);
    wa.connectToWhatsApp(device, io);
  });
});
server.listen(port, console.log(`Server run and listening port: ${port}`));

dbs.db.query("SELECT * FROM devices WHERE status = 'Connected'", (err, results) => {
    if (err) {
      console.error('Error executing query:', err);
    }
    results.forEach(row => {
      const number = row.body;
      if (/^\d+$/.test(number)) {
        wa.connectToWhatsApp(number);
      }
    });
});

 

 

27 minutes ago, The Billionaire said:

@agus amin please can you add the link to the post i cant find it

He means this post 👆

Google Authenticator (2FA) Plugin v1.0.0
For version (7.0.0)

 

I've programmed a new 2FA plugin so that users on your site can turn on two-step verification protection.
I've added the ability to enable and disable this feature from the control panel

Installation is very easy, download the zip file and unzip it in the root folder path of the script, then open the following link in your browser:

http://yoursite/migrate

If you see a white page and the number 0, it's working, if it's not and you have a vps, you can run this command via SSH:

php artisan migrate

 

You can now access your site and clicking on the image in the top right corner and clicking on Setting:

image.png.5908bdb468f178e7b52ec99f92c66dfd.png

 

You will find a new button called "Enable Authenticator 2FA?" All your users will see this button and can enable or disable it from here.

image.png.f5c287f51f8616e8b32dabdac2fb8fd0.png

 

After pressing this button, a page will open with a QR code for the google authenticator application, if you don't have it on your phone, you can download it from Google Play, scan the QR code and it will show you the number that changes every 10 seconds. Enter it in the box and press confirm

image.png.589cfb81efa61606982cf56fe55303a6.png

 

You can now logout and try logging in again. You will see that after logging in, you are taken to the Authenticator 2FA window, and you need to enter the code from the Authenticator app on your phone each time you login

image.png.0d63afa7d6286985a148ea709edb93b7.png

 

Note: The (Forget?) button is not working at the moment, but I will be releasing the next version with a new feature in this button

2FA-plugin-v1.0.0.zip

  • Love 2
1 hour ago, Magd Almuntaser said:

Google Authenticator (2FA) Plugin v1.0.0
For version (7.0.0)

 

I've programmed a new 2FA plugin so that users on your site can turn on two-step verification protection.
I've added the ability to enable and disable this feature from the control panel

 

awesome, many thanks for this plugin brother.

2fa mpwa.jpg

4 hours ago, Magd Almuntaser said:

Plugin Google Authenticator (2FA) v1.0.0
Untuk versi (7.0.0)

 

Saya telah memprogram plugin 2FA baru sehingga pengguna di situs Anda dapat mengaktifkan perlindungan verifikasi dua langkah.
Saya telah menambahkan kemampuan untuk mengaktifkan dan menonaktifkan fitur ini dari panel kontrol

Pemasangannya sangat mudah, unduh file zip dan ekstrak di jalur folder root skrip, lalu buka tautan berikut di peramban Anda:

Jika Anda melihat halaman putih dan angka 0, berarti halaman tersebut berfungsi. Jika tidak, dan Anda memiliki VPS , Anda dapat menjalankan perintah ini melalui SSH:

 

Anda sekarang dapat mengakses situs Anda dan mengklik gambar di sudut kanan atas dan mengklik Pengaturan:

gambar.png.5908bdb468f178e7b52ec99f92c66dfd.png

 

Anda akan menemukan tombol baru yang disebut " Aktifkan Authenticator 2FA? " Semua pengguna Anda akan melihat tombol ini dan dapat mengaktifkan atau menonaktifkannya dari sini.

gambar.png.f5c287f51f8616e8b32dabdac2fb8fd0.png

 

Setelah menekan tombol ini, akan terbuka halaman berisi kode QR untuk aplikasi Google Authenticator, jika belum ada di ponsel Anda, Anda dapat mengunduhnya dari Google Play , pindai kode QR tersebut , dan akan muncul nomor yang berubah setiap 10 detik. Masukkan kode tersebut ke dalam kotak dan tekan konfirmasi.

gambar.png.589cfb81efa61606982cf56fe55303a6.png

 

Sekarang Anda dapat keluar dan mencoba masuk lagi. Anda akan melihat bahwa setelah masuk, Anda akan dibawa ke jendela Authenticator 2FA, dan Anda perlu memasukkan kode dari aplikasi Authenticator di ponsel Anda setiap kali Anda masuk.

gambar.png.0d63afa7d6286985a148ea709edb93b7.png

 

Catatan: Tombol (Lupa?) tidak berfungsi saat ini, tetapi saya akan merilis versi berikutnya dengan fitur baru di tombol ini

Plugin 2FA v1.0.0.zip 827,17 kB Bahasa Indonesia: 4 unduhan

..sangat bermanfaat

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...