New answers tagged cat
Since the dates are in a format where the chronological order is the same as the lexical order, you can do: awk '$0 >= "13/05/13 07:50" && $0 <= "13/05/23 01:58"' (assuming the timestamps are at the beginning of each line)
No, you need something that reads its stdin and writes it to some file. cat is a good choice for that as it supports binary data and doesn't do anything fancy with its input so is small and efficient. You could do: ... | ssh remote 'cp /dev/stdin outputfile` But that would not be more efficient and would only work on systems that have /dev/stdin.
Someone on SO hinted in the right direction; the problem was with the baudrate, it was set to a different value than what I need. To check the baudrate: stty -F /dev/ttyUSB1 To set the baudrate: stty -F /dev/ttyUSB1 57600 (57600 in my case is the baudrate my device needs) It's working like a charm now.
Serial ports are especially weird beasts. You'll want to use an Old School terminal emulation program. I used to think tip was the best, but nobody seems to have the source for it any more. cu comes with UUCP, and it's a complete hassle to install and configure, don't even bother. A quick google around tells me that people tend to use minicom these days. ...
This changes the terminal title in GNOME Terminal 3.6.1, unless overridden by something like PS1: printf "\033]2;Script Kiddie was here\007" Now open a new GNOME Terminal window to test the cat version: printf "\033]2;Script Kiddie was here\007" > test.bin cat test.bin Yep, this also sets the terminal title. There used to be a security issue with ...
I have definitely experienced xterm inserting arbitrary characters into itself as if I had typed them. And on occasion this has apparently included newline character, so that I got ngwerm:0riu: command not found as a response. I see no reason why someone could not craft a file that would send specific, harmful commands. So yes, at least some terminals are ...
Most terminal emulators will send back some response, if they receive certain escape sequences (have a look at the xterm control sequences documentation). E.g., you can send \e[0c to a VT100-like emulator and it will send back the device attributes, something like \e[?1;2c (This is probably what Keith observed.) But these answers are not arbitrary strings. ...
Well, a terminal emulator basically simply prints out the characters set to it. Anything besides simply printing a character on the current position, like setting a new position, changing color, changing title, etc., is done by escape sequences. The set of supported escape sequences usually consists of well defined standards like ANSI, which does not ...
Whether such output can be exploited depends on the terminal program, and what that terminal does depending on escape codes that are being sent. I am not aware of terminal programs having such exploitable features, and the only problem now would be if there is an unknown buffer overflow or something like that, that could be exploited. With some older ...
Top 50 recent answers are included