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