|
|||||||||||
|
Re: Generating Hex Numbers to brute force rs_iis.c
From: Maarten <secfocus(at)hartsuijker.com>
Date: Wed Apr 02 2003 - 11:06:00 EST Well, I suppose you are meaning something like:
#!/usr/bin/perl
You can run it with "brute.pl IP" You could run it with all possible 65536 possibilities, but that's probably overkill.
#!/usr/bin/perl
maarten
Hey guys, I know there's been a shell script (rs_brute.sh) released that already does this, but since I've been playing with PERL lately (and since this shell script did not exist when I began playing with the exploit), I thought I'd take a whack at producing the RET addresses (0x0000-0xffff) in a PERL script. I just wanted to get your input and see if there is and easier way to do this (using PERL, of course). Basically, the goal is as follows:
So far, I can generate the output and print it to stdout. Any tips on getting the script to run rs_iis once with each address produced by the script? Also, is there a way to produce this output without creating an array like this?
#!/usr/bin/perl -w
for ($i = 0; $i <= 255; $i += 1) {
printf("$HexD[int($i / 16)]$HexD[$i % 16]", $i);
printf("$HexD[int($i / 16)]$HexD[$i % 16]\n", $i);
}
Many thanks, -Jeremy Received on Thu Apr 3 12:49:01 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT |
||||||||||
|
|||||||||||