Fixing bash shellshock Vulnerability fedora 12(EOL)

No Comments »

#wget ftp://ftp.icm.edu.pl/vol/rzm2/linux-fedora-secondary/archive/updates/12/SRPMS/bash-4.0.38-1.fc12.src.rpm
#rpm -ivh bash-4.0.38-1.fc12.src.rpm
#cd /root/rpmbuild/SOURCES/

#wget http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-039
#wget http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-040
#wget http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-041

#cd /root/rpmbuild/SPECS

#vi bash.spec

Patch039: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash40-039
Patch040: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash40-040
Patch041: ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash40-041

%patch039 -p0 -b .039
%patch040 -p0 -b .040
%patch041 -p0 -b .041

#rpmbuild -ba bash.spec
#rpm -Uvh /root/rpmbuild/RPMS/x86_64/bash-4.0.38-1.fc12.x86_64.rpm –force

#foo='() { echo not patched; }’ bash -c foo
bash: foo: command not found # you’re done

#env x='() { :;}; echo vulnerable’ bash -c “echo this is a test” | grep vulnerable > /dev/null 2>&1
#echo $?
1

Share

How To Make A Propeller Clock

40 Comments »

Once upon a time, lifes goes on as usual, boring. Until one day my friend showing me a weird clock on youtube. i said “wow, that was awesome!”, “how it works?”, “i should make one!”. Basically, i have experienced on electronic DIY stuffs. i started to figure out on how to make it, lots of information found. so basicaly, propeller clock based on POV (Persistence of vision)

http://en.wikipedia.org/wiki/Persistence_of_vision

The clock’s graph formed by cheating human eyes, one array of leds burst on constant interval/delay in one motor rotation, continuously (in this case  divided to 360 degree in one rotation, can be more for higher resolution).

After i’ve found, understand, (and yet still confused on how it works :P). i started making prototypes with existing MCU module (atmega8535), wired to array of 8 leds. it works, and not good!! it’s too heavy, no index reference, the text is very unstable. i need to design new board which is lighter and throw out all unnecessary components. there are two web site that i’m using as references, when building this clock.

http://www.microsyl.com/index.php/2010/03/18/propeller-clock/

i used the codes from there with lots of modification, original code is writen using ICCAVR, i converted it to AVR Studio.

http://www.oocities.org/tjacodesign/propclock/propclock.html

i used his isolated power supply, to power up the propeller clock module.

For remote control, it was stolen from here: :D

http://www.dharmanitech.com/2009/01/ir-remote-controlled-car-pwm-motor.html

picture

Read the rest of this entry »

Share