Sunday, December 27, 2009

sflgtc - Seagate FreeAgent Led & Idle timeout Controller for Linux

Today, i got a Seagate FreeAgent external usb hd 500 GB. Since i was really bored, i made this little application that should be able to handle the Led and Idle Timeout on Linux as the windows software does. I dont know if there is something like this for linux, really, i didn't search..... but... hey... another one wont hurt!
Note that it's really dumb :).
To add new seagates devices, just add vendor_id & product_id on the structure, or send me the data and i'll do it.

Let me know, if something it's not working, or new usb commands should be added for a new device.

Good Luck Seagater's :)


Test Device: 0bc2:3008 Seagate RSS LLC

Required: libusb-1.0


Compile: gcc -o sflgtc sflgtc.c `pkg-config --cflags --libs libusb-1.0`
* Usage:
* ./sflgtc -l 0 -> Query Led State
* ./sflgtc -l 1 -> Switch Led On/Off
* ./sflgtc -t 0 -> Query current timeout set on device
* ./sflgtc -t -1 -> Disable timeout on device
* ./sflgtc -t seconds -> Set new timeout ( on win : 3 min, 5 min, 15 min, 1 hour, ... 5 hours its supported )
* ./sflgtc -l 0 -k -> ( Do not unload / load usb-storage module. You must remove it first, use this if you inteend to set led and timeout )

If you dont want the app to remove and reload usb-storage, use the "-k" option, but first:
# rmmod usb-storage
# use sflgtc with -k
# modprobe usb-storage

Sunday, September 20, 2009

Ekoparty 2009 Halted...

Ekoparty is improving each year, and the quality of the talks were better than ever.
Congratz to the organizers and friends, and as always, the next Ekoparty will always be the "hardest" to organize, since its really difficult to get better than it's each year.

On the first day, i went to almost all the talks. Particularly i liked the turbo talk of Bitmask Abussing and Binary Diffing.

On the second day, i only assisted to the SSL talk, but i fall sleep :(. I spent most of the time participating on the TippingPoint DRINC contest, until 4 pm, an unfortunatly event happened on the table where i was sitting and i stopped playing. i think that i got accepted 4 vulns for the contest, and 2 more that were not really exploitable, but they gave me drinks ticket for that two ( maybe because, i was starting to interrupt them to much :) ). I think that's the reason why i fall sleep on the auditorium on the ssl talk .

Next time, i will drink everything after the contest, and not while playing :P . The contest where well organized, but, sometimes, i really thought i was bothering the ppl at TippingPoint stand, since, they looked busy, and didn't know who was in charge of the contest to ask things. Also, next time, would be nice to write the ap password and ip address of the zdi on the board :)

Besides thats, the only bad thing at the ekoparty was the weather... i am getting a cold....

Tuesday, September 8, 2009

Finally, after some delay, acer & wmi will stop oops.
Patch was finally merged on linux-2.6.31-rc7-git5.
The oops only happened when stack protector was enabled, and affecting only Acer Laptops .

Another patch relating kgdb + tty subsys, merged on 2.6.31-rc1 and core fixed by Alan Cox.

Ekoparty comming soon.

Monday, July 13, 2009

Overheat = how dirty we are...

While looking for some "coolers pad" for the Acer, i came across this post , and finally decided to clean the poor laptop.
After this, i got 40C less on power on. Current temp is 45 C, i was working on 95C.
I hope, i can compile a kernel without using the "Liliana" external fan anymore :)

Tuesday, May 26, 2009


since i got bored today, i updated an old proyect at ( qt4 webcam viewer + example plugins )

Also , i added a test module for apache2 called iplimitrequest , just for fun at