summaryrefslogtreecommitdiff
path: root/nocompile/bin/nc.pl
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-04-21 13:41:40 -0500
committerepochqwert <epoch@hacking.allowed.org>2015-04-21 13:41:40 -0500
commit318b3220d191011bb9132efd4dbd5e6fb467b4e7 (patch)
tree1b0e7a29d15f79743c8559652432658423046a38 /nocompile/bin/nc.pl
parent4bdfc44f4681ef322378e614a409d5acc4d6586c (diff)
downloadmisc-318b3220d191011bb9132efd4dbd5e6fb467b4e7.tar.gz
misc-318b3220d191011bb9132efd4dbd5e6fb467b4e7.zip
made dcchelper a script instead of a c program.
ipdist which gives shortest distance based on whob's output of lat and lon nc.* are minmal versions of a netcat like program written in Perl. rfc is a script for downloading and viewing RFCs tpb.sh is for pulling magnet links from tpb search results. cuturl got an upgrade to better handle scheme:?query_string type URLs. (URN? URI? fuck if I know.)
Diffstat (limited to 'nocompile/bin/nc.pl')
-rwxr-xr-xnocompile/bin/nc.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/nocompile/bin/nc.pl b/nocompile/bin/nc.pl
new file mode 100755
index 0000000..ff52ab7
--- /dev/null
+++ b/nocompile/bin/nc.pl
@@ -0,0 +1,3 @@
+#!/usr/pkg/bin/perl
+use IO::Socket;
+$s=IO::Socket::INET->new(PeerAddr=>"$ARGV[0]:$ARGV[1]",Proto=>"tcp",Timeout=>1);if(fork()){while($l=<stdin>){print $s $l;}}else{while($l=<$s>){print $l;}}