codehydra.com | Innovation through brute force

CAT | MAKE/HACK

Apr/10

23

Validate ALL input!!!

Today one of the new guys at work ask me a question.  “Can our web portal submit “Severity 1″ support request?”

The standard answer has always been ‘No.”, but today I figured it was time to test that.

Start Tamperdata and log into the portal.  Dispatch request as normal with one exception.  change ‘severity’ value to 1 and submit. you now have a ‘sev1d’ support request without a phone call.

Software:

Firefox with Tamperdata add-on

No tags

APK_Install1

This allows you to install APK files to your android device by right clicking the file in windows explorer.

This was tested on XP(sp3) and a MyTouch3g.

APK install

·

Needed Software:
SQLite3explorer

Needed Files:
/data/data/com.android.providers.telephony/app_parts/*
/data/data/com.android.providers.telephony/databases/mmssms.db

Load mmssms.db in SQLite3explorer and execute…
SELECT ct, _data, name FROM part WHERE ct LIKE 'image%';

should return something like..

Then just rename the PART_######### file(s) to something with the correct extension, like “image_1.gif”

·

· ·

Dec/09

8

Android ADB .DLL exports

Jun/09

10

Image > video in linux

I was ask if I knew of a way to grab a image from a web page over the course of a day because a friend will be standing in front of a webcam but we didn’t know when.

so as we all know the answer is yes with Linux

First, we need to get the image. the filename is the same but is refreshed once a minute. This will use wget to download the image and name the file like “2009_05_29-15_29_32.jpg”
then all we need to do is setup a cron job [I cheated and used gnome-schedule]

wget http://www.jach.hawaii.edu/weather/images/ukirt.jpg -O /home/alex/Desktop/ukirt_grab/"`date +%Y_%m_%d-%H_%M_%S.jpg`"

Now I listed the contents of the directory by date and output that to a file.

ls -1tr /home/alex/Desktop/Lee > /home/alex/Desktop/ukirt_grab/files.txt

Last, Use mencoder to make the movie.

mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o /home/alex/Desktop/test.avi -mf type=jpeg:fps=20 mf://@/home/alex/Desktop/ukirt_grab/files.txt

· ·

Theme Design by devolux.nh2.me