Wednesday, February 10, 2010

Shell Code Generator

Today I wanna write a little shell code generator useful for embedding and coding shellcodes. Of course you may find more interesting this one (well-known shellcode generator), the following generator written in perl, is a very basic idea of what a shellcode generator does. Feel free to keep and to modify it.


# shellcode generator

print "shellcode: ";


my $data = "$x1";


my @values = split(undef,$data);

foreach my $val (@values) {


print '\x';

print unpack(H8,"$val");


print "\n";

exit 0;

1 comment:

pharmacy said...

Excellent thanks a lot, I'm just getting into this world of programming I hope this will help me, thanks