Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts

9/26/2014 #Shellshock Images of the Week


During these days we're hearing about #Shellshock bug, and I's just wondering if the Sysadmin of US DoD network is going to invite everybody to the big party with all these attacks,botnets, forkbombs,etc :P stay alert ,During all these two days one of the major flaws has been exploited and that's the obviously! ,  Who does not like free shells :3, there're right now tons of  people creating new PoC's now imagine how money could you get :P Do you imagine how the defense should be.

I've been collecting  a couple of fun pics regarding to this topic , enjoy it .

Embedded image permalink
Fig.1 I can't reproduce #shellshock on this system either! Plz help.

Embedded image permalink

Fig.2 Jailbreaked iOS 7.1.2 #shellshock test result.


Embedded image permalink

                                Fig.3  For a laugh: *Facepalm* Oh GoDaddy... #Shellshock #CVE20146271 #bashbug #bashbleed #bashpocalypse #infosec

Embedded image permalink

Fig.4 #infosec #shellshock #bashbleed #bashpocalypse

Embedded image permalink

Fig.5 Lol In your servers, stealing your secretz #bashbug #shellshock

Embedded image permalink
Fig.6 How many people already talking about #shellshock? About 40K tweets by 46K users since yesterday. #bash #bashbug

Embedded image permalink
Fig.7 Since 90's ?

Embedded image permalink
Fig.8 In the Wake of Shellshock, Mac Users Are Left Waiting for a Patch via @mashable http://avgclick.me/1n46EUP


Embedded image permalink

#Shellshock: All you need to know about the #BashBug vulnerability http://symc.ly/1u21HMX



Digg it StumbleUpon del.icio.us

4/09/2012 Simple Regexp para rss

Recientemente me encontraba revisando algo de musica  de los dj's de defcon{1,2,...19} y sus contenidos,yo en mi afan de tener algo de musica en mi celular  deseaba descargar toda la musica de  7 a la 9  para poder descargar la musica o video de alguna CON pasada te dan el link a un archivo rss .


Defcon contents

Eligiendo el  rss

Defcon 9 Music




pero resulta que me encontraba  con algunos problemas:

1.No tenia Itunes por obvias razones...debian,openbsdetc...
2.No me gusta para nada ese reproductor que se me instala con el gdm si rhytmbox,me parece que va algo lento con  la descargar de las canciones,cuando no es eso se me tira todo el  i3,Asi que yo viendo esta situacion pense en bash,y acordandome de @hecky y otros personajes que todo se puede hacer con bash!,la unica limitacion es tu imaginacion.

El archivo rss basicamente tiene una estructura ,pero nos centraremos en obtener todo lo que contenga la url de descarga que se encuentra dentro de  enclosure:

<enclosure url="https://media.defcon.org/dc-9/music/Defcon_9_Club_Saturday_07_Corrupt_Data.mp3" length="55069064" type="audio/mpeg"/>
si deseas mirar un ejemplo de los rss puede revisar este que es el que yo desee descargar:


asi que lo primero sera descargar nuestro archivo en cuestion para realizar el filtrado.

wget https://www.defcon.org/podcast/defcon-9-music.rss -O  defcon9.rss

despues :

cat defcon-9.rss |grep "<enclosure"|awk '{print $2}'|cut -f2 -d ' " '>urls.txt 

y por ultimo descargamos con wget :

wget -i urls.txt 
si todo estuvo bien deberia aparece algo como :




y asi podrias descargar las canciones.hubiera podida usar curl y la url pero no recordaba algunos parametros  y decidi meterme  por el lado largo .Espero les halla gustado el post y si sabes de otra forma de hacerlo pues no dudes en compartir :-P.

pd:Por cierto si deseas ademas de la musica de la 9 la de la 8 y 7 es simplemente el mismo proceso solo que tendrias que usar
>>urls.txt
Digg it StumbleUpon del.icio.us