Acces to V8

Having problems with building or using the JCEF Java binding? Ask your questions here.

Acces to V8

Postby NeverLand2023 » Sat Feb 18, 2023 3:42 pm

Hello,
is there a way to implement V8Handler?

I need to intercept the javascript requests from webpages, modify them and then send them back as a "real" response. Such as the Battermanager, navigator.userAgent and much more.

I thought about injections with Object.defineProperty(BatteryManager.prototype and the whole thing via

var script = document.createElement("script");
script.textContent = "(" + inject + ")()";
document.documentElement.appendChild(script);
script.remove();

to inject. However, this was discarded because it should probably be possible to recognize or block this type of injection.
NeverLand2023
Newbie
 
Posts: 4
Joined: Sat Feb 18, 2023 2:27 pm

Re: Acces to V8

Postby magreenblatt » Sat Feb 18, 2023 9:43 pm

What is the use case?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Acces to V8

Postby NeverLand2023 » Sun Feb 19, 2023 12:50 am

The usecase is a customer projec. He needs privacy. Thats why i have to disguise many things like Useragent, timezone, webgl, canvas etc. but I read there are ways for websites to detect and block injections of an extension via CSP or something similar. I think the best solution is to use JCEF with change response from V8. Then there is no way to find out whether it is real data or not
NeverLand2023
Newbie
 
Posts: 4
Joined: Sat Feb 18, 2023 2:27 pm

Re: Acces to V8

Postby NeverLand2023 » Sat Mar 11, 2023 6:07 pm

can noone help?
NeverLand2023
Newbie
 
Posts: 4
Joined: Sat Feb 18, 2023 2:27 pm

Re: Acces to V8

Postby NeverLand2023 » Mon Feb 19, 2024 8:17 am

pump
NeverLand2023
Newbie
 
Posts: 4
Joined: Sat Feb 18, 2023 2:27 pm

Re: Acces to V8

Postby KatrinaS » Wed Feb 21, 2024 10:44 am

I think your problem (regarding HaLp!) is that your use case could be construed as dmca / wire fraud etc illegal :D

But. Do you really need CEF for this, it seems to me that something (say) Apache Tomcat and plain old Java based would give you something far more and easily configurable, your problem seems to be these apparent javascript http url connections etc so give it no opportunity to make them :)

And as for privacy then just use Tor as a proxy :D
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 151 guests

cron