2014年09月27日 CVE-2014-7169 is fixed by bash43-026
_ CVE-2014-7169 is fixed by bash43-026
http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-026
Before applying above patch
$ env -i X='() { (a)=>\' bash -c 'echo date' bash: X: line 1: syntax error near unexpected token `=' bash: X: line 1: `' bash: error importing function definition for `X' $ ls -al echo -rw-r--r-- 1 m-ito m-ito 29 Sep 27 10:39 echo $ cat echo Sat Sep 27 10:39:30 JST 2014 $
After applying above patch
$ env -i X='() { (a)=>\' bash -c 'echo date' bash: X: line 1: syntax error near unexpected token `=' bash: X: line 1: `' bash: error importing function definition for `X' date $ ls -al echo ls: echo: No such file or directory $ bash --version GNU bash, version 4.3.26(1)-release (i686-pc-linux-gnu) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $
2019年09月27日 Script to blur specified rectangle of movie
_ blurmovie.sh - 動画の一部(矩形領域)にボカシを入れるシェルスクリプト
#! /bin/sh # if [ "X$1" = "X-h" -o "X$1" = "X--help" ] then echo "Usage: $0 [-s starttime] [-e elapstime] [-r rectangle] [-vc vcodec] [-vb vbitrate] [-ac acodec] [-ab abitrate] [-i input] [-o output]" echo "Apply blur effect on specified rectangle of input." echo "" echo "-s starttime hh:mm:ss(default 00:00:00)" echo "-e elapstime hh:mm:ss(default 99:00:00)" echo "-r rectangle x:y:width:height:blur" echo "-vc vcodec h264(default), mpeg2video" echo "-vb vbitrate video bitrate(default 1000k)" echo "-ac acodec aac(default), any" echo "-ab abitrate audio bitrate(default 192k)" exit 0 fi # START="00:00:00" ELAPS="99:00:00" X="" Y="" WIDTH="" HEIGHT="" BLUR="" VCODEC="h264" VBITRATE="1000k" ACODEC="aac" ABITRATE="192k" INPUT="" OUTPUT="" # while [ $# -ne 0 ] do case $1 in -s) shift START="$1" ;; -e) shift ELAPS="$1" ;; -r) shift X=`echo $1|cut -d: -f1` Y=`echo $1|cut -d: -f2` WIDTH=`echo $1|cut -d: -f3` HEIGHT=`echo $1|cut -d: -f4` BLUR=`echo $1|cut -d: -f5` ;; -vc) shift VCODEC="$1" ;; -vb) shift VBITRATE="$1" ;; -ac) shift ACODEC="$1" ;; -ab) shift ABITRATE="$1" ;; -i) shift INPUT="$1" ;; -o) shift OUTPUT="$1" ;; esac shift done # if [ "${VCODEC}" = "h264" ] then FFORMAT="mp4" elif [ "${VCODEC}" = "mpeg2video" ] then FFORMAT="mpegts" else echo "vcodec should be h264 or mpeg2video, aborted." exit 1 fi # ffmpeg -y \ -i ${INPUT} \ -strict -2 \ -ss ${START} \ -t ${ELAPS} \ -c:v ${VCODEC} \ -b:v ${VBITRATE} \ -c:a ${ACODEC} \ -b:a ${ABITRATE} \ -filter_complex "[0:v]crop=w=${WIDTH}:h=${HEIGHT}:x=${X}:y=${Y},boxblur=lp=${BLUR}[chat];[0:v][chat]overlay=${X}:${Y}" \ -f ${FFORMAT} \ ${OUTPUT}