diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 23:34:23 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 23:34:23 -0400 |
commit | c493a8f8073702bcdccdbc40bf09931e201c9013 (patch) | |
tree | cfd391448ba19b5bf6fc41f500c7443ea9c26d08 /sploit/mem.py | |
parent | 5b84c859396574795f4f5beb296e23f4f6458059 (diff) | |
download | nsploit-c493a8f8073702bcdccdbc40bf09931e201c9013.tar.gz nsploit-c493a8f8073702bcdccdbc40bf09931e201c9013.zip |
sploit: Move __attr_filter__ to a general place in util
Found a spot to use __attr_filter__ in the rev module, so moving it out
of mem and into a shared place (util).
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'sploit/mem.py')
-rw-r--r-- | sploit/mem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sploit/mem.py b/sploit/mem.py index c953fce..ac2bbb1 100644 --- a/sploit/mem.py +++ b/sploit/mem.py @@ -1,3 +1,5 @@ +from sploit.util import __attr_filter__ + class Symtbl: __subs__ = {} def __init__(self, **kwargs): @@ -84,5 +86,3 @@ def __str__(self,tbl): else: s += __tbl_format__.format(hex(addr),sym) return s - -__attr_filter__ = ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__'] |