Jump to content
irist

IrIsT SQLi 2 Hex

Recommended Posts

Posted
# ISlamic Republic Of Iran Security Team
#
# Www.IrIsT.Ir
#
# Converting a SQLi 2 Hex
#!/usr/bin/perl

if ($#ARGV0) {
print Enter string to encode ;
$str= STDIN; chomp $str;
} else {
$str = @ARGV[0];
}

$enc = encode($str); print Hex Encoded value 0x$encn;

sub encode { #Sub to encode
@subvar= @_;
my $sqlstr = $subvar[0];

@ASCII = unpack(C, $sqlstr);
foreach $line (@ASCII) {

$encoded = sprintf('%lx',$line);
$encoded_command .= $encoded;
}
return $encoded_command;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...