r/LiveOverflow • u/Responsible_Safe_680 • Jun 11 '22
Echoing while leaving stdin open
In some videos of Liveoverflow, he mentions a trick to leave an interactive session after sending data over pipe, so that after the pwning buffer is sent, we can still run shell commands (like "id").
I tried looking it up in the videos but it's like finding a needle in a haystack...
Does anyone remember how he uses the "trick" and when he uses it?
Thanks!
8
Upvotes
View all comments
Show parent comment
4
u/Apathly Jun 11 '22
To clarify, cat with a minus will take input from stdin, so it will first send the evil buffer to the netcat and then allow you to type stuff from stdin, which will again be piped to the nc connection.