icholy / ttygif

Convert terminal recordings to animated gifs
MIT License
3.95k stars 255 forks source link

ttygif syntax error #16

Closed wirehack7 closed 10 years ago

wirehack7 commented 10 years ago

Getting an error when processing ttygif:

sh: Syntax error: "(" unexpected
snapshot: Success
icholy commented 10 years ago

os? shell? terminal?

icholy commented 10 years ago

@wirehack7 I'm going to close this for now. Give me more info and I'll reopen.

wirehack7 commented 10 years ago

Debian 2.6.32-48squeeze1 Kippo tty log.

icholy commented 10 years ago

I'll assume you're talking about kippo. Are you trying to run ttygif on the remote machine or your local one?

You should be doing:

$ ttyrec foo   # start recording
$ ssh kippo    # connect to remote host
# ...
# ... do your thing & disconnect.
# ...
$ exit         # stop recording
$ ./ttygif foo # create gifs
wirehack7 commented 10 years ago

Nope, I was trying to run ttygif on the saved logs of the kippo honeypot in tty format.

icholy commented 10 years ago

Ok so you're working on a debian box (not sshing to it) and using bash I'm assuming?

wirehack7 commented 10 years ago

Yes. And as described: Kippo is a SSH honeypot, somebody connects, enters some commands and a log in tty format is then saved (with his session).

icholy commented 10 years ago

You're trying to run ttygif on this generated log?

EDIT: if you send me one and I'll give it a try.

wirehack7 commented 10 years ago

Yes, because I thought ttygif would handle also that file, it is in tty format.

icholy commented 10 years ago

You should include information like that right away instead of making me play 21 questions with you ... -.-

Anyway, see if it works with ttyplay. If not, it won't work with ttygif. If it does work, send me a sample session file and I'll see if I can get it working.

wirehack7 commented 10 years ago

Oh sorry,

http://cloud.capsop.com/1O2e2i081a36

Here is a log. It wont work in ttyplay. So maybe I was false preventing that this is tty format? Hopefully not. Btw, thanks for helping!

icholy commented 10 years ago

I don't think this is going to work. You can always use ttyrec to record the log playing back and then use ttygif on that.