Skip to content

Instantly share code, notes, and snippets.

View Laurent-Andrieu's full-sized avatar
🧑‍💼
Repairing electronic

Laurent Laurent-Andrieu

🧑‍💼
Repairing electronic
  • Occitanie, France
View GitHub Profile
@Laurent-Andrieu
Laurent-Andrieu / Ping.py
Last active September 23, 2022 11:40
Ping avec affichage compteur dynamique
import datetime
import os, sys, socket, struct, select, time
default_timer = time.process_time
ICMP_ECHO_REQUEST = 8
total = 0
invalide = 0
valide = 0
erreur = 0
tps_max = 0
@Laurent-Andrieu
Laurent-Andrieu / scraper.py
Created February 28, 2021 15:46
Scrapper + E-Mail: article site converse
from bs4 import BeautifulSoup
import urllib.request
import urllib.error
import smtplib
WANTED_SIZE = [44.5, 45, 46.5]
URL = "https://www.converse.com/fr/regular/marble-chuck-70/167374C_120.html?lang=fr_FR&csid" \
"=PSH_PRF_CNV_WE_FR_FR_20191101_FPMX_GO-SH-FR-CSS-Sale&gclid=CjwKCAiAm" \
"-2BBhANEiwAe7eyFK2DhgMrYsEfsJibzwSpxrXTMRlSYlCi9FARKhLV9rtSfgKtQ8XY-xoCyAYQAvD_BwE&gclsrc=aw.ds" \
@Laurent-Andrieu
Laurent-Andrieu / Stegnographie.py
Created December 28, 2020 11:13
Script steganographie: données chiffrés, datés.
"""
Steganography in python 3.9
+ Variable Data length and image size
+ Red colour modification
+ AES 128 CBC encrytion
+ UTF-8 data encoding
+ SHA-256 Checksum
+ Generation date time
"""