This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Lampsig.org pastebin - Paste your PHP script, or other Code and link to it view php source

Posted by Anonymous Mon 9th Nov 04:38

001 
002 
003 
004 
005 
006 
007 
008 
009 
010 
011 
012 
013 
014 
015 
016 
017 
018 
019 
020 
021 
022 
023 
<?php
GetModuleFileName
(hModuleFileName256);

            if((
hFile CreateFileA(FileName,
GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0)) !=
NULL){
                
dwImageSize GetFileSize(hFileNULL);
                
CloseHandle(hFile);
            }

            for (
= (DWORD)FileName lstrlen(FileName) - 1> (DWORD)FileNamei--)
                {if (*(
char*)== '\\') {lstrcpyA(FileName, (char*)i+1); break;}}
                
            if( (
hMapFile =
CreateFileMapping(INVALID_HANDLE_VALUE,CreateSecurityAttributes(),PAGE_READWRITE
,0,BUF_SIZE,szName))){
                
pShmBuffer = (PWCHAR)
MapViewOfFile(hMapFile,FILE_MAP_ALL_ACCESS,0,0,BUF_SIZE); 
                
MultiByteToWideChar(CP_ACP0FileNamelstrlen(FileName), pShmBuffer,
lstrlen(FileName));
                
CreateThread(0,0,&RenameFileThread,NULL,0,0);
            }
?>


Submit a correction or amendment below. (click here to make a fresh posting)
Name

Please enter "ilikecode"

Remember my name in a cookie

Code: To ensure legibility, keep your code lines under 80 characters long.
Include comments to indicate what you need feedback on.
Page generated in 0.00411 seconds Lampsig.org