OP 10 August, 2020 - 11:42 AM
Hello, im working on a token generator, and i want to make less easy to detect my browser as fake
So i tried to make fake moves by not teleporting, but this is still not good !
I tried to install this puppeteer module but it doesn't want to work !
https://www.npmjs.com/package/ghost-cursor
Could anyone use this code to simply make an array of coordinates to do.
Then i can simply look then and make the same movements !
My actual code :
So i tried to make fake moves by not teleporting, but this is still not good !
I tried to install this puppeteer module but it doesn't want to work !
https://www.npmjs.com/package/ghost-cursor
Could anyone use this code to simply make an array of coordinates to do.
Then i can simply look then and make the same movements !
My actual code :
Code:
function legitMoves(page,goto_X,goto_Y)
{
return new Promise(function(resolve)
{
while((xCords !== goto_X || yCords !== goto_Y))
{
if (xCords < goto_X) { xCords = xCords + getRandomInt(1.5) } else if (xCords > goto_X) {xCords = xCords - getRandomInt(1.5) }
if (yCords < goto_Y) { yCords = yCords + getRandomInt(1.5) } else if (yCords > goto_Y) {yCords = yCords - getRandomInt(1.5) }
console.log(`X : ${xCords} Y : ${yCords} GOTOX : ${goto_X} GOTOY : ${goto_Y}`)
page.mouse.move(xCords ,yCords)
}
resolve()
})
}