Package Libs :: Module immutils
[hide private]
[frames] | no frames]

Module immutils

source code

(c) Immunity, Inc. 2004-2007

Immunity Inc.

MOSDEF utils for non-CANVAS users

Classes [hide private]
  antifloatdict
Functions [hide private]
 
__ignore(*args, **kargs) source code
 
__retsamearg(arg) source code
 
devlog(*args, **kargs) source code
 
isdebug(*args, **kargs) source code
 
warnings_safely_ignore(*args, **kargs) source code
 
warning_restore(*args, **kargs) source code
 
deprecate(*args, **kargs) source code
 
uniqlist(arg) source code
 
hasbadchar(word, badchars) source code
 
check_bits_consistancy(bits) source code
 
check_string_len(s, l, assertmsg='') source code
 
split_int_bits(bits, i) source code
 
split_int32(int32) source code
 
int2list_bits(bits, i, swap=0) source code
 
int2list32(int32, swap=0) source code
 
int2str_bits(bits, i, swap=0) source code
 
int2str32(int32, swap=0) source code
 
int2str16(int16, swap=0) source code
 
int2str32_swapped(int32) source code
 
int2str16_swapped(int16) source code
 
str2int_bits(bits, s) source code
 
str2int_bits_swapped(bits, s) source code
 
str2int16(s) source code
 
str2int32(s) source code
 
str2int64(s) source code
 
str2int16_swapped(s) source code
 
str2int32_swapped(s) source code
 
str2int64_swapped(s) source code
 
str2bigendian(astring)
oppposite of istr2int
source code
 
str2littleendian(astring) source code
 
byteswap_bits(bits, i) source code
 
byteswap_64(int64) source code
 
byteswap_32(int32) source code
 
byteswap_16(int16) source code
 
hexprint(s) source code
 
prettyprint(instring) source code
 
c_array(data, desc=None) source code
 
shellcode_dump(sc, align=0, alignpad=' ', alignmax=16, mode=None) source code
 
dummywrite(fd, data)
we just want to write some data on any fd, opened or closed.
source code
 
warnmsg(msg) source code
 
binary_string_bits(bits, i) source code
 
binary_string_int8(int8) source code
 
binary_string_int16(int16) source code
 
binary_string_int32(int32) source code
 
binary_string_int64(int64) source code
 
binary_string_char(c) source code
 
binary_string_short(s) source code
 
binary_string_int(i) source code
 
dInt(sint)
Turns sint into an int, hopefully python's int() doesn't handle negatives with base 0 well
source code
 
binary_from_string(astr, bits=None)
returns [1,0,0,0,0,0,0,0] from "€"
source code
 
b(mystr) source code
 
hexdump(buf) source code
 
prettyhexprint(s, length=8)
A nicely displayed hexdump as a string
source code
 
sint_is_signed(bits, c) source code
 
uint_bits(bits, c) source code
 
sint_bits(bits, c) source code
 
fmt_bits(bits) source code
 
uintfmt_bits(bits, c) source code
 
sintfmt_bits(bits, c) source code
 
bits(myint, maxbits=32)
counts the number of bits in an integer the slow way
source code
 
uint8(c) source code
 
uint16(c) source code
 
uint32(c) source code
 
uint64(c) source code
 
sint16(c) source code
 
sint32(c) source code
 
sint64(c) source code
 
uint8fmt(c) source code
 
uint16fmt(c) source code
 
uint32fmt(c) source code
 
uint64fmt(c) source code
 
sint16fmt(c) source code
 
sint32fmt(c) source code
 
sint64fmt(c) source code
 
IsInt(str)
Checks for integer, hex or no
source code
 
signedshort(i) source code
 
big2int(big) source code
 
int2uns(small) source code
 
istr2halfword(astring) source code
 
nstr2halfword(astring) source code
 
intel_str2int(astring) source code
 
istr2int(astring) source code
 
halfword2istr(halfword) source code
 
halfword2bstr(halfword) source code
 
short2bigstr(short) source code
 
intel_short(halfword) source code
 
big_short(short) source code
 
big_order(int32)
Opposite of str2bigendian
source code
 
intel_order(int32)
bijection of str2littleendian()
source code
 
print_binary(int32) source code
 
decimal2binary(num) source code
Variables [hide private]
  __VERSION__ = '1.0'
  goodchars = '.()~!#$%^&*()-=_/\\:<>'
  __package__ = 'Libs'