Skip to content

Instantly share code, notes, and snippets.

View SakiiR's full-sized avatar
🎯
Focusing

SakiiR SakiiR

🎯
Focusing
View GitHub Profile
@SakiiR
SakiiR / pre-commit
Last active September 14, 2018 13:41
Pre Commit Git Hook - EsLint
#!/bin/bash
CURDIR=$(git rev-parse --show-toplevel)
ESLINT=$CURDIR/node_modules/.bin/eslint
ESLINTRC=$CURDIR/node_modules/eslint-config-airbnb/.eslintrc
STAGED_FILES=$(git diff --name-only | grep "\.js$")
if [[ $STAGED_FILES = "" ]]
then
echo "[PRE-HOOK] No files to lint:("
@SakiiR
SakiiR / firewall.sh
Last active September 28, 2018 10:01
Redirect all traffic from port to ip:port
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -t nat -F
iptables -t nat -X
iptables -X
for PORT in 80 22 8080 ; do
@SakiiR
SakiiR / gist:49bb86a4a0b3408d60c3136a19c81d60
Created October 7, 2018 16:37
ESLINT/Prettier vscode config
{
"vim.useSystemClipboard": true,
"window.zoomLevel": 1,
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "never",
"eslint.options": {
"configFile": ".eslintrc.js"
},
"editor.formatOnSave": true,
// Enable/disable default JavaScript formatter (For Prettier)
@SakiiR
SakiiR / crackme1.py
Last active November 1, 2018 18:59
Workshop Secu 3 - Crackme 2
#!/usr/bin/env python
# coding: utf-8
import sys
import hashlib
FLAG = [
"800618943025315f869e4e1f09471012",
"d20caec3b48a1eef164cb4ca81ba2587",
"7fc56270e7a70fa81a5935b72eacbe29",
@SakiiR
SakiiR / crackme2.md
Last active November 1, 2018 18:59
Workshop Secu 3 - Crackme 1

Crack hash

Retrouver la valeur qui se trouve derriere ce hash!

Il s'agit d'une string de 5 chars comprenant uniquement des chiffres.

c8ee0c6255707903688cf23566daba69

@SakiiR
SakiiR / crackme3.py
Last active November 1, 2018 18:29
Workshop Secu 3 - Crackme 3
#!/usr/bin/env python
import base64
import sys
# The real flag is beguinning with 'FLAG{'
FLAG = "DX8YDEgOJGQGElwMFH5tLwAGAmd4ahJ4H1Y1J2wcOUQ4BWwfKkAtFHU2GWwYFHE2Pl0tEk4="
KEY = "[REVOKED]" # You have to find the real one (I removed the real one)
@SakiiR
SakiiR / exploit.py
Created November 18, 2018 20:12
Real World Print MD Write Up Script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# SakiiR @ Hexpresso
# cc XeR & BitK
# Let's go now (:
#
# --+ Python 2 +--
import random
@SakiiR
SakiiR / exploit.py
Created April 15, 2019 19:19
HelpDeskZ <= v1.0.2 - Unauthenticated Shell Upload
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# HelpDeskZ <= v1.0.2 - Unauthenticated Shell Upload
# @SakiiR
import sys
import requests
import hashlib
from time import time
@SakiiR
SakiiR / keyboard
Created April 26, 2019 08:04
Debian Apple Keyboard Configuration (/etc/default/keyboard)
# Debian Apple Keyboard :)
XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="latin9"
XKBOPTIONS=""
BACKSPACE="guess"
# setxkbmap fr mac
@SakiiR
SakiiR / lean.plugin.zsh
Created June 18, 2019 08:56
Modified Lean ZSH Theme
# ~/.zim/modules/prompt/external-themes/lean/lean.plugin.zsh
# lean prompt theme
# by Miek Gieben: https://github.com/miekg/lean
#
# Based on Pure by Sindre Sorhus: https://github.com/sindresorhus/pure
# Colors used: (see Vim's iceberg theme)
# 242 is the gray that is used.
# 110 is the blue.
# 150 is the yellow.
#