Skip to content

Instantly share code, notes, and snippets.

def _find_switch_attributes(switch_jump_ea):
""" Return tuple of switch attributes.
This function will take an effective address for a switch table
and find attributes associated with the table. It will check
for the presence of a value table and return the address of the
beginning of the table and the width of the table elements, if
present.
Returns a tuple of: the base address of the offset table, the
@gpenghe
gpenghe / server.py
Created October 17, 2013 05:58 — forked from tsuna/server.py
#!/usr/bin/python
# A simple example of a threaded TCP server in Python.
#
# Copyright (c) 2012 Benoit Sigoure All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright notice,