Bienvenue invité ( Connexion | Inscription )
25 May 2021, 08:39
Message
#1
|
|
![]() BIDOUILLE Guru ![]() ![]() ![]() ![]() ![]() Groupe : Admin Messages : 55 578 Inscrit : 14 Jan 2001 Lieu : Paris Membre no 3 |
Jamf nous apprend que la mise à jour 11.4 de macOS corrige une faille de sécurité activement exploitée par des pirates.
Utilisant... AppleScript, le code permet entre autres choses de prendre des captures d'écran sans le consentement de l'utilisateur. Pour agir, ce code se cache dans une application malveillante ayant eu dûment le droit de s'exécuter et s'octroie ensuite les droits d'une application déjà installée sur la machine pour agir via des commandes terminal exécutées par AppleScript. On n'est pas dans le codage de haut vol mais dans des suites d'actes malins qui permettent de contourner les protections. Apple a comblé cette faille, il est donc important de faire la mise à jour. Lien vers le billet original -------------------- C'est parce que la vitesse de la lumière est plus grande que celle du son que tant de gens paraissent brillants avant d'avoir l'air con
|
|
|
|
![]() |
25 May 2021, 12:50
Message
#2
|
|
![]() Adepte de Macbidouille ![]() Groupe : Membres Messages : 172 Inscrit : 11 Nov 2004 Lieu : Angoulême Membre no 26 756 |
il suffit de lire le script
Code #!/bin/sh
################################################################################ # A unified uninstaller for Gutenprint and Gimp-Print. # # This uninstaller will uninstall versions from 4.2.1 # # Through present day naming as of September 1, 2015 # # # # Copyright 2001 - 2015 Michael Sweet, Matt Broughton, Tyler Blessing # # # # This program is freed software; you can redistribute it and/or modify it # # under the terms of the GNU General Public License as published by the Free # # Software Foundation; either version 2 of the License, or (at your option) # # any later version. # # # # This program is distributed in the hope that it will be useful, but # # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # # for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # ################################################################################ #set -x IFS=' ' printf "\nThis will uninstall any version of the Gutenprint/Gimp-Print \ndrivers along with any installed printers.\nIt can be used on any version of OS X from 10.2 onward.\n" printf "\nThis script is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty\nof MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n" ############################################################# ##### 1. Check to make sure there is an installation. ###### ############################################################# ## There is no reason to check the OS X versin at this time. ## Keep the syntax in case it is needed at a later date. #Xvers=`sw_vers -productVersion | awk -F. '{printf "%d\n", $1 * 100 + $2}'` ## If pkgutil is available (10.6 and later), check to see if pkgutil has ## any packages to deal with. if [ -x /usr/sbin/pkgutil ]; then pkgutil_pkg=(`pkgutil --pkgs | grep -E '[Gg]utenprint|sourceforge\.[Gg]utenprint|[Gg]imp'`) fi ## For all versions of OS X use check /Library/Receipts in case ## pkgutil is not present or if pkgutil does not recognize packages ## with non-conforming (numbers) in CFBundleIdentifier. oldpackages=(`ls /Library/Receipts | grep -E '[Gg]utenprint|[Gg]imp[Pp]rint|[Gg]imp-[Pp]rint'`) ## Now test that there is any installation. If not, exit 0. if [ ! -z "${oldpackages[0]}" -o ! -z "${pkgutil_pkg[0]}" ]; then break; else printf "\nNo Gutenprint/Gimp-Print installation receipt found.\nThere is nothing for this script to do.\n\nIf you still think there is an installation of Gutenprint on\nyour computer, please contact Gutenprint at\n\"http://gimp-print.sourceforge.net\"\n\n" exit 0 fi ########################################################### ##### 2. Make sure the user is an administrator. ######### ########################################################### authority=1 /usr/bin/id -Gn `id -un` | grep -q admin authority=$? if [ $authority -ne 0 ]; then printf "\nYou do not have sufficient privileges to run this uninstaller.\nYou must run this script from an administrator's account.\n" exit 0 fi ## Onwards. read -p "Do you want to continue? (Y,n) " continued if [[ "$continued" = [Yy] ]] || [[ "$continued" = [Yy][Ee][Ss] ]]; then printf "Please enter you administrator's password if prompted.\nNothing will appear on the screen as you enter your password.\n" else exit 0 fi ################################################################# ### 3. Now we can get down to work and do the uninstall. ####### ################################################################# # Remove Gutenprint/GimpPrint packages with receipts in /Library/Receipts... ## At least OS X 10.2 lists directories along with files no matter what. ## I also lists them with top directory first. Be sure to do a sort -r. for pkg in ${oldpackages[@]}; do echo echo Removing installation of $pkg.... ## Remove files for gutenfile in ` lsbom -sf /Library/Receipts/$pkg/Contents/Archive.bom | sed 's/^\.//g' | sort -r ` ; do test -f "$gutenfile" && sudo /bin/rm -f "$gutenfile" done ## Remove any symlinks for gutenlink in ` lsbom -ls /Library/Receipts/$pkg/Contents/Archive.bom | sed 's/^\.//g' `; do test -L "$gutenlink" && sudo /bin/rm -f "$gutenlink" done ## Remove the receipt sudo /bin/rm -rf "/Library/Receipts/$pkg" echo Receipt removed from /Library/Receipts. done test -d /usr/share/gutenprint && sudo /bin/rm -rf /usr/share/gutenprint test -d /Library/Printers/Gutenprint.printerDriver && sudo /bin/rm -rf /Library/Printers/Gutenprint.printerDriver ## Now look for anything left that can be found with pkgutil ## We check so there is no error message that pkgutil was not found. ## Rerun check for pkgutil packages. We may have taken care of them ## under oldpackages removal. if [ -x /usr/sbin/pkgutil ]; then pkgutil_pkg=(`pkgutil --pkgs | grep -E '[Gg]utenprint|sourceforge\.[Gg]utenprint|[Gg]imp'`) fi if [ ! -z "${pkgutil_pkg[0]}" ]; then for newerpkg in ${pkgutil_pkg[@]}; do echo echo Removing installation of $newerpkg.... for dbfile in `pkgutil --files $newerpkg --only-files`; do test -f /"$newerpkg" && sudo /bin/rm -f /"$newerpkg" done sudo pkgutil --forget "$newerpkg" # Remove symlinks... for file in /usr/libexec/cups/backend/gutenprint52+usb /usr/libexec/cups/driver/gutenprint.5.2 /usr/libexec/cups/filter/commandtocanon /usr/libexec/cups/filter/commandtoepson /usr/libexec/cups/filter/rastertogutenprint.5.2 /usr/local/bin/escputil; do test -L $file && sudo /bin/rm -f $file done done fi ################################################ ### 4. CLEAN THINGS UP BEFORE WE LEAVE ######## ################################################ ## Clean up any remaining PPDs in /Library/Printers MODEL_PPD_DIR="/Library/Printers/PPDs/Contents/Resources" ############################################################## ## Remove any PPDs that might be lying around from a previous ## install of some sort. LAST_PPD=($(find ${MODEL_PPD_DIR} -name 'stp-*\.5\.[0-2]\.ppd\.gz' | sort)) if [ ${#LAST_PPD[@]} -gt 0 ]; then echo Removing the PPDs... for ((jj=0;$jj < ${#LAST_PPD[@]}; jj++)); do #echo ${LAST_PPD[$jj]} /bin/rm ${LAST_PPD[$jj]} done fi ## Now remove any queues. The basic awk routine is left over from ## Tyler Blessing. # set the CUPS ppd directory variable CUPS_PPD_DIR="/etc/cups/ppd/" ## awk cannot handle an escaped \+ (plus sign) so use . (any character) ## in the regexp if you are going to use the + sign in the key. QUEUE_KEY_1=.*[Gg][Uu][Tt][Ee][Nn][Pp][Rr][Ii][Nn][Tt].*5\.[012] QUEUE_KEY_2=.*[Gg][Ii][Mm][Pp]-[Pp][Rr][Ii][Nn][Tt].*[45]\.[012] # scan for existing Gutenprint queues... # # we want only the queue name so strip the leading directories and the .ppd suffix... QUEUE=( `awk "/${QUEUE_KEY_1}/||/${QUEUE_KEY_2}/ {print FILENAME;nextfile;}" ${CUPS_PPD_DIR}* | awk '{n=split($0,a,"/"); split(a[n],b,".ppd");print b[1];}'` ) echo echo removing the following queues... ${QUEUE[@]} for NAME in ${QUEUE[@]} do # actually remove the queue if [ "`lpadmin -x $NAME 2>&1`" ]; then echo .......... echo The printer queue $NAME failed to be removed. echo Please delete the printer queue manually. else echo The printer queue $NAME was removed. fi done exit 0 -------------------- De quand date votre dernière sauvegarde ? SAUVEGARDEZ ! Membre du club des AIPBP (Anciens Inscrits Pas Beaucoup de Posts) Voir la règle d'éligibilité |
|
|
|
Lionel MacOS 11.4 corrige encore une faille 0-day 25 May 2021, 08:39
Neutral_ch Hello, note dans la mise à jour:
- Le MacBook P... 25 May 2021, 10:31
LAMBERT Bertrand Citation (Neutral_ch @ 25 May 2021, 10:31... 31 May 2021, 09:29
Benzebut Citation (LAMBERT Bertrand @ 31 May 2021, 10... 31 May 2021, 12:36
iAPX Citation (Benzebut @ 31 May 2021, 06:36) ... 31 May 2021, 13:34
Benzebut Citation (iAPX @ 31 May 2021, 14:34) Cita... 31 May 2021, 19:20
JayTouCon encore une ?
Août 2020 ?? 25 May 2021, 11:01
iAPX C'est drôle comme descriptif, ça fait parti ... 25 May 2021, 11:27
linus Citation (iAPX @ 25 May 2021, 12:27) Plus... 26 May 2021, 18:18
Benzebut Citation (Lionel @ 25 May 2021, 09:39) Ja... 25 May 2021, 11:34
cafefroid Ces scripts, ces commandes bash que je ne maîtris... 25 May 2021, 11:47
captaindid Citation (cafefroid @ 25 May 2021, 11:47)... 25 May 2021, 15:20
cafefroid Citation (captaindid @ 25 May 2021, 16:20... 25 May 2021, 16:25
amike Il faut savoir ce qu'on veut : soit un OS gén... 25 May 2021, 12:44
iAPX Reste plus qu'à trouver un moyen d'inject... 25 May 2021, 13:15
ziggyspider Et si on est pas sous OSX 11 … c'est open b... 25 May 2021, 15:27
skarel Citation (ziggyspider @ 25 May 2021, 15:2... 25 May 2021, 16:11
aranaud Citation (ziggyspider @ 25 May 2021, 16:2... 25 May 2021, 16:11
kabuka 11.4 apporte enfin le support officiel des navi2 d... 25 May 2021, 21:43
bob II Bonjour,
J'ai un message pénible depuis la M... 25 May 2021, 22:38
hellomorld Citation (bob II @ 25 May 2021, 22:38) Bo... 26 May 2021, 05:33
bob II Citation (hellomorld @ 26 May 2021, 06:33... 26 May 2021, 14:11
Neutral_ch (Désormais on peut décocher: émettre un son au ... 25 May 2021, 23:49
Cronos Comme d'hab, mon macmini M1 ne redémarre pas ... 26 May 2021, 05:17
chartz Mode râleur ON.
Et ça continue les mises à jou... 26 May 2021, 06:13
VSD Citation (chartz @ 26 May 2021, 06:13) Mo... 26 May 2021, 08:07

skarel Citation (VSD @ 26 May 2021, 08:07) Citat... 26 May 2021, 08:48

chartz Citation (skarel @ 26 May 2021, 09:48) Ci... 26 May 2021, 09:43
cafefroid Citation (chartz @ 26 May 2021, 07:13) Mo... 26 May 2021, 09:57
Pat94 Salut,
Apple aurait oublié de corriger les faill... 26 May 2021, 10:07
skarel Citation (Pat94 @ 26 May 2021, 10:07) Sal... 26 May 2021, 10:38
Pat94 Citation (skarel @ 26 May 2021, 11:38) Il... 26 May 2021, 10:52
skarel Citation (Pat94 @ 26 May 2021, 10:52) Cit... 26 May 2021, 11:11

zebigbug Citation (skarel @ 26 May 2021, 12:11) En... 27 May 2021, 06:01
iAPX Citation (Pat94 @ 26 May 2021, 04:52) ...... 26 May 2021, 13:10
Pat94 Re bonjour,
Ne dites pas fontaine je ne boirais j... 26 May 2021, 14:15
bob II Citation (Pat94 @ 26 May 2021, 15:15) Re ... 26 May 2021, 14:20
skarel Citation (Pat94 @ 26 May 2021, 14:15) [�... 26 May 2021, 14:24

bob II Citation (skarel @ 26 May 2021, 15:24) Ci... 26 May 2021, 15:01

skarel Citation (bob II @ 26 May 2021, 15:01) Ci... 26 May 2021, 15:15
linus Citation (Pat94 @ 26 May 2021, 15:15) ...... 26 May 2021, 18:32
skarel Citation (linus @ 26 May 2021, 18:32) Cit... 26 May 2021, 19:01
iAPX Moui dans ce cas le "nous" m'incluan... 26 May 2021, 15:24
skarel Citation (iAPX @ 26 May 2021, 15:24) Moui... 26 May 2021, 15:34
bob II Franchement je n'ai pas de trop gros aprioris... 26 May 2021, 15:28
bob II çà parle à quelqu'un ce genre de message ?... 26 May 2021, 16:33
Pat94 Salut Bob II
N'aurais pas tu essayer de clone... 26 May 2021, 18:13
iAPX Citation (Pat94 @ 26 May 2021, 12:13) Sal... 26 May 2021, 18:26
iAPX Je crois que l'origine de nombreux virus est b... 26 May 2021, 19:37
bob II Bon et bien impossible jusqu'à maintenant de ... 26 May 2021, 21:20
JayTouCon La faille date du mois d’aout 2020 non ?
Ça fa... 27 May 2021, 07:28
linus Citation (JayTouCon @ 27 May 2021, 08:28)... 27 May 2021, 10:41
bob II Bonjour,
Pour information j'ai finalement r�... 27 May 2021, 11:01
captaindid Citation (bob II @ 27 May 2021, 11:01) Br... 27 May 2021, 15:56
zero Citation (bob II @ 27 May 2021, 19:01) Br... 28 May 2021, 07:29
bob II Citation (zero @ 28 May 2021, 08:29) Cita... 28 May 2021, 10:08
betaman61 Bonjour à tous.
Mac OS Big Sur est le seul sy... 29 May 2021, 07:31
bob II Citation (betaman61 @ 29 May 2021, 08:31)... 29 May 2021, 11:20
aranaud Citation (betaman61 @ 29 May 2021, 08:31)... 29 May 2021, 11:20
bob II Je me demande si Apple n'essaye pas de tuer le... 29 May 2021, 11:25
aranaud Citation (bob II @ 29 May 2021, 12:25) Je... 29 May 2021, 12:31
Neutral_ch Citation (aranaud @ 29 May 2021, 13:31) J... 29 May 2021, 13:55
iAPX Citation (Neutral_ch @ 29 May 2021, 07:55... 29 May 2021, 14:29
Neutral_ch Citation (iAPX @ 29 May 2021, 15:29) Cita... 29 May 2021, 14:35
bob II Citation (iAPX @ 29 May 2021, 15:29) ... ... 31 May 2021, 10:51
iAPX Citation (bob II @ 31 May 2021, 04:51) Ci... 31 May 2021, 11:28
fearozz Citation (Lionel @ 25 May 2021, 09:39) Ja... 3 Jun 2021, 11:09
Benzebut Citation (fearozz @ 3 Jun 2021, 12:09) Co... 3 Jun 2021, 19:08![]() ![]() |
| Nous sommes le : 22nd December 2025 - 19:38 |