summaryrefslogtreecommitdiffstats
path: root/tools/sploit/sploitconfig.py
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-08-03 19:53:26 -0400
committerMalfurious <m@lfurio.us>2021-08-03 19:53:26 -0400
commit5970194d1303e16364ff1405f974c995de46203b (patch)
treed3f748eeb0112205bb7784bd353b22376ee827ae /tools/sploit/sploitconfig.py
parentef6e3a502bf8498a8f641eb3dad11d3065359bbb (diff)
parentaa9da0f6f27759f5f3201bafb0e52f41367f08ef (diff)
downloadlib-des-gnux-5970194d1303e16364ff1405f974c995de46203b.tar.gz
lib-des-gnux-5970194d1303e16364ff1405f974c995de46203b.zip
Merge tag 'pull-duso-imaginary-writeups' of https://github.com/Dusoleil/lib-des-gnux
Writeups and other tools/docs from ImaginaryCTF from Dusoleil. * tag 'pull-duso-imaginary-writeups' of https://github.com/Dusoleil/lib-des-gnux: Adding Initial Commit of the Sploit Tool Adding Various Docs Adding Various Small Tools Git Ignore __pycache__ for All Tools Writeups from Imaginary CTF 2021
Diffstat (limited to 'tools/sploit/sploitconfig.py')
-rwxr-xr-xtools/sploit/sploitconfig.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/sploit/sploitconfig.py b/tools/sploit/sploitconfig.py
new file mode 100755
index 0000000..084a59d
--- /dev/null
+++ b/tools/sploit/sploitconfig.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import sys
+
+#if given a program name on the command line, we'll use popen
+#otherwise, we use stdin/stdout
+#in the latter case, you can use sploitpipe to set up spltin and spltout
+use_popen = len(sys.argv) > 1
+#sleep for this many seconds to give time to attach gdb
+wait_for_gdb = 0
+#will decode output with this encoding for printing
+#or if empty, will print as bytes
+log_encoding = ''#'utf-8'