Skip to content

Instantly share code, notes, and snippets.

View aa65535's full-sized avatar
💭
I may be slow to respond.

Jian Chang aa65535

💭
I may be slow to respond.
View GitHub Profile
@kuFEAR
kuFEAR / ImagePHash.java
Created September 2, 2015 18:07
Android image phash comparing
package com.example.app;
import android.graphics.*;
import android.util.Log;
/*
* pHash-like image hash.
* Author: Elliot Shepherd (elliot@jarofworms.com
* Based On: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html
*/
@mbijon
mbijon / xss_clean.php
Last active November 1, 2022 03:23
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources