Skip to content

Instantly share code, notes, and snippets.

@cons0ul
cons0ul / browser.js
Created June 4, 2013 20:32
Browser detection and port defintion
var BROWSER={};
function get_browser()
{
if( /Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent) )
return "FF";
else if( /MSIE (\d+\.\d+);/.test(navigator.userAgent) )
return "IE";
else if( /Maxthon/.test(navigator.userAgent) )
return "MX";
else if( /Chrome/.test(navigator.userAgent) )
@cons0ul
cons0ul / wslog.js
Created November 21, 2012 09:39
client side websocket implemenenation
wsURL="ws://172.16.205.1"
var ws;
function _init_ws_log(startFunc,port)
{
wsURL = "ws://172.16.205.1"
wsURL = wsURL+":"+port+"/log";
@cons0ul
cons0ul / matrix.py
Created June 14, 2012 12:23
bruteforcing one byte at a time
#!/usr/bin/python
#################################################################################################
# Bruteforcing One byte at a time #
# #
# Usage: matrix.py SEEDFILE START_INDEX END_INDEX START_BYTE END_BYTE PATH_TO_SAVE FILE_FORMAT #
# Example: matrix.py foo.pdf 11 1111 7f ff test/fuzzzed-1- pdf #
# Tips: you can use stat --printf=%s in your shell script to get the size and then fuzz :)#
#################################################################################################
@cons0ul
cons0ul / tranformer.html
Created May 2, 2012 19:31
a fuzzer for testing css rules while moving :)
<!DOCTYPE HTML>
<html>
<head>
<style>
#field { height:500px; border:1px solid black; position:relative; }
#field > video, #field > audio { position:absolute; left:0; top:0; box-shadow:0 0 10px black; }
#field > audio { display:block; width:200px; height:40px; background:yellow; }
</style>
<script src=../lib/mersenne.js></script>
<script src=../lib/ajax_logger.js></script>
@cons0ul
cons0ul / evolution.User.js
Created April 28, 2012 21:00
Grease-monkey script to load html pages one by one
setTimeout( function () { try { i = GM_getValue("INDEX" , -11 );
if(i == -11){ GM_setValue("INDEX",1); }
else{
url="http://localhost/HTML/fuzzy-"+i.toFixed()+".html";
window.location.replace(url);
i+=1
GM_setValue("INDEX",i);
}
}catch(e){alert(e);}
},
@cons0ul
cons0ul / media_fuzz.html
Created April 11, 2012 08:05
media fuzzer
<!--
media_fuzz.htnl
Author : cons0ul aka Sachin Shinde (@cons0ul)
THE BEER-WARE LICENSE (Revision 42):
sachinshinde11-at-gmail.com wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return
----------------------------------------------------------------------------