Basique Linux

AWK

awk '{print $1}' users.txt
awk -F: '{ print $1 }' user.txt   

Curl

curl -X POST -d 'username=admin&password=admin' http://<SERVER_IP>:<PORT>/ -i
curl -X POST -d 'username=admin&password=admin' http://<SERVER_IP>:<PORT>/
curl -H 'Cookie: PHPSESSID=c1nsa6op7vtk7kdis7bcnbadf1' http://<SERVER_IP>:<PORT>/
curl -X POST -d '{"search":"london"}' -b 'PHPSESSID=c1nsa6op7vtk7kdis7bcnbadf1' -H 'Content-Type: application/json' http://<SERVER_IP>:<PORT>/search.php
["London (UK)"]

CeWL

cewl -w list.txt -d 5 -m 5 http://test.com
Arguments
Signification

-d

Niveau de profondeur du crawling

-m

Nombre de caractères

Cut

Arguments
Signification

-f

Champ à extraire

-c

Caractère à extraire

-b

Octet à extraire

-d

Délimiteur

Exemples :

Echo

  • Echapper guillemet : "

  • Ajouter en fin de fichier : >> texte.txt

  • Ajouter en début de fichier : sed -i '1iLigne1' test.txt

Find

Grep

SED

TR (supprimer \n)

Vim

WC

Arguments
Signification

-c

Byte

-m

Character

-l

Lines

-w

Words

SORT

Trie les lignes d'un fichier

Tuer un processus qui utilise un port

LXC

Télécharger une image dans un répertoire

CeWL

Arguments
Signification

-d

Niveau de profondeur du crawling

-m

Nombre de caractères

Cut

Arguments
Signification

-f

Champ à extraire

-c

Caractère à extraire

-b

Octet à extraire

-d

Délimiteur

Exemples :

Echo

  • Echapper guillemet : "

  • Ajouter en fin de fichier : >> texte.txt

  • Ajouter en début de fichier : sed -i '1iLigne1' test.txt

Find

Grep

SED

TR (supprimer \n)

Vim

WC

Arguments
Signification

-c

Byte

-m

Character

-l

Lines

-w

Words

SORT

Trie les lignes d'un fichier

Tuer un processus qui utilise un port

LXC

Télécharger une image dans un répertoire

Mis à jour