Similar to hexadecimal, but it also accepts question marks as wildcards for unknown values in fixed positions. This function was conceived for parsing memory addresses, hence the name.Ĭonvert a strip of hexadecimal numbers (like OllyDbg’s memory view) into binary data. Unlike integer no attempt is made to detect other formats. If all fails, the number is assumed to be decimal. If no prefix is given, this method still does its best to tell if it’s hexadecimal or not. Supports decimal, hexadecimal (0x prefix), octal (0o prefix) and binary (0b prefix). The static class HexInput contains a collection of functions to parse input data in various formats. reset () # No colors available! else : print "Can't use colors! Are you redirecting the output to a file?" print "This is black text on %s %s background." % ( intensity, color ) # Reset the console colors and quit. function = getattr ( Color, "bk_" + intensity ) function () # Print a message. for intensity in ( "light", "dark" ): # Set the background intensity. function = getattr ( Color, "bk_" + color ) function () # For each intensity. for color in ( "red", "green", "blue", "cyan", "magenta", "yellow", "white" ): # Set the background color. print "This is %s %s text on black background." % ( intensity, color ) # Set black text. ![]() function = getattr ( Color, intensity ) function () # Print a message. ![]() for intensity in ( "light", "dark" ): # Set the intensity. function = getattr ( Color, color ) function () # For each intensity. for color in ( "red", "green", "blue", "cyan", "magenta", "yellow", "white" ): # Set the color. can_use_colors (): # Let's be polite: put everything in a try/except block # so we can reset the console colors before quitting. From winappdbg import Color # Can we use colors? if Color.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |