Profiel van 鉴鉴赏空间Foto'sWeblogLijsten Extra Help

Weblog


    11 januari

    Win32 Functions (转载)

    Alphabetical Listing of Win32 Functions

    Win32::AbortSystemShutdown(MACHINE)
    [EXT] Aborts a system shutdown (started by the InitiateSystemShutdown function) on the specified MACHINE.

    Win32::BuildNumber()
    [CORE] Returns the ActivePerl build number. This function is only available in the ActivePerl binary distribution.

    Win32::CopyFile(FROM, TO, OVERWRITE)
    [CORE] The Win32::CopyFile() function copies an existing file to a new file. All file information like creation time and file attributes will be copied to the new file. However it will not copy the security information. If the destination file already exists it will only be overwritten when the OVERWRITE parameter is true. But even this will not overwrite a read-only file; you have to unlink() it first yourself.

    Win32::DomainName()
    [CORE] Returns the name of the Microsoft Network domain that the owner of the current perl process is logged into.

    Win32::ExpandEnvironmentStrings(STRING)
    [EXT] Takes STRING and replaces all referenced environment variable names with their defined values. References to environment variables take the form %VariableName%. Case is ignored when looking up the VariableName in the environment. If the variable is not found then the original %VariableName% text is retained. Has the same effect as the following:
            $string =~ s/%([^%]*)%/$ENV{$1} || "%$1%"/eg

    Win32::FormatMessage(ERRORCODE)
    [CORE] Converts the supplied Win32 error number (e.g. returned by Win32::GetLastError()) to a descriptive string. Analogous to the perror() standard-C library function. Note that $^E used in a string context has much the same effect.
            C:\> perl -e "$^E = 26; print $^E;"
            The specified disk or diskette cannot be accessed

    Win32::FsType()
    [CORE] Returns the name of the filesystem of the currently active drive (like 'FAT' or 'NTFS'). In list context it returns three values: (FSTYPE, FLAGS, MAXCOMPLEN). FSTYPE is the filesystem type as before. FLAGS is a combination of values of the following table:
            0x00000001  supports case-sensitive filenames
            0x00000002  preserves the case of filenames
            0x00000004  supports Unicode in filenames
            0x00000008  preserves and enforces ACLs
            0x00000010  supports file-based compression
            0x00000020  supports disk quotas
            0x00000040  supports sparse files
            0x00000080  supports reparse points
            0x00000100  supports remote storage
            0x00008000  is a compressed volume (e.g. DoubleSpace)
            0x00010000  supports object identifiers
            0x00020000  supports the Encrypted File System (EFS)

    MAXCOMPLEN is the maximum length of a filename component (the part between two backslashes) on this file system.

    Win32::FreeLibrary(HANDLE)
    [EXT] Unloads a previously loaded dynamic-link library. The HANDLE is no longer valid after this call. See LoadLibrary for information on dynamically loading a library.

    Win32::GetArchName()
    [EXT] Use of this function is deprecated. It is equivalent with $ENV{PROCESSOR_ARCHITECTURE}. This might not work on Win9X.

    Win32::GetChipName()
    [EXT] Returns the processor type: 386, 486 or 586 for Intel processors, 21064 for the Alpha chip.

    Win32::GetCwd()
    [CORE] Returns the current active drive and directory. This function does not return a UNC path, since the functionality required for such a feature is not available under Windows 95.

    Win32::GetFullPathName(FILENAME)
    [CORE] GetFullPathName combines the FILENAME with the current drive and directory name and returns a fully qualified (aka, absolute) path name. In list context it returns two elements: (PATH, FILE) where PATH is the complete pathname component (including trailing backslash) and FILE is just the filename part. Note that no attempt is made to convert 8.3 components in the supplied FILENAME to longnames or vice-versa. Compare with Win32::GetShortPathName and Win32::GetLongPathName.

    This function has been added for Perl 5.6.

    Win32::GetLastError()
    [CORE] Returns the last error value generated by a call to a Win32 API function. Note that $^E used in a numeric context amounts to the same value.

    Win32::GetLongPathName(PATHNAME)
    [CORE] Returns a representaion of PATHNAME composed of longname components (if any). The result may not necessarily be longer than PATHNAME. No attempt is made to convert PATHNAME to the absolute path. Compare with Win32::GetShortPathName and Win32::GetFullPathName.

    This function has been added for Perl 5.6.

    Win32::GetNextAvailDrive()
    [CORE] Returns a string in the form of ``<d>:'' where <d> is the first available drive letter.

    Win32::GetOSVersion()
    [CORE] Returns the array (STRING, MAJOR, MINOR, BUILD, ID), where the elements are, respectively: An arbitrary descriptive string, the major version number of the operating system, the minor version number, the build number, and a digit indicating the actual operating system. For ID, the values are 0 for Win32s, 1 for Windows 9X and 2 for Windows NT. In scalar context it returns just the ID.

    Win32::GetShortPathName(PATHNAME)
    [CORE] Returns a representation of PATHNAME composed only of short (8.3) path components. The result may not necessarily be shorter than PATHNAME. Compare with Win32::GetFullPathName and Win32::GetLongPathName.

    Win32::GetProcAddress(INSTANCE, PROCNAME)
    [EXT] Returns the address of a function inside a loaded library. The information about what you can do with this address has been lost in the mist of time. Use the Win32::API module instead of this deprecated function.

    Win32::GetTickCount()
    [CORE] Returns the number of milliseconds elapsed since the last system boot. Resolution is limited to system timer ticks (about 10ms on WinNT and 55ms on Win9X).

    Win32::InitiateSystemShutdown(MACHINE, MESSAGE, TIMEOUT, FORCECLOSE, REBOOT)
    [EXT] Shutsdown the specified MACHINE, notifying users with the supplied MESSAGE, within the specified TIMEOUT interval. Forces closing of all documents without prompting the user if FORCECLOSE is true, and reboots the machine if REBOOT is true. This function works only on WinNT.

    Win32::IsWinNT()
    [CORE] Returns non zero if the Win32 subsystem is Windows NT.

    Win32::IsWin95()
    [CORE] Returns non zero if the Win32 subsystem is Windows 95.

    Win32::LoadLibrary(LIBNAME)
    [EXT] Loads a dynamic link library into memory and returns its module handle. This handle can be used with Win32::GetProcAddress and Win32::FreeLibrary. This function is deprecated. Use the Win32::API module instead.

    Win32::LoginName()
    [CORE] Returns the username of the owner of the current perl process.

    Win32::LookupAccountName(SYSTEM, ACCOUNT, DOMAIN, SID, SIDTYPE)
    [EXT] Looks up ACCOUNT on SYSTEM and returns the domain name the SID and the SID type.

    Win32::LookupAccountSID(SYSTEM, SID, ACCOUNT, DOMAIN, SIDTYPE)
    [EXT] Looks up SID on SYSTEM and returns the account name, domain name, and the SID type.

    Win32::MsgBox(MESSAGE [, FLAGS [, TITLE]])
    [EXT] Create a dialogbox containing MESSAGE. FLAGS specifies the required icon and buttons according to the following table:
            0 = OK
            1 = OK and Cancel
            2 = Abort, Retry, and Ignore
            3 = Yes, No and Cancel
            4 = Yes and No
            5 = Retry and Cancel
            MB_ICONSTOP          "X" in a red circle
            MB_ICONQUESTION      question mark in a bubble
            MB_ICONEXCLAMATION   exclamation mark in a yellow triangle
            MB_ICONINFORMATION   "i" in a bubble

    TITLE specifies an optional window title. The default is ``Perl''.

    The function returns the menu id of the selected push button:

            0  Error
            1  OK
            2  Cancel
            3  Abort
            4  Retry
            5  Ignore
            6  Yes
            7  No

    Win32::NodeName()
    [CORE] Returns the Microsoft Network node-name of the current machine.

    Win32::RegisterServer(LIBRARYNAME)
    [EXT] Loads the DLL LIBRARYNAME and calls the function DllRegisterServer.

    Win32::SetCwd(NEWDIRECTORY)
    [CORE] Sets the current active drive and directory. This function does not work with UNC paths, since the functionality required to required for such a feature is not available under Windows 95.

    Win32::SetLastError(ERROR)
    [CORE] Sets the value of the last error encountered to ERROR. This is that value that will be returned by the Win32::GetLastError() function. This functions has been added for Perl 5.6.

    Win32::Sleep(TIME)
    [CORE] Pauses for TIME milliseconds. The timeslices are made available to other processes and threads.

    Win32::Spawn(COMMAND, ARGS, PID)
    [CORE] Spawns a new process using the supplied COMMAND, passing in arguments in the string ARGS. The pid of the new process is stored in PID. This function is deprecated. Please use the Win32::Process module instead.

    Win32::UnregisterServer(LIBRARYNAME)
    [EXT] Loads the DLL LIBRARYNAME and calls the function DllUnregisterServer.
    25 december

    winlogon.exe病毒的查杀方法(转载)

     
    这个进程是不是一个传奇世界程序的图标使用51破解版传家宝会生产一个WINLOGON.EXE进程
    正常的winlogon系统进程,其用户名为“SYSTEM” 程序名为小写winlogon.exe。
    而伪装成该进程的木马程序其用户名为当前系统用户名,且程序名为大写的WINLOGON.exe。
    进程查看方式 ctrl+alt+del 然后选择进程。正常情况下有且只有一个winlogon.exe进程,其用户名为“SYSTEM”。如果出现了两个winlogon.exe,且其中一个为大写,用户名为当前系统用户的话,表明可能存在木马。
        这个木马非常厉害,能破坏掉木马克星,使其不能正常运行。目前我使用其他杀毒软件未能查出。
    那个WINDOWS下的WINLOGON.EXE确实是病毒,但是,她不过是这个病毒中的小角色而已,大家打开D盘看看是否有一个pagefile的DOS指向文件和一个autorun.inf文件了,呵呵,当然都是隐藏的,删这几个没用的,因为她关联了很多东西,甚至在安全模式都难搞,只要运行任何程序,或者双击打开D盘,她就会重新被安装了,呵呵,这段时间很多人被盗就是因为这个破解的传家宝了,而且杀毒软件查不出来,有人叫这个病毒为 ”落雪“ 是专门盗传奇传奇世界的木马,至于会不会盗其他帐号如QQ,网银 就看她高兴了,呵呵,估计也都是一并录制。不怕毒和要减少损失的最好开启防火墙阻止除了自己信任的几个常用任务出门,其他的全部阻挡,当然大家最好尽快备份,然后关门杀毒
    包括方新等修改过的51pywg传家宝,和他们破解的其他一切外挂,这次嫌疑最大的是51PYWG,至于其他合作网站估计也逃不了关系,特别是方新网站,已经被证实过多次在网站放木马,虽然他解释是被黑了,但是不能排除其他可能,特别小心那些启动后连接网站的外挂,不排除启动器本身就有毒,反正一句话,这种启动就连接某网站的破解软件最容易放毒,至于什么时候放,怎么方,比如一天放几个小时,都要看他怎么爽,用也尽量用那种完全本地破解验证版的,虽然挂盟现在好像还没发现被放马或者自己放,但是千万小心,,最近传奇世界传奇N多人被盗号,目标直指这些网站,以下是最近特别毒的WINLOGON.EXE盗号病毒清除方法,注意这个假的WINLOGON.EXE是在WINDOWS下,进程里头表现为当前用户或ADMINISTRATOR.另外一个 SYSTEM的winlogon.exe是正常的,那个千万不要乱删,看清楚了,前面一个是大写,后面一个是小写,而且经部分网友证实,此文件连接目的地为河南。
    解决“落雪”病毒的方法
    症状:D盘双击打不开,里面有autorun.inf和pagefile.com文件
    做这个病毒的人也太强了,在安全模式用Administrator一样解决不了!经过一个下午的奋战才算勉强解决。 我没用什么查杀木马的软件,全是手动一个一个把它揪出来把他删掉的。它所关联的文件如下,绝大多数文件都是显示为系统文件和隐藏的。 所以要在文件夹选项里打开显示隐藏文件。
    D盘里就两个,搞得你无法双击打开D盘。C盘里盘里的就多了!
    D:\autorun.inf
    D:\pagefile.com
    C:\Program Files\Internet Explorer\iexplore.com
    C:\Program Files\Common Files\iexplore.com
    C:\WINDOWS\1.com
    C:\WINDOWS\iexplore.com
    C:\WINDOWS\finder.com
    C:\WINDOWS\Exeroud.exe(忘了是不是这个名字了,红色图标有传奇世界图标的)
    C:\WINDOWS\Debug\*** Programme.exe(也是上面那个图标,名字忘了-_- 好大好明显非隐藏的)
    C:\Windows\system32\command.com 这个不要轻易删,看看是不是和下面几个日期不一样而和其他文件日期一样,如果和其他文件大部分系统文件日期一样就不能删,当然系统文件肯定不是这段时间的。
    C:\Windows\system32\msconfig.com
    C:\Windows\system32\regedit.com
    C:\Windows\system32\dxdiag.com
    C:\Windows\system32\rundll32.com
    C:\Windows\system32\finder.com
    C:\Windows\system32\a.exe
    对了,看看这些文件的日期,看看其他地方还有没有相同时间的文件还是.COM结尾的可疑文件,小心不
     
    要运行任何程序,要不就又启动了,包括双击磁盘
    还有一个头号文件!WINLOGON.EXE!做了这么多工作目的就是要干掉她!!!
    C:\Windows\WINLOGON.EXE
    这个在进程里可以看得到,有两个,一个是真的,一个是假的。
    真的是小写winlogon.exe,(不知你们的是不是),用户名是SYSTEM,
    而假的是大写的WINLOGON.EXE,用户名是你自己的用户名。
    这个文件在进程里是中止不了的,说是关键进程无法中止,搞得跟真的一样!就连在安全模式下它都会
    呆在你的进程里! 我现在所知道的就这些,要是不放心,就最好看一下其中一个文件的修改日期,然后用“搜索”搜这天修改过的文件,相同时间的肯定会出来一大堆的, 连系统还原夹里都有!! 这些文件会自己关联的,要是你删了一部分,不小心运行了一个,或在开始-运行里运行msocnfig,command,regedit这些命令,所有的这些文件全会自己补充回来!
    知道了这些文件,首先关闭可以关闭的所有程序,打开程序附件里头的WINDOWS资源管理器,并在上面的工具里头的文件夹选项里头的查看里设置显示所有文件和文件假,取消隐藏受保护操作系统文件,然后打开开始菜单的运行,输入命令 regedit,进注册表,到
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    里面,有一个Torjan pragramme,这个明摆着“我是木马”,删!!
    然后注销! 重新进入系统后,打开“任务管理器”,看看有没rundll32,有的话先中止了,不知这个是真还是假,小心为好。 到D盘(注意不要双击进入!否则又会激活这个病毒)右键,选“打开”,把autorun.inf和pagefile.com删掉,
    然后再到C盘把上面所列出来的文件都删掉!中途注意不要双击到其中一个文件,否则所有步骤都要重新来过! 然后再注销。
    我在奋战过程中,把那些文件删掉后,所有的exe文件全都打不开了,运行cmd也不行。
    然后,到C:\Windows\system32 里,把cmd.exe文件复制出来,比如到桌面,改名成cmd.com 嘿嘿 我也会用com文件,然后双击这个COM文件
    然后行动可以进入到DOS下的命令提示符。
    再打入以下的命令:
    assoc .exe=exefile (assoc与.exe之间有空格)
    ftype exefile="%1" %*
    这样exe文件就可以运行了。 如果不会打命令,只要打开CMD.COM后复制上面的两行分两次粘贴上去执行就可以了。
    但我在弄完这些之后,在开机的进入用户时会有些慢,并会跳出一个警告框,说文件"1"找不到。(应该是Windows下的1.com文件。),最后用上网助手之类的软件全面修复IE设置
    最后说一下怎么解决开机跳出找不到文件“1.com”的方法:
    在运行程序中运行“regedit”,打开注册表,在[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]中
    把"Shell"="Explorer.exe 1"恢复为"Shell"="Explorer.exe"
    大功告成!大家分享一下吧
    21 december

    N91刷机教程(转载)

     

    朋友买了n91 但是时全英文系统,所以希望我帮忙把它刷成中文系统。 在网上查了好久,觉得以下的教程很详细。推荐给需要刷机的朋友。

     

    转载于:

    http://scotti-s-space.spaces.live.com/blog/cns!1F276638EA3476F3!915.entry

      

    提醒大家一下,刷机前一定要备份好自己的通讯录等信息,我就忘了备份,朋友的电话都丢了,哭死我了

     

    其实这个教程也适用于N70N80Nokia的机器,大家完全可以从此帖举一反三,不过前提是要找到适合你手机的Firmware 

     

    关于Nokia N91的版本(重要):目前N91硬件上分两个版本,N91-1N91-5(我的是N91-1,手机的包装盒上有写)。N91-1其实就是N91的原型,这批机器都是在已开通3G网络的国家销售的。后来为了适应某些未开通3G的国家,比如说中国,Nokia才推出了N91-5这款去掉了3GWI-FIN91精简版。(大家从国内买到的欧洲水货就是N91-1,而国内的N91行货就是N91-5)。硬件版本的不同也造成了软件版本的不一致,N91-1适用的软件版本是RM-43,而N91-5适用的软件版本是RM-158。这两种固件版本一定不要混刷,以免对机器造成硬件上的损坏。大家可以在手机上输入*#0000#这个代码来查看自己的机器是RM-43(N91-1)还是RM-158(N91-5)

     

    注意:在进行下面过程之前,要先删除Nokia的相关软件,如Nokia PC Suite, Nokia Connectivity Cable drivers, 和旧版本的 Phoenix and Diego,我是在一台干净的电脑操作的,大家一定要注意这点

     

    下载DiegoPhoenix 2004 CrackPhoenix 2006

    http://www.lsxl.cn/simple/index.php?t133088.html

     

    1。下载和安装Diego

         安装:打开下载好的文件,按屏幕提示安装即可。

     

    2。安装Phoenix 2004 Crack

         安装:

                 a. 打开Crack程序,先不要点击Install安装

                 b. 启动Phoenix 2004安装程序,按屏幕指示操作

                 c. 当提示要Nokia Dongle时,点击重试,然后快速点击Crack程序的Install,来覆盖Dll文件

                 d. 安装完毕后,按提示重启电脑

                 e. 不必理会重启后跳出的对话框,点击确定即可

     

    注意:进行到这里,网上有文章说要安装Nokia Connectivity Cable Driver,不过根据我的经验,并不需要进行这一步,因为接下来我们要安装的Phoenix 2006已包含此驱动。

     

    3 升级Phoenix 2004Phoenix 2006

          升级:

            a. 打开桌面的Phoenix图标

           b. 最小化Phoenix程序,记住要保持程序的运行,只是最小化即可

           c. 打开刚刚下载好的Phoenix 2006安装程序,按屏幕指示操作

           d. 安装完毕后,选择 "I will restart later." 

           e. 关闭刚才打开的Phoenix程序(一定要在最小化的状态关闭)

           f.  重新打开桌面的Phoenix图标

           g. 点击Help菜单项中的About,确认版本是否为2006

           h. C:\Program Files\Nokia\中的Phoenix文件夹复制出来(如拷贝到桌面先)

           i. 点击开始菜单中的运行,输入msconfig,打开系统配置实用程序,在启动里,取消“Nokia Instrument API Tray”的自动运行

           j. 重启电脑后,将C:\Program Files\Nokia\中的Phoenix文件夹删除,替换为重启前备份的文件夹

     

    4。刷新Nokia N91固件

       RM-43的最新固件下载:http://www.lsxl.cn/simple/index.php?t133088.html

    Nokia_firmware_RM-43_APAC_10.00.exe

                             Nokia_firmware_RM-43_APAC_10.03.exe

       a. 将上面下载好的固件程序安装好(按先后顺序)

       b. 将手机用USB线缆连接到电脑,N91连接到电脑时有三种模式:"Media player","PC suite""Mass storage",这里我选择的是"PC suite"模式,这时电脑会自动为手机安装驱动程序

       c. 等提示安装驱动的小图标消失后,打开Phoenix软件,选择File菜单中Manage Connections

       d. 选择USB,点击Next

        e. 电脑会自动搜索电脑上的USB接口,当找到手机时,点击Finish

        f. 完成扫描后,点击Apply,然后点击Close

        g. 接下来在File菜单中选择Scan Product

        h. 如果你以上操作都正确的话,会在程序底部看见手机的相关信息

        i. OK,如果没问题的话,我们继续,在Flashing菜单中,选择SW Update

        j. 等待Phoenix和手机交换信息,在SW Update窗口中你会看到一些滚动信息

        k. 这是Code中会列出适合你手机的Firmware,这里我选择的是HongKong(也就是香港)的版本(当然这里你也可以自己指定Image File.core)PPM File(.variant)

        l. 最后,点击Start就开始刷机了,感觉刷机很快,5分钟左右就能搞定

        m. 刷机完成后,手机会重新启动,自己设置一下手机时区跟时间

        n. 打开手机菜单-tools-settings-phone-general,看看手机的语言设置,是不是多出了简体中文和繁体中文