Simple Improvements for Simple Scripts
Did you ever suddenly notice that something simple you've been doing for years could be vastly improved with just a little bit of tweaking? I did yesterday concerning the transfer of files with netcat (e.g. when nobody got sendfile installed and standard paranoia forbids simply using scp instead) and figured I should share my sudden “enlightenment”
ncsend
#!/bin/sh host=$1 shift tar cv "$@" | pv -brt | nc -q0 $host 23000
ncrecv
#!/bin/sh netcat -l -p 23000 | pv -brt | tar xv
Note: piping to pv is optional
Edit: fixed a word splitting bug and specified a default port
Linkbacks
Valium withdrawal. Valium blue 10mg. Lorazepam to valium conversion. Valium. Online valium. Valium liquid form.
Pharmacy online carisoprodol description price. Carisoprodol pharmacy. Medlineplus drug information carisoprodol. Carisoprodol. Buy carisoprodol.
Fioricet 120.
Wellbutrin and weight loss. Wellbutrin sr.
Xanax withdrawal. Buy xanax online. Xanax prescription. Xanax.
Lethal dose of valium for dogs. Valium no prescription. Vicoden valium. Valium dosage. Valium.
Payday loans. Payday loans in illinois. No fax payday loans.
Amoxicillin price.
Cialis uk suppliers. Generic cialis. Cialis best price buy online. Cialis.
Tramadol online at lowest price on the web. Buy tramadol online cod. Tramadol online. Tramadol hci online buy cheap tramadol hci online. Buy online cheap and fast tramadol. Online tramadol. Buy cheap tramadol at online drug store. Cheapest tramadol available online.
Tramadol online. Tramadol.
Ephedra liquid gel products.
Ephedra.
blog/2008/03/netcat.txt · Last modified: 2008/12/06 17:40 by demod






Discussion
Paranoia against using scp? What's wrong with scp?
What I meant was that a lot of people don't want to enter their ssh passwords on a machine not their own; even when there is absolutely no reason to believe that there is a keylogger running.