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

Similar questions

12 replies

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).


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.