nroff -man ls.1m | more
echo -ne 'GET http://www.big-up.org HTTP/1.0\n\r\n\r' | nc $proxy $port
# fdisk -l sol-9-u7-sparc-v1.iso Disk sol-9-u7-sparc-v1.iso (Sun disk label): 1 heads, 640 sectors, 2048 cylinders Units = cylinders of 640 * 512 bytes Device Flag Start End Blocks Id System sol-9-u7-sparc-v1.iso1 r 0 1018 325760 4 SunOS usr sol-9-u7-sparc-v1.iso2 r 1018 2079 339520 2 SunOS root sol-9-u7-sparc-v1.iso3 2079 2087 2560 0 Empty sol-9-u7-sparc-v1.iso4 2087 2095 2560 0 Empty sol-9-u7-sparc-v1.iso5 2095 2103 2560 0 Empty sol-9-u7-sparc-v1.iso6 2103 2111 2560 0 Empty
The second partition offset is 1018 * 640 * 512 bytes = 333578240 bytes
# mkdir /mnt/s0 # mkdir /mnt/s1 # mount -t iso9660 -o loop,ro sol-9-u7-sparc-v1.iso /mnt/s0 # mount -t ufs -o ufstype=sun,loop,ro,offset=333578240 sol-9-u7-sparc-v1.iso /mnt/s1
service socks
{
disable = no
socket_type = stream
wait = no
user = www
server = /home/www/www.sh
}
#!/bin/bash
echo "Content-Type: text/html"
echo
cat << EOF
<html>
<body>
Hello World
</body>
</html>
EOF
The stty command sets certain terminal I/O options for the device that is the current standard input.
To fixe this issue you will have to redefine “erase”
stty erase ^H
To enter “^H” DO NOT ENTER “^” followed by “H”, this should be on sequence! you could press “backspace” to get the out put on screen or by doing “CTRL + V” and then “CTRL + h”
It can happen that your X session freezes and even “ctrl + backspace” or “ctrl + alt + F1” does not work! No need to reboot your system to fix it:
Note: I will use the notation “sys” for PrintScreen/SysRq (F13 on MAC)
On your local network to backup data you don't need to use a secure conection (ssh, ssl…) which use cpu and bandwith.
Netcat is a very usefull network tool but in this case we just going to use it to backup data with tar.
Netcast listen on the port 6666, data received will be redirect in the file hostname.tgz untill EOF.
cd /backup $ nc -l -p 6666 >> hostname.tgz
tar / on STDOUT (-O), this output will be netcat. Wait 5 secondes (-w 5) to make sure than all data was send.
$ tar czvOp --same-owner / -X ~/dirtoexclude | nc -w 5 destination_host 6666
One file
nc -l -p $RECIPIENT_PORT > $FILE
cat $FILE | nc -q0 $RECIPIENT_ADDRESS $RECIPIENT_PORT
More than one file
nc -l -p $RECIPIENT_PORT | gzip -c -d | tar -x
tar -c $FILES | gzip -c | nc -q0 $RECIPIENT_ADDRESS $RECIPIENT_PORT
Encrypted Using ssh will be simpler but it's a solution!
nc -l -p $RECIPIENT_PORT | gpg --decrypt | tar -x
tar -c $FILES | gpg -s -e -r $RECIPIENT | nc -q0 $RECIPIENT_ADDRESS $RECIPIENT_PORT