Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Machou Machou

🏠
Working from home
  • Arround The World !
Block or report user

Report or block Machou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Machou
Machou / unlockedJoke.sh
Last active Sep 27, 2019
A script to lock your session with a USB stick or other USB device
View unlockedJoke.sh
#!/bin/bash
#
# unlockedJoke
#
# Automatically locks your computer if someone moves the mouse and a device of your choice is not connected.
#
# (c) Dyrk.org 2019 - 2020
#
@Machou
Machou / video.php
Last active Sep 27, 2019
A PHP function that returns all video file extensions
View video.php
<?php
function ext_video()
{
$ext = [
'AVI'
=>
[
'avi',
'divx',
'amv'
@Machou
Machou / mails.sh
Created May 9, 2019
Extraire tous les courriels de tous les fichiers du répertoire
View mails.sh
cat * | grep -o "[-.a-zA-Z0-9_]\+@[-.a-zA-Z0-9_]\+\.[a-zA-Z]\{2,3\}" | sort | uniq > ~/Desktop/courriels.txt
@Machou
Machou / Waze.js
Last active Jul 30, 2019
Trouver les fraudeurs sur https://www.waze.com/livemap (copier ce script dans la console développeur (F12) de votre navigateur)
View Waze.js
virtualRadar = function(url) {
console.log("=====================================");
request = new XMLHttpRequest();
request.addEventListener('load', function(ret) {
JSON.parse(ret.target.response).users.map(e => {
check = new XMLHttpRequest();
check.open('GET', 'https://www.waze.com/row-WAS/app/getStreet?lat=' + e.location.y + '&lon=' + e.location.x + '&radius=0.0005');
check.addEventListener('load', (function(d, r) {
try {
var allowedSpeed = JSON.parse(r.target.response)[0].toFromMaxSpeed,
@Machou
Machou / amazon.js
Last active Jan 28, 2019
Afficher la somme dépensée sur Amazon.fr
View amazon.js
/*
Fonctionne sur cette page : https://www.amazon.fr/gp/css/order-history
*/
var season = "https://www.amazon.fr/gp/your-account/order-history?opt=ab&digitalOrders=1&unifiedOrders=1&returnTo=&__mk_fr_FR=ÅMÅŽÕÑ&orderFilter=",
datesSelect = document.getElementById('orderFilter').getElementsByTagName('option'),
dates = [],
sold = 0,
getItemSeason = function(url) {
var http = new XMLHttpRequest();
@Machou
Machou / aliexpress.js
Last active Jan 28, 2019
Afficher la somme dépensée sur AliExpress
View aliexpress.js
/*
Fonctionne sur cette page : https://trade.aliexpress.com/orderList.htm
*/
var t = 0,
loadPage = function(id) {
params = {
"_csrf_token": document.getElementsByName('_csrf_token')[0].value,
"_fm.o._0.s": "",
"action": "OrderListAction",
@Machou
Machou / spaces.php
Created Jan 23, 2019
Retirer les espaces d'une chaîne de caractères
View spaces.php
<?php
function remove_spaces($str)
{
return preg_replace("/\t|\r\n|\r|\n/", '', $str);
}
@Machou
Machou / liste-tailles-ecrans.md
Last active Jun 19, 2019
Liste des tailles des écrans de téléphones, tablettes, laptops et télévisions, concernant les Media Queries
@Machou
Machou / hosts
Last active Sep 27, 2019
How to make the internet not suck (as much)
View hosts
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#
# See below for acknowledgements.
# Please forward any additions, corrections or comments by email to
# hosts@someonewhocares.org
@Machou
Machou / libssh.py
Last active Nov 23, 2018
LibSSh , Script Python pour tester la vulnérabilité (libssh < 0.8.4, 0.7.6)
View libssh.py
#!/usr/bin/env python
# coding: utf-8
# about the vulnerabilty :
# https://github.com/ktwombley/CVE-2018-10933
# https://www.libssh.org/2018/10/16/libssh-0-8-4-and-0-7-6-security-and-bugfix-release/
# CVE-2018-10933
import paramiko
import socket
You can’t perform that action at this time.