SkyMinds ~ by Matt | Page 94 | Développeur WordPress et WooCommerce

Shell : créer une liste de mot de passe facilement photo

Shell : créer une liste de mots de passe facilement

Créer une liste de mots de passe simples

Voici un moyen très simple de créer une liste de mots de passe en utilisant le terminal sous Linux ou MacOS par exemple :

for i in `seq 1 8`; do mktemp -u XXXXXXXXXXXXXXXXXXXXXXXX; doneCode language: JavaScript (javascript)

Explications sur le fonctionnement de la commande:

  • seq 1 8 va nous créer 8 mots de passe différents,
  • mktemp -u XXXXXXXXXXXXXXXXXXXXXXXX va nous créer des mots de passe alphanumériques dont le nombre de caractères dépend du nombre de X. Ici, j’ai mis 24 X donc les mots de passe feront 24 caractères.

Créer une liste de mots de passe sécurisés

La méthode précédente n’est pas vraiment sécurisée car le degré d’entropie est trop faible. Pour augmenter le niveau de sécurité, j’utilise cette commande:

for i in $(seq 1 8); do LC_CTYPE=C tr -dc '[:graph:]' < /dev/urandom | tr -d "'" | tr -d '"' | head -c 64 && echo; doneCode language: JavaScript (javascript)

Voici une explication de la commande :

  • for i in $(seq 1 8); do : Cela commence une boucle for qui se répète 8 fois (de 1 à 8).
  • LC_CTYPE=C : Cela définit la variable d’environnement LC_CTYPE à la valeur C, ce qui assure que le générateur de mots de passe utilise le jeu de caractères ASCII.
  • tr -dc '[:graph:]' < /dev/urandom : Cela utilise la commande tr pour supprimer les caractères non imprimables et générer des caractères graphiques aléatoires à partir de /dev/urandom, qui est une source d’entropie aléatoire sur les systèmes Unix.
  • tr -d "'" | tr -d '"' : Cela utilise deux commandes tr supplémentaires pour supprimer les caractères de guillemets simples (') et les guillemets doubles (") des mots de passe générés. Cela garantit que les guillemets simples et doubles sont supprimés des mots de passe générés.
  • head -c 32 : Cela utilise la commande head pour limiter la longueur des mots de passe générés à 32 caractères.
  • && echo; done : Cela termine la boucle for et ajoute un retour à la ligne (echo) pour afficher chaque mot de passe généré sur une ligne séparée.

Simple et efficace, j’utilise souvent cette commande lors de la création ou l’import d’utilisateurs en masse, lors de la création d’un fichier CSV par exemple.

Cela permet d’avoir des mots de passe un minimum sécurisés dès le départ de la création des comptes utilisateurs.

Lord Huron - Frozen Pines photo

Lord Huron – Frozen Pines

Lord Huron est un groupe d’indie folk américain, originaire de Los Angeles, en Californie.

Le nom du groupe vient du Lac Huron, un lac que le fondateur du groupe Ben Schneider a visité durant sa jeunesse, et où il aurait passé ses soirées à jouer de la musique autour du feu.

Voici Frozen Pines :

Deep into the night
With the moonlight as my guide
I will wander through the pines and make my way to nature’s shrines

And I look up to the sky
And I know you’re still alive
But I wonder where you are, I call your name into the dark

I wake up in the morning, oh, and I don’t know where I’ve been
All alone on a mountainside and huddled in the wind

And it feels like I’ve been away for an era, but nothing has changed at all
And it feels like I’ve been with you but, oh, what did you you do and where have you gone?
On the night you disappeared

Oh, if I had seen you clear
But the strange light in the sky was shining right into my eyes
There was no one else in sight

Just the endless frozen pines
But I wonder how they know, cause they don’t die if they don’t grow

I am ready to follow you even though I don’t know where
I’ve been waiting the night until you decide to take me there

Cause I know I don’t wanna stay here forever it’s gotta be moving on
Oh, I don’t wanna be the only one living if all of my friends are gone

I will be waiting for you on the other side of the frozen pines
I’m gonna find a way through, there’s another light beyond the lie
I will be waiting for you on the other side of the frozen pines
I’m gonna find a way through, there’s another life beyond the lie

Song: Frozen Pines
Artist: Lord Huron
Album: Strange Trails
Track: 10

Cider with Rosie by Laurie Lee : chapter analysis photo

Cider with Rosie by Laurie Lee : chapter analysis

  1. Cider with Rosie by Laurie Lee : chapter analysis
  2. Relatives in “Cider With Rosie” by Laurie Lee

Here is an analysis of each chapter in Cider with Rosie by Laurie Lee.

A general summary

In Cider with Rosie, Laurie Lee recalls his childhood and adolescence. He was one of seven children in a close family headed by his mother: he grew up in England, in a Cotswold village governed by tradition.

The book is organised in accord with his early exploration of his widening world. He examines his infant sensations, his cottage, his yard, his village and Cotswold Valley, then local superstitions, village education, his neighbours, public tragedies, private life stories, his childhood games, village celebrations, sexual initiations, and the eventual changes as his childhood, his close family life, and the traditional village life pass away forever.

Chapter 1: First Light

In this chapter, Lee gives a three-year-old’s perceptions and misconceptions: small about objects around him, Laurie crawls among “forests” of household objects and he believes autumn is a season and the war’s end means the end of the world. Lee uses metaphors and similes (often of water) to communicate the child’s sense of adventure.

This chapter introduces most of the themes that will be developed in the story throughout the different episodes of Laurie’s childhood: the importance of family ties, the constant presence and role of the women in his own development and the absence of a father, the magic in the world surrounding him causing numerous fears, the importance of the seasons and the overwhelming presence of nature and death.

Chapter 2: First Names

The second chapter is divided into three sections. It begins in a dark winter with peace and the men returning from war and it ends in the “long hot summer of 1921”. It roughly has to do with night-time feelings: dreams, terrors and superstitions.

The village legends: ignorance and superstition were common features shared by all the people of the village, and they led them to fear a world which seemed unpredictable and was governed by magic laws. Some animals or natural phenomena were given a particular meaning and there were ill omens that brought bad luck to those who crossed their path.

The village freaks: the freaks such as Cabbage Stump Charlie, Albert the Devil, Percy from Painswick… were all more or less physically or mentally peculiar. The reader might be surprised at the number of handicapped people who populate the area.

This phenomenon could be explained by the fact that there was so great mixing of the population, which led to the problem of consanguinity. Besides, diseases and malnutrition must have led to further handicaps. These freaks with their “cartoon” nicknames were probably the most striking and frightening people whom the little boy had heard of or seen in his narrow world.

The flood: the chapter ends then with another apocalyptic scene: the flood following a particularly dry summer. This part enables the narrator to emphasize the role religion played for the villagers at that time.

In their eyes, the world was driven by magic forces that could be influenced, either by appeals to god, the Christian God or if this did not work, by resorting to other methods: “As the drought continued, prayer was abandoned and more devilish steps adopted”.

Lire la suite