Search
Recent Post
- How To Exploit A Format String Vulnerability
- Playing With Dns And Domain Names
- How To Get A Person Ip Via Msn Or Yahoo Ect.
- CR-LF injection(carriage return- line feed injection)
- [PAPER] Self spreading Malware for Soho Routers
- Assault On Oracle Pl/sql - Injection
- PHP modify PE header
- Safe Mode Bypass PHP 5.2.5 & 5.2.6
- Local File Inclusion Mysql Get Password
- [Video] Acquire root using c99 shell
Recent Comments
- admin:Sure :)
- Reader:Good work! Thank you very much
- Mr WordPress:Hi, this is a comment.To
Popular
- Hack MegaShares (01-22-2009)
- Removing Windows Messenger (01-22-2009)
- Playing With Dns And Domain Names (02-01-2009)
- Modify Your CD-ROM to Watch DVD Movies (01-22-2009)
- How To Get A Person Ip Via Msn Or Yahoo Ect. (02-01-2009)
- Run Program From Memory And Not File (01-22-2009)
- Hello world! (01-22-2009)
- What is port scanning? (01-22-2009)
- Newest method of spamming that cannot be stopped:ASCII Spam (01-22-2009)
- 200 Best Hacking Tutorials (01-22-2009)
PHP modify PE header
February 1st, 2009 by admin<?php
$myFile = “test.exe”;
$fh = fopen($myFile, ‘r’);
$theData = fread($fh, filesize($myFile));
fclose($fh);$A=chr(0×41);
$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);?>
Leave a Reply