Last active
July 25, 2022 09:17
-
-
Save gaeljw/ba226aa237529fcbb4c8853215611eb8 to your computer and use it in GitHub Desktop.
Commandes Linux diverses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pour binder un port sur un autre et tracer les requetes | |
socat | |
# Pour MAJ l'heure : | |
ntpdate 0.rhel.pool.ntp.org 1.rhel.pool.ntp.org | |
# Analyse réseau | |
# Requêtes en sortie vers le port 80 | |
tcpdump -nnvvlXSs 4096 dst port 80 | |
# Capture sur la carthe lo et écriture dans un fichier | |
tcpdump -nnvvlXSs 65535 -i lo -w soa.dump | |
# Capture ce qui sort vers tel host | |
tcpdump -w /tmp/capture.pcap -s 0 host 10.76.100.xx or host 10.76.100.yy | |
# Capture ce qui rentre de type HTTP GET | |
tcpdump -i eth0 -s 0 -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' | |
# Tunnel SSH | |
ssh -L port-local:HOSTNAME:port-distant nomutilisateur@nomhôte |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment