[cut]
I just edited, will post more details later. sorry!
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Posted 12 November 2008 - 04:26 AM
Posted 12 November 2008 - 08:15 AM
<?php
function strsplt($thetext,$num)
{
if (!$num)
{
$num=1;
}
$i=$j=0;
$arr=array();
$x=floor(strlen($thetext)/$num);
while ($i<=$x)
{
$y=substr($thetext,$j,$num);
if ($y)
{
array_push($arr,$y);
}
$i++;
$j=$j+$num;
}
return $arr;
}
$myFile = "File.exe";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$str = bin2hex($theData);
$arr1 = strsplt($str,2);
$A=chr(0x41).chr(0x41).chr(0x41).chr(0x41).chr(0x41);
$total=count($arr1);
$arr2=$arr1;
####for ($i=1;$i<$total;$i++)
for ($i=0;$i<5;$i++) //change this to the bytes you want
{
$arr1[$i]=$A;
print hexdec(implode($arr1));
$myFile = "File".$i.".exe";
$fh = fopen($myFile,'wb');
fwrite($fh, $newstr);
fclose($fh);
$arr1=$arr2;
}
?>
Posted 12 November 2008 - 10:09 AM
<?php
$myFile = "test.exe";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$A=chr(0x41);
$str_hex = bin2hex($theData);
$len = count($str_hex);
for ($i=0;$i<12;$i++)
{
$str_hex[$i] = $A;
$str_bin = pack('H*', $str_hex);
}
$myFile = "File.exe";
$fh = fopen($myFile,'w');
fwrite($fh, $str_bin);
fclose($fh);
?>
Posted 18 April 2009 - 05:08 AM
Posted 18 April 2009 - 01:22 PM
Posted 21 April 2009 - 09:34 AM
0 members, 0 guests, 0 anonymous users