Skip to content

Instantly share code, notes, and snippets.

View Fonger's full-sized avatar

Fonger Fonger

  • Taipei, Taiwan
  • 01:41 (UTC +08:00)
View GitHub Profile
var defaultEncoding = 1; // 1: Tranditional Chinese, 2: Simplified Chinese
var translateDelay = 0;
var cookieDomain = "http://your-site";
var msgToTraditionalChinese = "繁體";
var msgToSimplifiedChinese = "简体";
var translateButtonId = "translateLink";
var currentEncoding = defaultEncoding;
var targetEncodingCookie = "targetEncoding" + cookieDomain.replace(/\./g,"");
var targetEncoding = ( getCookie(targetEncodingCookie) == null ? defaultEncoding : getCookie(targetEncodingCookie) );
@Fonger
Fonger / gist:affa6e8d896382f39f6a
Created April 4, 2015 22:54
NimoMSHSCRC.cpp v1.1 HackShield CRC Bypass
// =========================================================
// Name: NimoMSHSCRC v1.1 Bypass AhnLab HackShield 5.3.5.1024
// Date: April, 14, 2010
// Author: nimo1993, thanks to the founder of MS CRC address.
// =========================================================
#include "stdafx.h"
//#include "conio.h"
DWORD MSCRCStart = 0x00401000, MSCRCEnd = 0x00BFE000;
@Fonger
Fonger / gist:d2e7f8d67292c2d9585e
Created April 4, 2015 07:38
NimoHS.cpp (Deprecated HackShield CRCBypass DLL)
// =========================================================
// Name: NimoHS v1.0 Bypass AhnLab HackShield 5.2.8.893
// Date: November 1, 2009
// Author: nimo1993
// =========================================================
#include "stdafx.h"
#include "conio.h"
@Fonger
Fonger / gist:ecc1f67062093fcacfa1
Last active October 5, 2019 13:15
CloudFlare JS Anti-DDoS Challenge
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Just a moment...</title>
<style type="text/css">
<?php
$browsers = array('firefox','chrome','safari','opera','msie');
$browser = new stdClass();
preg_match('#('.implode('|',$browsers).')(/| )([^ ]+)#i',$_SERVER['HTTP_USER_AGENT'],$match);
$browser->version = round((int)$match[3]);
$match = strtolower($match[1]);
foreach($browsers as $val)
{
Sub Main()
Dim i As Integer
Dim result As Integer
result = 1
For i = 1 To 5
result = result * i
Next