nc erro no -e

1. nc erro no -e

SHULANDER SIX SIX SIX
shulander

(usa CentOS)

Enviado em 09/12/2011 - 07:40h

[root@c279f4e8-fb7b-46a8-8c77-0d7bd21d4f7c bin]# nc -l -p 5000 -e /bin/bash
nc: invalid option -- e
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port[s]]
[root@c279f4e8-fb7b-46a8-8c77-0d7bd21d4f7c bin]#



alguem sabe me ajduar a corrigir o erro que deu ali?
vi num site ingres um cara falar isso abaixo, mas nao entendi... entendi o ingles, mas nao entendi como fzer aqui.........


________
Eri Ramos Bastos (bastos-eri) wrote on 2010-10-11: #4

I think you may be looking at the wrong version of Netcat:

$ which nc
/bin/nc
$ ls -ld /bin/nc
lrwxrwxrwx 1 root root 20 2010-05-17 21:34 /bin/nc -> /etc/alternatives/nc
$ ls -ld /etc/alternatives/nc
lrwxrwxrwx 1 root root 15 2010-05-17 21:34 /etc/alternatives/nc -> /bin/nc.openbsd

But you are actually looking for /bin/nc.traditional :

$ /bin/nc.openbsd -l -p 9999 -e /bin/bash
/bin/nc.openbsd: invalid option -- 'e'
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
[-x proxy_address[:port]] [hostname] [port[s]]
$ /bin/nc.traditional -l -p 9999 -e /bin/bash
^C
$

You can fix that by:

$ sudo rm /etc/alternatives/nc && sudo ln -s /bin/nc.traditional /etc/alternatives/nc


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts