Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
03-04-2021, 04:42 AM
#1
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Rep:
Can a browser be hacked?
I use Ubuntu 18.
For years I have used Firefox.
Lately, when I try to call baidu.com, the Chinese search engine, it often times out.
I thought, "There's no way the Chinese government is blocking Baidu! Maybe it's my internet connection?"
I installed Chromium.
baidu.com opens no problem in Chromium.
Now the funny part: I have a little webpage for giving homework and, because of the virus, also online class sometimes.
This morning, I opened my webpage in Chromium, everything OK.
Around lunchtime, I noticed that the font on my webpage had become some strange digital type font, hard to read.
I did not change any settings in Chromium, at least not that I know of.
I opened my webpage with Firefox. Everything normal.
How can the webpage font suddenly change in Chromium, without my input?
(I installed Opera now. Opera looks nice, and my webpage displays normally.)
03-04-2021, 04:53 AM
#2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913
it may depend on the settings (of the browser). I guess a javascript (or similar) can do anything, any time on its page (without hacking the browser).
03-04-2021, 01:15 PM
#3
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,236
I've seen this happen when a browser that's statically linked against FreeType gets updated to a version that's dynamically linked against FreeType (or vice versa).
03-04-2021, 02:51 PM
#4
Moderator
Registered: Mar 2008
Posts: 21,993
Edit.
Where did I get that reply from?
Last edited by jefro; 03-04-2021 at 08:02 PM .
03-04-2021, 06:35 PM
#5
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
Thank you all for your replies!
I found the culprit!
Yesterday, I didn't close Opera all day. But at some stage, I think I tried to make Baidu my default search engine!
Opera has a tab: Speed Dial, very nice, add links to the webpages you use frequently, open a new tab, click! Great!
Opera comes with some commercial links, Amazon, Kayak, others.
This morning, when I opened Opera, I found a whole raft of Chinese links there.
Also, 搜狗 Sugou, a Chinese search engine, had installed itself as the default search engine.
Where does Opera keep its config??
Where does Opera keep it's config??
I could not remove Sugou, I could not change to another default search engine.
In China, I can't use Google without the VPN on, so I use Bing
I uninstalled Opera.
Now, I cannot even add Bing as search engine. The Add button is disabled.
Sugou must have left a script somewhere. So, even though I removed and reinstalled Opera, I'm stuck with this invasive Chinese shit!
Where are the settings, the .config file for Opera browser in Ubuntu??
Last edited by Pedroski; 03-04-2021 at 07:09 PM .
03-04-2021, 07:30 PM
#6
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
It gets worse:
I used:
sudo snap remove --purge opera
to uninstall Opera, then I reinstalled it with snap
When I opened Opera, everything was OK, except the search engine was set to Google, which is hard to use in China.
So I set it to Bing.
That doesn't seem to take immediate effect, so I closed Opera, then opened it again.
All the Chinese shit back again, Sugou my default browser, unable to change that, unable to add another search engine!
Where are the Chinese hiding this config script on my hd??
03-04-2021, 08:32 PM
#7
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
I ran
sudo snap remove --purge opera again
In my home folder, I have a folder snap. It contains a folder opera, with configuration data for Opera browser. I deleted it and emptied the trash.
I reinstalled Opera with snap
I open Opera, it looks good, except, I cannot add a search engine. The window opens, but the Add button is disbled.
I set Bing as default search engine. No change, Google is still the default search engine.
I close Opera and open it again.
All the Chinese shit back again, Sugou my default browser, unable to change that, unable to add another search engine!
Where are the Chinese hiding this config script on my hd??
03-04-2021, 09:29 PM
#8
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
A web search for "
Sugou browser hack " turns up a number of articles about this. Apparently Sugou has a less than stellar track record.
This was the first one in the search results:
https://botcrawl.com/how-to-complete...press-toolbar/
Norton reports that botcrawl is "safe."
1 members found this post helpful.
03-05-2021, 01:48 AM
#9
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
Well, it was my fault for trying Baidu as default search engine.
I should have just put a link in the Speed Dial tab!
Still struggling to get rid of this.
03-05-2021, 02:01 AM
#10
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
I just tried deleting the browser.js file in the folder
/home/pedro/snap/opera/113/.config/opera/
I also opened
default_partner_content.json
This file had some nasty red marked illegible code stuff at the top. I deleted that.
Also siteprefs.json I deleted the entire contents.
Then I closed Opera and reopened.
browser.js is back, but the default search engine was still Bing.
However, the default_partner_content.json had that nasty red code at the top again.
I'd like to know where the Chinese hid their stuff!!
03-05-2021, 04:36 AM
#11
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
Looks like Opera
IS the hack:
From opera.org forum:
Quote:
When you run Opera, it will try to download browser.js from Opera'S servers - that much is normal. It will also try to determine what country you live in and change the "built-in" search engines to something appropriate.
03-05-2021, 02:26 PM
#12
Moderator
Registered: Mar 2008
Posts: 21,993
Thanks for the update and solution.
Now where do they make Opera at?
03-05-2021, 05:13 PM
#13
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
China????
03-05-2021, 05:18 PM
#14
Moderator
Registered: Mar 2008
Posts: 21,993
03-06-2021, 05:56 PM
#15
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116
Original Poster
Rep:
As a pleasant end to this story:
I purged Opera, got Vivaldi. Vivaldi is very nice!! I can recommend it!
All times are GMT -5. The time now is 11:25 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News