summaryrefslogtreecommitdiffstats
path: root/tools/sploit/sploitpipe
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/sploitpipe
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 '')
l---------tools/sploit/sploitpipe1
-rwxr-xr-xtools/sploit/sploitpipe.sh21
2 files changed, 22 insertions, 0 deletions
diff --git a/tools/sploit/sploitpipe b/tools/sploit/sploitpipe
new file mode 120000
index 0000000..3e5a956
--- /dev/null
+++ b/tools/sploit/sploitpipe
@@ -0,0 +1 @@
+sploitpipe.sh \ No newline at end of file
diff --git a/tools/sploit/sploitpipe.sh b/tools/sploit/sploitpipe.sh
new file mode 100755
index 0000000..a761ad5
--- /dev/null
+++ b/tools/sploit/sploitpipe.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#sets up sploit.py to use the input/output of a target program
+#after running ./sploit you can launch the target program with
+#<spltin ./target_program &>spltout
+#also works in gdb
+#r <spltin &>spltout
+#or run the program in the background and set the gdb wait timer in sploit.py
+# <spltin ./target_program &>spltout &
+# gdb -p <pid that gets printed out when backgrounding target>
+
+rm spltin 2> /dev/null
+rm spltout 2> /dev/null
+
+mkfifo spltin
+mkfifo spltout
+
+<spltout tee >(./sploit.py &>spltin) | ./sploitlog.py
+
+rm spltin
+rm spltout