All Projects → phith0n → Python Xss Filter

phith0n / Python Xss Filter

Based on native Python module HTMLParser purifier of HTML, To Clear all javascript in html

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Python Xss Filter

Blackwidow
A Python based web application scanner to gather OSINT and fuzz for OWASP vulnerabilities on a target website.
Stars: ✭ 887 (+671.3%)
Mutual labels:  xss
Bugbounty Starter Notes
bug bounty hunters starter notes
Stars: ✭ 85 (-26.09%)
Mutual labels:  xss
Collection Document
Collection of quality safety articles. Awesome articles.
Stars: ✭ 1,387 (+1106.09%)
Mutual labels:  xss
Express Security
nodejs + express security and performance boilerplate.
Stars: ✭ 37 (-67.83%)
Mutual labels:  xss
Pythem
pentest framework
Stars: ✭ 1,060 (+821.74%)
Mutual labels:  xss
Xsstrike
Most advanced XSS scanner.
Stars: ✭ 9,822 (+8440.87%)
Mutual labels:  xss
V3n0m Scanner
Popular Pentesting scanner in Python3.6 for SQLi/XSS/LFI/RFI and other Vulns
Stars: ✭ 847 (+636.52%)
Mutual labels:  xss
Shuriken
Cross-Site Scripting (XSS) command line tool for testing lists of XSS payloads on web apps.
Stars: ✭ 114 (-0.87%)
Mutual labels:  xss
Sqlinator
Automatically forward HTTP GET & POST requests to SQLMap's API to test for SQLi and XSS
Stars: ✭ 70 (-39.13%)
Mutual labels:  xss
Hackvault
A container repository for my public web hacks!
Stars: ✭ 1,364 (+1086.09%)
Mutual labels:  xss
Reconftw
reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Stars: ✭ 974 (+746.96%)
Mutual labels:  xss
Xwaf
xWAF 3.0 - Free Web Application Firewall, Open-Source.
Stars: ✭ 48 (-58.26%)
Mutual labels:  xss
Cazador unr
Hacking tools
Stars: ✭ 95 (-17.39%)
Mutual labels:  xss
Tiny Xss Payloads
A collection of tiny XSS Payloads that can be used in different contexts. https://tinyxss.terjanq.me
Stars: ✭ 975 (+747.83%)
Mutual labels:  xss
Xsscope
XSScope is one of the most powerful and advanced GUI Framework for Modern Browser exploitation via XSS.
Stars: ✭ 103 (-10.43%)
Mutual labels:  xss
Filterbypass
Browser's XSS Filter Bypass Cheat Sheet
Stars: ✭ 884 (+668.7%)
Mutual labels:  xss
Sourcecodesniffer
The Source Code Sniffer is a poor man’s static code analysis tool (SCA) that leverages regular expressions. Designed to highlight high risk functions (Injection, LFI/RFI, file uploads etc) across multiple languages (ASP, Java, CSharp, PHP, Perl, Python, JavaScript, HTML etc) in a highly configurable manner.
Stars: ✭ 87 (-24.35%)
Mutual labels:  xss
Gxss
A tool to check a bunch of URLs that contain reflecting params.
Stars: ✭ 115 (+0%)
Mutual labels:  xss
Parsevip
解析VIP资源,解析出酷狗、QQ音乐、腾讯视频、人人视频的真实地址
Stars: ✭ 105 (-8.7%)
Mutual labels:  xss
Zebra form
A jQuery augmented PHP library for creating secure HTML forms, and validating them easily
Stars: ✭ 95 (-17.39%)
Mutual labels:  xss

python-xss-filter

Based on native Python module HTMLParser purifier of HTML, To Clear all javascript in html

Python 富文本XSS过滤类

@package python-xss-filter
@version 0.2.0
@link https://github.com/phith0n/python-xss-filter
@since 20150407
@copyright (c) Phithon All Rights Reserved

Based on native Python module HTMLParser purifier of HTML, To Clear all javascript in html
You can use it in all python web framework
Written by Phithon [email protected] in 2015 and placed in the public domain.
phithon [email protected] 编写于20150407
From: XDSEC <www.xdsec.org> & 离别歌 <www.leavesongs.com>
Demo: http://python-xss-filter.leavesongs.com
Usage:

import pxfilter
parser = pxfilter.XssHtml()
parser.feed('<html code>')
parser.close()
html = parser.getHtml()
print html

Requirements

Python 2.6+ or 3.2+
Cannot defense xss in browser which is belowed IE7
浏览器版本:IE7+ 或其他浏览器,无法防御IE6及以下版本浏览器中的XSS

BUGs

20150408 embed默认allowscriptaccess=never,改为强制allowscriptaccess=never
20150408 移除dict.has_key,兼容python3.4,embed增加一些常规属性
20150408 修改代码,减少代码耦合性,增加重用性。定义每个标签允许的属性更加简单,只需要增加、更改XssHtml.tags_own_attrs即可。
20150826 tab改4空格,所有双下划线方法改为单下划线,以便继承
20170201 将正则单独提取出来

Other

pxfilter.py 是过滤类所在的文件,其他文件是测试网站 http://python-xss-filter.leavesongs.com 的源代码。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].