Skip to content

Instantly share code, notes, and snippets.


Sen Yang syang-ng

View GitHub Profile
View SimpleBootstrap.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Chapter 5</title>
<link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
syang-ng /
Created July 16, 2018 05:40
A solve python file of pycalx, MeePwn CTF
import requests
import string
def judge(s,j):
t = s + j
# url = ''
url = ''
syang-ng /
Created September 30, 2018 13:59
Dragon CTF 3NTERPRISE s0lution
import functools
import flask
import backend
import flask_session
import model
from waitress import serve
sql_session = backend.sql_session
syang-ng / test.js
Created October 17, 2018 09:13
A test script of chrome profiler
View test.js
const fs = require('fs');
const util = require('util');
const program = require('commander');
const launcher = require('chrome-launcher');
const CDP = require('chrome-remote-interface');
// replace the Promise for high performance
global.Promise = require("bluebird");
const DB = require('./db');
syang-ng /
Created November 3, 2018 08:59
blind inject
import string
import requests
s = requests.Session()
def judge(text):
return True
def get(url):
return s.get(url)
syang-ng /
Created November 29, 2018 07:27
money of contract
import requests
from bs4 import BeautifulSoup
import os
import sys
def formatAddress(address):
if len(address) == 42:
from flask import Flask, render_template, render_template_string, request, redirect, abort, Blueprint
import urllib2
import time
import hashlib
from os import path
from urlparse import urlparse
front = Blueprint("renderer", __name__)
View erc20.sol
contract ERC20 {
function name() constant public returns (string name);
function symbol() public constant returns (string symbol);
//3.代币的最小分割量 token使用的小数点后几位。比如如果设置为3,就是支持0.001表示
function decimals() public constant returns (uint8 decimals);
function totalSupply() public constant returns (uint totalSupply);
syang-ng / QWB-EasyFake.sol
Created August 24, 2020 05:46
View QWB-EasyFake.sol
contract Contract {
function main() {
memory[0x40:0x60] = 0x80;
if ( < 0x04) { stop(); }
var var0 =[0x00:0x20] / 0x0100000000000000000000000000000000000000000000000000000000 & 0xffffffff;
if (var0 == 0x19ff1d21) {
// Dispatch table entry for hello()
syang-ng /
Created January 25, 2021 08:31
repair dex by fart
import base64
import os
import re
import sys
def parse_ins_bin(ins_path):
with open(ins_path, 'r') as f:
content =
ins_array=re.findall(r"{name:(.*?),method_idx:(.*?),offset:(.*?),code_item_len:(.*?),ins:(.*?)}", content) #(.*?)最短匹配
code_items = []