Desire HD Crash/Reboot/Turns off when the flash is used

Posted on by 0 comment

This is just a PSA for anyone else using this phone, if your phone dies without fail when you try to take a picture with the flash, try changing the battery, the other reference I found to this happening was due to a faulty flash LED.

Category: Hardware, Phones | Tags: , ,

Choosing A Type Disposition

Posted on by 0 comment

Type dispositions allow you choose the action the browser will take when you give it a file, it’s defined in rfc 2183 if you want to display the file in the browser you can output

print "Content-Disposition: inline; filename="$filename.$ext"n"

as apart of the file before the mime type and if you wish to force a download of the file use

print "Content-Disposition: attachment; filename="$filename.$ext"n"
Category: Software | Tags: , ,

Compressing GUIDs

Posted on by 0 comment

GUIDs are the Globally unique Identifiers used by windows to install and identify software; they are used in the registry to ensure that keys used that piece of software are unique, a normal guid will look like this {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} but this guid is only one of the ways software will identify it’s self in the registry. You can also have a compressed GUID which you can get from a normal GUID by following this process

The first group of eight hexadecimal digits are placed in reverse order:

ABCDEFGH becomes HGFEDCBA

The same is done with the second group of four hexadecimal digits:

IJKL becomes LKJI

The same is done with the third group of four hexadecimal digits:

MNOP becomes PONM

In the fourth group of four hexadecimal digits, every two digits switch places:

1234 becomes 2143

In the last group of 12 hexadecimal digits, again every two digits switch places:

Lastly remove all {} ans -’s

python function to do this for you

compress_guid=(lambda guid:"".join(map(lambda x: x[::-1],guid[0:3])+map(lambda x:''.join([x[i:(i+2):][::-1]for i in range(0,len(x),2)]),guid[4:])))

compressed GUIDs occur in various places in the registry common ones being
HKEY_LOCAL_MACHINESOFTWAREClassesInstallerProducts
and somewhere under
HKEY_CLASSES_ROOT

The Adventure Begins

Posted on by 0 comment

So I have just ordered my PIC microprocessor and a couple of other things and I plan on making a small usb keylogger speaking of which http://hakshop.myshopify.com/products/usb-rubber-ducky is freaking awesome 🙂 I’ll upload a copy of my PIC order once I fix my permissions on my wordpress install

Category: C, Hardware, Security, USB | Tags:

Dealing with unicode in Python

Posted on by 2 comments

I say transliterating, but I really just mean coping with strings involving unprintable characters…

 

Today I came across a neat little trick which I hope helps you as much as I.

take the following print statement

print "blahÆlec"

this will break

but there are some cases where exact spelling isn’t important you just to to out put the data so you can glace at it, you can actually give the str decode method a nifty argument “ignore” eg.

print "blahÆlec".decode("ascii","ignore")

and this simply drops the unprintable characters.

Success

Category: Python | Tags: , ,

Welcome to my new shiny blog on my shiny VPS

Posted on by 0 comment

Lets get straight down to business…

Category: Uncategorized