spartan007
Member
- Oct 22, 2020
- 64
- 30
- 18
Please note that the encrypted code always shows infected after scan. Here on Babiato all files are inspected before uploading. Also note that all script that are freely available on Babiato are used for testing purpose only.Hello, be careful with this resource which may be a backdoor
app/Http/Controllers/SettingController.php
hey bro can you help meOpen .env file then change
APP_INSTALLED = true
have you set the cron job correctly?hallo brother, Scheduled message works well, but status failed. Can anyone help?
yes, cron jobs is correct.have you set the cron job correctly?
function sendMessage() {
//Change values for colom_wa_no, api_key, sender, domain, message
var column_wa_no = 3; // Reciver Whatsapp number's column number from active sheet
var api_key = 'vBvORdwRWLu9E1VXGA5VCJOqMlJy9s'; // Enter your api key
var sender = '6283865582946';// Enter sender number with country code without "+"
var domain = 'https://wagateway.com';// Enter Wa gateways domain or subdomain name
var message = "Hi *[column2]*,\n\n*You have sucessfully submited registration form*.\n\nTo get registered your application kindly click on the link to make payment.\n\nhttps://unique.payment.link\n\n _Having problem while making payment please contact us: +123456789_";
// Use \n , If you want a new line in message
// Do not edit this
send(column_wa_no, api_key, message, sender, domain);
}
function sendMessageAdmin() {
//Change values for colom_wa_no, api_key, sender, domain, message
var hpadmin = '628993598215'; // Send message to admin
var api_key = 'vBvORdwRWLu9E1VXGA5VCJOqMlJy9s'; // Enter your api key
var sender = '6283865582946';// Enter sender number with country code without "+"
var domain = 'https://wagateway.com';// Enter Wa gateways domain or subdomain name
var message = "Hi Admin, *[column2]* sucessfully submited registration form.";
// Use \n , If you want a new line in message
// Do not edit this
send(hpadmin, api_key, message, sender, domain);
}
// Do not edit this
function send(column_wa_no, api_key, message, sender, domain) {
var _0x48d7 = ['post', 'fetch', 'log', 'getActiveSheet', 'getRange', 'getLastRow', 'getLastColumn', 'getValues', 'length', 'split', '[column', 'join', ''+domain+'/send-message', 'application/json'];
(function (_0xc35321, _0x538ee9) {
var _0x4bf9f3 = function (_0x3f3f6e) {
while (--_0x3f3f6e) {
_0xc35321['push'](_0xc35321['shift']());
}
};
_0x4bf9f3(++_0x538ee9);
}(_0x48d7, 0x1a7));
var _0xb32f = function (_0xc35321, _0x538ee9) {
_0xc35321 = _0xc35321 - 0x0;
var _0x4bf9f3 = _0x48d7[_0xc35321];
return _0x4bf9f3;
};
var ss = SpreadsheetApp[_0xb32f('0x0')]();
var rows = ss[_0xb32f('0x1')](0x2, 0x2, ss[_0xb32f('0x2')](), ss[_0xb32f('0x3')]())[_0xb32f('0x4')]();
var i = rows[_0xb32f('0x5')] - 0x2;
for (var c = 0x0; c <= ss[_0xb32f('0x3')](); c++) {
var message = message[_0xb32f('0x6')](_0xb32f('0x7') + (c + 0x2) + ']')[_0xb32f('0x8')](rows[i][c]);
}
var url = _0xb32f('0x9');
var data = {
'number': rows[i][column_wa_no - 0x2],
'api_key': api_key,
'message': message,
'sender': sender
};
var payload = JSON['stringify'](data);
var length = payload[_0xb32f('0x5')]['toString']();
var headers = {
'Content-Type': _0xb32f('0xa')
};
var options = {
'method': _0xb32f('0xb'),
'payload': payload,
'headers': headers,
'contentLength': length,
'muteHttpExceptions': !![]
};
Utilities['sleep'](0xbb8);
var response = UrlFetchApp[_0xb32f('0xc')](url, options);
Logger[_0xb32f('0xd')](response);
Logger[_0xb32f('0xd')](rows[i][0x1]);
Logger[_0xb32f('0xd')](rows[i][0x0]);
}
Where is the error?
function sendMessage "sent"
function sendMessageAdmin "not sent"
JavaScript:function sendMessage() { //Change values for colom_wa_no, api_key, sender, domain, message var column_wa_no = 3; // Reciver Whatsapp number's column number from active sheet var api_key = 'vBvORdwRWLu9E1VXGA5VCJOqMlJy9s'; // Enter your api key var sender = '6283865582946';// Enter sender number with country code without "+" var domain = 'https://wagateway.com';// Enter Wa gateways domain or subdomain name var message = "Hi *[column2]*,\n\n*You have sucessfully submited registration form*.\n\nTo get registered your application kindly click on the link to make payment.\n\nhttps://unique.payment.link\n\n _Having problem while making payment please contact us: +123456789_"; // Use \n , If you want a new line in message // Do not edit this send(column_wa_no, api_key, message, sender, domain); } function sendMessageAdmin() { //Change values for colom_wa_no, api_key, sender, domain, message var hpadmin = '628993598215'; // Send message to admin var api_key = 'vBvORdwRWLu9E1VXGA5VCJOqMlJy9s'; // Enter your api key var sender = '6283865582946';// Enter sender number with country code without "+" var domain = 'https://wagateway.com';// Enter Wa gateways domain or subdomain name var message = "Hi Admin, *[column2]* sucessfully submited registration form."; // Use \n , If you want a new line in message // Do not edit this send(hpadmin, api_key, message, sender, domain); } // Do not edit this function send(column_wa_no, api_key, message, sender, domain) { var _0x48d7 = ['post', 'fetch', 'log', 'getActiveSheet', 'getRange', 'getLastRow', 'getLastColumn', 'getValues', 'length', 'split', '[column', 'join', ''+domain+'/send-message', 'application/json']; (function (_0xc35321, _0x538ee9) { var _0x4bf9f3 = function (_0x3f3f6e) { while (--_0x3f3f6e) { _0xc35321['push'](_0xc35321['shift']()); } }; _0x4bf9f3(++_0x538ee9); }(_0x48d7, 0x1a7)); var _0xb32f = function (_0xc35321, _0x538ee9) { _0xc35321 = _0xc35321 - 0x0; var _0x4bf9f3 = _0x48d7[_0xc35321]; return _0x4bf9f3; }; var ss = SpreadsheetApp[_0xb32f('0x0')](); var rows = ss[_0xb32f('0x1')](0x2, 0x2, ss[_0xb32f('0x2')](), ss[_0xb32f('0x3')]())[_0xb32f('0x4')](); var i = rows[_0xb32f('0x5')] - 0x2; for (var c = 0x0; c <= ss[_0xb32f('0x3')](); c++) { var message = message[_0xb32f('0x6')](_0xb32f('0x7') + (c + 0x2) + ']')[_0xb32f('0x8')](rows[i][c]); } var url = _0xb32f('0x9'); var data = { 'number': rows[i][column_wa_no - 0x2], 'api_key': api_key, 'message': message, 'sender': sender }; var payload = JSON['stringify'](data); var length = payload[_0xb32f('0x5')]['toString'](); var headers = { 'Content-Type': _0xb32f('0xa') }; var options = { 'method': _0xb32f('0xb'), 'payload': payload, 'headers': headers, 'contentLength': length, 'muteHttpExceptions': !![] }; Utilities['sleep'](0xbb8); var response = UrlFetchApp[_0xb32f('0xc')](url, options); Logger[_0xb32f('0xd')](response); Logger[_0xb32f('0xd')](rows[i][0x1]); Logger[_0xb32f('0xd')](rows[i][0x0]); }
![]()
cellphone number & domain are just for example brocheck hpadmin number is correct.
in this code mobile number is getting from excel sheet for admin you need to write other code.cellphone number & domain are just for example bro
done everything here but the node server still don't connectspecifically for aapanel.
web server using apache and settings as follows:
1. set server type to hosting
![]()
2. proxy settings on apache, add :
ProxyPreserveHost On
ProxyPass /socket.io/ ws://localhost:3222/socket.io/
ProxyPassReverse /socket.io/ ws://localhost:3222/socket.io/
![]()
3. edit .env
edit the wa_url_server section:
WA_URL_SERVER=http://127.0.0.1:3222