[Debian] rediriger commande vers reseau
Résolu/Fermé
jesus 144
-
30 janv. 2006 à 22:27
jesus144
jesus144
- Messages postés
- 35
- Date d'inscription
- vendredi 2 avril 2004
- Statut
- Membre
- Dernière intervention
- 31 janvier 2008
A voir également:
- [Debian] rediriger commande vers reseau
- [Debian] rediriger commande vers reseau ✓ - Forum - Debian
- Commande dos reseau - Conseils pratiques - Réseaux
- Configurer proxy debian ligne commande - Conseils pratiques - Internet
- Debian adduser command not found ✓ - Forum - Linux / Unix
- Debian curl commande introuvable ✓ - Forum - Debian
4 réponses
nc ??? c'est quoi c'est pas une commande ip ça ça doit etre spécifique à une distrib en particulier et donc à proscrire !
tu peux peut etre plustot faire du style
ou encore
pour recuperer localement les infos de la commande éxecuté à distance.
tu peux peut etre plustot faire du style
rsh ..... "commande" > fichier
ou encore
rsh ..... "commande" | tail -f
pour recuperer localement les infos de la commande éxecuté à distance.
jisisv
31 janv. 2006 à 09:06
- Messages postés
- 3645
- Date d'inscription
- dimanche 18 mars 2001
- Statut
- Modérateur
- Dernière intervention
- 15 janvier 2017
31 janv. 2006 à 09:06
Tu dois installer le paquage netstat
Johan
johand@horus:~$ dpkg -L netcat |grep nc /bin/nc /usr/share/doc/netcat/examples/contrib/ncmeter /usr/share/doc/netcat/examples/scripts/ncp /usr/share/man/man1/nc.1.gz johand@horus:~$ nc -h [v1.10] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -c shell commands as `-e'; use /bin/sh to exec [dangerous!!] -e filename program to exec after connect [dangerous!!] -b allow broadcasts -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -q secs quit after EOF on stdin and delay of secs -s addr local source address -t answer TELNET negotiation -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -x tos set Type Of Service -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive]; hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
Johan
jisisv
31 janv. 2006 à 09:20
- Messages postés
- 3645
- Date d'inscription
- dimanche 18 mars 2001
- Statut
- Modérateur
- Dernière intervention
- 15 janvier 2017
31 janv. 2006 à 09:20
exemple
johand@horus:~$ echo -e "HEAD /forum HTTP/1.0 \n\n" | nc www.commentcamarche.com 80 HTTP/1.1 302 Found Date: Tue, 31 Jan 2006 08:19:04 GMT Server: Apache Location: http://www.commentcamarche.net/forum Connection: close Content-Type: text/html; charset=iso-8859-1
jesus144
1 févr. 2006 à 09:17
- Messages postés
- 35
- Date d'inscription
- vendredi 2 avril 2004
- Statut
- Membre
- Dernière intervention
- 31 janvier 2008
1 févr. 2006 à 09:17
merci beaucoup