ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
19.57k stars 802 forks source link

Fingerpriting cpu cores and memory like popular Dolphin-Anty an anti detect browser does? #2868

Closed Jazzykhan closed 2 weeks ago

Jazzykhan commented 1 month ago

Description

Allow a method in flags to spoof memory and/or cpu for fingerprint spoofing

Who's implementing?

The problem

It only has canvas fingerprinting right now but still cpu cores and memory is real as per my computer.

Possible solutions

Command line flags to spoof cpu and/or flags or any help how to do it?

Alternatives

No response

Additional context

No response

Arthur-Senior commented 3 weeks ago

I have done already some Moks on Browser, I can upload my work. I am mocking everything from memory till GL-Fingerprint

PF4Public commented 3 weeks ago

I have done already some Moks on Browser, I can upload my work. I am mocking everything from memory till GL-Fingerprint

May I inquire how do you achieve that?

Arthur-Senior commented 3 weeks ago

I took all the data to a config file and exchange parameters in the functions inside. The V8 mechanism is taking parameters from classes I n tbe middle, the work of the app is not disturbed, because it's not on working level.

пт, 7 июн. 2024 г., 19:56 PF4Public @.***>:

I have done already some Moks on Browser, I can upload my work. I am mocking everything from memory till GL-Fingerprint

May I inquire how do you achieve that?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2155278458, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADTERWHKIADOG4LRHLZGHX4JAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI3TQNBVHA . You are receiving this because you commented.Message ID: @.***>

PF4Public commented 3 weeks ago

I took all the data to a config file and exchange parameters in the functions inside. The V8 mechanism is taking parameters from classes I n tbe middle, the work of the app is not disturbed, because it's not on working level.

So you changed those parameters in a profile config file? Are those parameters not recalculated every time in runtime?

Arthur-Senior commented 3 weeks ago

I changed it in runtime, it is read once on load and given to a singleton structure inside the chrome.dll. so, you can have n*instance with different settings and it can moc even the system and browser type

пт, 7 июн. 2024 г., 20:33 PF4Public @.***>:

I took all the data to a config file and exchange parameters in the functions inside. The V8 mechanism is taking parameters from classes I n tbe middle, the work of the app is not disturbed, because it's not on working level.

So you changed those parameters in a profile config file? Are those parameters not recalculated every time in runtime?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2155329668, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADCLW7OZXB2CUKKV4LZGH4I7AVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGMZDSNRWHA . You are receiving this because you commented.Message ID: @.***>

Arthur-Senior commented 3 weeks ago

I can send you some screens, how it is doing with original system and my system.

пт, 7 июн. 2024 г., 20:33 PF4Public @.***>:

I took all the data to a config file and exchange parameters in the functions inside. The V8 mechanism is taking parameters from classes I n tbe middle, the work of the app is not disturbed, because it's not on working level.

So you changed those parameters in a profile config file? Are those parameters not recalculated every time in runtime?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2155329668, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADCLW7OZXB2CUKKV4LZGH4I7AVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGMZDSNRWHA . You are receiving this because you commented.Message ID: @.***>

Arthur-Senior commented 3 weeks ago

I want to switch my system from Google chromium original to ungoogled chrome. I build it on windows server, wishbof customer, but anyway. May be you can help me. I cline the source and build it original with python build.py, but if I try to rebuild the modified code, or just start ninja -C .... It stacked on chrome-allowlist.txt Can you tell me why I can't rebuild?

пт, 7 июн. 2024 г., 19:56 PF4Public @.***>:

I have done already some Moks on Browser, I can upload my work. I am mocking everything from memory till GL-Fingerprint

May I inquire how do you achieve that?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2155278458, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADTERWHKIADOG4LRHLZGHX4JAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI3TQNBVHA . You are receiving this because you commented.Message ID: @.***>

PF4Public commented 3 weeks ago

I changed it in runtime, it is read once on load and given to a singleton structure inside the chrome.dll. so, you can have n*instance with different settings and it can moc even the system and browser type

I still don't get it how you do it. Could you explain it in more details?

PS: I've hidden your last message as it is unrelated here.

Arthur-Senior commented 3 weeks ago

I changed on example font_cache.cc and font_list_impl.cc to implement fonts from my config file. When a function in V8 system checked if font is present, it looks up in my list and say yes or not. the hole system, can use all the fonts on system, in registry and wherever.

Can you please send me the utility missing for my problem please?

Arthur-Senior commented 3 weeks ago

I would like to join the project and make the mocking options for it, if you like.

пт, 7 июн. 2024 г., 19:56 PF4Public @.***>:

I have done already some Moks on Browser, I can upload my work. I am mocking everything from memory till GL-Fingerprint

May I inquire how do you achieve that?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2155278458, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADTERWHKIADOG4LRHLZGHX4JAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI3TQNBVHA . You are receiving this because you commented.Message ID: @.***>

PF4Public commented 3 weeks ago

I changed on example font_cache.cc and font_list_impl.cc to implement fonts from my config file.

Do you have a repository with your changes anywhere?

Arthur-Senior commented 3 weeks ago

No, all offline. I can give some changes in files or single functions

сб, 8 июн. 2024 г., 13:59 PF4Public @.***>:

I changed on example font_cache.cc and font_list_impl.cc to implement fonts from my config file.

Do you have a repository with your changes anywhere?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2156005726, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QADPVHT7EXDI7VVKZRTZGLWYVAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGAYDKNZSGY . You are receiving this because you commented.Message ID: @.***>

PF4Public commented 3 weeks ago

It could be of interest if it was written solely by you (not copied from somewhere) and could be integrated seamlessly into ungoogled-chromium. For the latter it should ideally be exposing a flag for user-configuration.

Arthur-Senior commented 3 weeks ago

This can be done. It is to100% my own work and code. And yes, it can be used with a user configuration. Currently. I am planning to rebuild it to json from config file.

сб, 8 июн. 2024 г., 15:04 PF4Public @.***>:

It could be of interest if it was written solely by you (not copied from somewhere) and could be integrated seamlessly into ungoogled-chromium. For the latter it should ideally be exposing a flag for user-configuration.

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2156030194, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QAEC4JENWJOUJ74M4OTZGL6NBAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGAZTAMJZGQ . You are receiving this because you commented.Message ID: @.***>

PF4Public commented 3 weeks ago

Can I convert it to ungoogled?

Probably yes, but you may run into patch-conflicts which you'll have to solve manually.

Arthur-Senior commented 3 weeks ago

Here 2 pics. one with files, which where patched for mocks. and another with example of patch. 20240608_130113 20240608_130154

PF4Public commented 3 weeks ago

@Arthur-Senior If you're willing to contribute new features to ungoogled-chromium you are always free to submit PR with your code. I would however advise you to open a separate issue to discuss the changes you're proposing. Providing the actual code/patches instead of screenshots would also help the discussion.

Arthur-Senior commented 3 weeks ago

I would like to help developing ungoogled-Browser, and mocking features i worked the complete last year on. With my knowladge what is to be done and your little help on things where i am stacked, Could be a good thing.

Jazzykhan commented 2 weeks ago

@Arthur-Senior were you able to mock cpu cores and memory? Thanks

Arthur-Senior commented 2 weeks ago

Yes it is possible.

пн, 10 июн. 2024 г., 23:47 Jahanzaib Khan @.***>:

@Arthur-Senior https://github.com/Arthur-Senior were you able to mock cpu cores and memory? Thanks

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2159343645, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QABMQP7CJIOI2RV44I3ZGYNFLAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJZGM2DGNRUGU . You are receiving this because you were mentioned.Message ID: @.***>

Jazzykhan commented 2 weeks ago

@networkException so can we change cores now?

Arthur-Senior commented 2 weeks ago

What exactly do you want to do?

сб, 15 июн. 2024 г., 01:05 Jahanzaib Khan @.***>:

@networkException https://github.com/networkException so can we change cores now?

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2168864181, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QAH4GZWJET5CHTIJZMLZHNZLBAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYHA3DIMJYGE . You are receiving this because you were mentioned.Message ID: @.***>

networkException commented 2 weeks ago

no we match the behavior of firefox and always say there are two cores

Arthur-Senior commented 2 weeks ago

yes, i think it is possible. you can see what it is doing and collecting. find file fingerprint.cc in this file you can see what information it is collecting. but you have to patch far more than only this file

Jazzykhan commented 1 week ago

@networkException Sir, i think there should be a way to increase or decrease cpu cores with opening flags or somehting else.

Arthur-Senior commented 1 week ago

Surely there is a possibility. I need to rewrite currently a function to upgrade to newest File System API. Then I can handle your CPU problem.

вт, 18 июн. 2024 г., 00:13 Jahanzaib Khan @.***>:

@networkException https://github.com/networkException Sir, i think there should be a way to increase or decrease cpu cores with opening flags or somehting else.

— Reply to this email directly, view it on GitHub https://github.com/ungoogled-software/ungoogled-chromium/issues/2868#issuecomment-2174523277, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6B3QAA62G7U2EF72W2PNCLZH5NRNAVCNFSM6AAAAABH4PNJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGUZDGMRXG4 . You are receiving this because you were mentioned.Message ID: @.***>