You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Proxy Virus - Cant change Proxy from setting (automatically put again the proxy when I close the window) - Can't change it from terminal (adminright but no adminrights?)

Dear Communities,


I have a proxy in my settings. When I erase it and untick, at the moment that I close the window, the proxy is set up again.

I have tried to delete it from the terminal, I have checked if I had the admin rights ( that I have) and when I run  

networksetup -setwebproxystate Wi-fi off

I got the message

** Error: Command requires admin privileges.


No idea what to do?????


I pasted the messages from my terminal thereafter.



And a copy of my terminal:

alexandredelode@mbpdealexandre ~ % 

 [Restored 23 Oct 2021 at 01:18:10]

Last login: Sat Oct 23 01:17:59 on console

Restored session: Sat Oct 23 01:01:48 EEST 2021

alexandredelode@mbpdealexandre ~ % echo "no_proxy"

no_proxy

alexandredelode@mbpdealexandre ~ % echo no_proxy  

no_proxy

alexandredelode@mbpdealexandre ~ % su alexandre delode

Password:

su: Sorry

alexandredelode@mbpdealexandre ~ % su alexandredelode 

Password:

alexandredelode@mbpdealexandre ~ % networksetup -getwebproxy "Wi-Fi"

Enabled: Yes

Server: 51.77.159.133

Port: 80

Authenticated Proxy Enabled: 0

alexandredelode@mbpdealexandre ~ % networksetup -setwebproxystate "Wi-fi" off

** Error: Command requires admin privileges.

alexandredelode@mbpdealexandre ~ % #!/bin/sh

zsh: event not found: /bin/sh

alexandredelode@mbpdealexandre ~ % bash


The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

bash-3.2$ #!/bin/sh

bash-3.2$ dscl . -read /Groups/admin GroupMembership

GroupMembership: root alexandredelode

bash-3.2$ networksetup -setwebproxystate Wi-fi off

** Error: Command requires admin privileges.

bash-3.2$ who am I

alexandredelode ttys000 Oct 23 01:18 

bash-3.2$ dscl . read /groups/admin GroupMembership

GroupMembership: root alexandredelode

bash-3.2$ networksetup -setwebproxystate Wi-fi off

** Error: Command requires admin privileges.

bash-3.2$ 

MacBook Pro 13″, macOS 11.6

Posted on Oct 22, 2021 5:02 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 23, 2021 5:23 AM

I ran EtreCheck and other antimalware software.

I managed to change my proxy :

I created a root account

dsenableroot

I logget out, logged in with the root account, and I was abled to change the parameters of my proxy.


I am still curious how it managed to get there first ( a malware creating a root account and then deleting it?).

Similar questions

12 replies
Question marked as Top-ranking reply

Oct 23, 2021 5:23 AM in response to Barney-15E

I ran EtreCheck and other antimalware software.

I managed to change my proxy :

I created a root account

dsenableroot

I logget out, logged in with the root account, and I was abled to change the parameters of my proxy.


I am still curious how it managed to get there first ( a malware creating a root account and then deleting it?).

Oct 23, 2021 5:49 AM in response to ProxyVirusO

I am still curious how it managed to get there first ( a malware creating a root account and then deleting it?).

It didn't create a "root" account at all.

Here is how you installed Adware:

How to install adware - Apple Community

And, this is a more thorough discussion across the broad spectrum:

Effective defenses against malware and ot… - Apple Community

Oct 22, 2021 5:54 PM in response to MrHoffman

I have done

netstat -rn |grep default


I got

default      192.168.10.254   UGScg     en0    

default                 fe80::%utun0          UGcIg     utun0    

default                 fe80::%utun1          UGcIg     utun1  


And when I try to connect to  192.168.10.254, I have

192.168.10.254 took too long to respond.


It is what I get with many websites, not all, that is why I have checked my proxy and found this bug (that smells virus).


Proxy Virus - Cant change Proxy from setting (automatically put again the proxy when I close the window) - Can't change it from terminal (adminright but no adminrights?)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.