summaryrefslogtreecommitdiffstats
path: root/sploit/util.py
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-03-13 23:34:23 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-03-13 23:34:23 -0400
commitc493a8f8073702bcdccdbc40bf09931e201c9013 (patch)
treecfd391448ba19b5bf6fc41f500c7443ea9c26d08 /sploit/util.py
parent5b84c859396574795f4f5beb296e23f4f6458059 (diff)
downloadnsploit-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/util.py')
-rw-r--r--sploit/util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sploit/util.py b/sploit/util.py
index 610ab31..8a259c4 100644
--- a/sploit/util.py
+++ b/sploit/util.py
@@ -13,4 +13,10 @@ def run_cmd_cached(cmd):
__RUN_CACHE__[key] = result
return result
+__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__']