使用mina傳輸超過2k以上的資料時(採用tcp方式,如果是UDP方式,好像一次傳輸的資料不能超過256位元組,如果超過mina不會分批次發送,而tcp方式會分批次發送),mina會自動將這些資料分成多次發送。由於是分批次發送資料,所有客服端在接受資料時,需要等所有的資料接受完之後才能解碼,否則無法解碼,或者只能讀取到部分檔案。以下是一個發送、接受大位元組數組的主要代碼服務端向客服端發送位元組數組public class ImageDataEncoder extends
Apache suEXEC privilege elevation / information disclosure Discovered by Kingcope/Aug 2013 The suEXEC feature provides Apache users the ability to run CGI and SSI programsunder user IDs different from the user ID of the calling web server.
This document reflects my personal opinion on the state of application security. It calls out what I see are the weaknesses of our approach as a community to addressing the issue of web [in]security. Web [in]security is a healthy and growing
下載了Serv-U 進行簡單設定後想試試該軟體上傳和下載檔案的功能是否ok。 運行cmd後,輸入ftp 主機IP 會提示:Connected to 主機IP 220 Serv-u FTP Server v9.0 ready ... 然後會讓你輸入登陸FTP Server的使用者名稱,然後我輸入:tt 會提示:331 User name okey,need
Today, we will show a bug concerning OpenSSH. OpenSSH is the most used remote control software nowadays on *nix like operating systems. Legacy claims it replaced unencrypted daemons like rcp, rsh and telnet. Find a version at:
#Squid Crash PoC#Copyright (C) Kingcope 2013#tested against squid-3.3.5#this seems to be the patch for the vulnerability:#http://www.squid-cache.org/Versions/v3/3.3/squid-3.3.8.patch#The squid-cache service will respawn, looks like a kind of assert
XHR level 2 calls embedded in HTML5 browser can open a cross domain socket and deliver HTTP request. Cross Domain call needs to abide by CORS. Browser will generate preflight requests to check policy and based on that will allow cookie replay.
今天在網上瞎逛又看到了一個不錯的東西。有些程式員如果沒有很好的在javascript中解析json資料,往往會直接eval把json轉成js對象,這時候如果json的資料中包含了被注入的惡意資料,則可能導致代碼注入的問題。正確的做法是分割出json裡包含的特殊字元,然後再解析為對象http://json.org/json2.js 中是通過正則來完成的。// We split the second stage into 4 regexp operations in order to work