UNION SELECT

110 views
Skip to first unread message

tdxev

unread,
Jun 24, 2011, 7:03:11 AM6/24/11
to HackBar
add for union select statement option to auto-complete with NULL
instead of 1,2,3,4

UNION SELECT 1,2,3,4
UNION SELECT NULL,NULL,NULL,NULL

Or extend more to this :

selectionToUnionSelect: function ( encoding )
{
var autoIncrTxt = "{auto_increment}";
var columns = prompt( "Amount of columns to use in the UNION SELECT
Statement", "10" );
var templateText = prompt( "Tamplete for each colum", "(" +
autoIncrTxt + ")");
columns = Math.min(1000, parseInt( columns ));
var colArray = new Array();
for ( var i = 0 ; i < columns ; i++ ) {
colArray.push( templateText.replace(autoIncrTxt, i+1 ) );
}
var txt = "UNION SELECT " + colArray.join( ',' );
hackBar.setSelectedText( txt );
}
Reply all
Reply to author
Forward
0 new messages