Jquery.each 相容IE,firefox

轉自:http://kaobian.iteye.com/blog/1156551jQuery的each 方法中的this指標指向問題jQuery.each  寫法: 1 : Java代碼  jQuery('input[type=checkbox]').each(function (){            alert(this.checked+this.treeId);//treeI的是自訂屬性  });  這樣的寫法在IE下會正常的輸出,但是在firefox,則不會識別,尤其是對於自訂屬性,

使用mina傳輸大位元組數組

使用mina傳輸超過2k以上的資料時(採用tcp方式,如果是UDP方式,好像一次傳輸的資料不能超過256位元組,如果超過mina不會分批次發送,而tcp方式會分批次發送),mina會自動將這些資料分成多次發送。由於是分批次發送資料,所有客服端在接受資料時,需要等所有的資料接受完之後才能解碼,否則無法解碼,或者只能讀取到部分檔案。以下是一個發送、接受大位元組數組的主要代碼服務端向客服端發送位元組數組public class ImageDataEncoder extends

檔案過濾器FileFilter

1、介面方法accept()中可以自行定義過濾規則2、此外,FilenameFilter和FileFilter類似,也提供檔案過濾功能下面是FileFilter的一個應用案例,列出包含指定關鍵詞的目錄和檔案import java.io.File;import java.io.FileFilter;public class KeywordFileFilter implements FileFilter {  private String keyword;  public KeywordFileFi

Apache suEXEC Privilege Elevation / Information Disclosure

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.

輕量級調試器神器 – mimikatz

 http://hi.baidu.com/hackercasper/blog/item/b080dbd05eb6a5cc562c8461.html 昨天有朋友發了個法國佬寫的神器叫 mimikatz 讓我們看下神器: http://blog.gentilkiwi.com/mimikatz還有一篇用這個神器直接從

Website Insecurity: This grinds my gears….

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

FTP 伺服器Serv-U:Permission denied解決

 下載了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

OpenSSH User Enumeration Time-Based Attack

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:

OWASP出品:Xenotix XSS漏洞測試架構

OWASP Xenotix XSS Exploit Framework是一個高效的跨站指令碼漏洞(XSS)檢測和攻擊測試架構。它通過特有的三大瀏覽器引擎(包括Trident, WebKit和Gecko)進行安全掃描檢測,並且其號稱擁有全世界第二大的XSS測試Payload,同時具有WAF繞過能力。掃描模組Manual Mode ScannerAuto Mode ScannerDOM ScannerMultiple Parameter ScannerPOST Request

Squid-3.3.5 DoS PoC

#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

CSRF with upload – XHR-L2, HTML5 and Cookie replay

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.

8086的儲存空間分段結構

8086的儲存空間分段結構  8086的地址線為20位,最大定址空間為220=1MB。8086內部的寄存器都是16位,對地址的運算也是16位,而16位的最大定址範圍為220=64KB。  為了能在1MB空間內進行全範圍定址,即可訪問到1MB儲存空間的任何一個儲存單元,把lMB儲存空間分成若干段(segment),每一段最大為64KB,2.3所示。在分段時,要求段的起始單元的物理地址是16的整數倍,寫成十六進位,最後一位應是0,即xxxXOH(x為任一個十六進位數位,H為十六進位尾碼)。  把段的

vsftpd cmds_allowed 許可權控制

vsftpd cmds_allowedcmds_allowed=ABOR,CWD,LIST,MDTM,MKD,NLST,PASS,PASV,PORT,PWD,QUIT,RETR,RMD,RNFR,RNTO,SITE,SIZE,STOR,TYPE,USER,ACCT,APPE,CDUP,HELP,MODE,NOOP,REIN,STAT,STOU,STRU,SYST注意:一定不能使用換行和空格,不然就沒效果..# ABOR - abort a file transfer# CWD - change

SSH蜜罐工具 – HonSSH

HonSSH是一個高互動蜜罐解決方案,在攻擊者與蜜罐之間,可以建立兩個獨立的SSH連結,它的特點如下:1、捕獲所有連結嘗試,並記錄到文字檔中2、當攻擊者發起密碼嘗試的時候,HonSSH可以自動更換他們的密碼(spoof_login),讓他們以為自己猜測到正確的密碼。3、所有互動都會記錄到,可以使用Kippo playlog重放4、攻擊者的會話都捕獲在一個文字檔中5、可以使用telnet即時查看會話。安裝:CONF檔案配置如下:## ConSSH configuration file

關於Session Fixation

 前兩天我轉了篇文章到pst的郵件清單,是關於在struts 2架構下重建session的,引起了一些討論,我覺得有必要在這裡提醒下程式員們,可能他們早就遺忘了這種威脅了。JSESSIONID Regeneration in Struts 2實際上這就是一種針對Session Fixation 的防範。Session Fixation 翻譯過來就是 “Session 完成攻擊”,以前的老的應用裡可能比較常見這種問題,但是隨著現在web應用越來越複雜,這種問題已經很少了。先理解這個攻擊,打個比方:

亞馬遜不錯的書籍

1.http://www.amazon.com/Qualities-Highly-Secure-Software/dp/1439814465/ref=sr_1_111?s=books&ie=UTF8&qid=1330409500&sr=1-1112.http://www.amazon.com/Threats-Countermeasures-Advances-Information-Security/dp/1466609788/ref=sr_1_127?s=books&am

關於document.domain的一點tips

 首先,關於same origin policy,簡單描述如下:http://store.company.com/dir2/other.html => Success http://store.company.com/dir/inner/another.html =>Success https://store.company.com/secure.html =>Failure => Different protocolhttp://store.company.com:

P3P Header Tips

 關於P3P,還是有必要講一下。好像之前我和朋友討論網易那個跨域實現的時候忘記講清楚了,那個P3P頭是必須要的,後面的 set-cookie 才能成功。對於IE來說(預設安全層級下),iframe、img、link等標籤都是只發送session cookie(又叫 第一方cookie),攔截本地cookie發送(又叫第三方cookie)。當這些標籤跨域引用一個頁面,實際上是發起了一次GET請求。如果這個跨域的請求,HTTP返回頭中帶有Set-Cookie ,

使用安全json parser防止json注入

 今天在網上瞎逛又看到了一個不錯的東西。有些程式員如果沒有很好的在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

amxx安裝教程,及如何安裝第三方外掛程式

1.下載metamod.dll最新版。裝到\cstrike\addons\metamod\dlls裡面。(有也得下個新的)2.下載amxmodx最新版。裝到\cstrike\addons裡面。(大家應該知道\cstrike前面是啥)3.一記事本格式開啟liblist.gam,把裡面的gamedll "dlls\mp.dll"改成:gamedll

總頁數: 61357 1 .... 20806 20807 20808 20809 20810 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.