tdxev
unread,Jun 24, 2011, 7:03:11 AM6/24/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 );
}