Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env python
# -*- coding: utf-8 -*-
__docformat__ = 'reStructuredText'
import sys
from bs4 import BeautifulSoup, NavigableString, Tag
from PyQt5.Qt import (
QApplication, QMainWindow, QMenuBar, QMenu, QTreeWidget, QTreeWidgetItem)
@Jeswang
Jeswang / gist:9733150
Last active August 29, 2015 13:57
[有偿] 有比较熟悉越狱开发的吗,帮我解答一个问题
0.问题来源:
想了解一下 iOS 的安全问题,后来走了样变成想调试他人的 iOS 程序。
在这个文章中,[iOS安全攻防(十一):Hack实战——探究支付宝app手势密码 - 念茜的博客 - 博客频道 - CSDN.NET](http://blog.csdn.net/yiyaaixuexi/article/details/18520053),博主用 GDB 调试了支付宝的二进制文件,可以在 GDB 中看到自己定义的类和成员函数的名字,自己实践却得不到。
昨天在 Stack Overflow 提了的问题,地址如下:
[ios - Can gdb use the Symbol information like IDA after dealed with Clutch? - Stack Overflow](http://stackoverflow.com/questions/22591710/can-gdb-use-the-symbol-information-like-ida-after-dealed-with-clutch)
1.过程描述
@Jeswang
Jeswang / B.py
Created August 19, 2014 12:09 — forked from robert-king/B.py
from gcj_context import in_out, test_in_out
def solve_test_case(data):
stuff = next(data)
return "my_answer_from_stuff"
def main():
#with test_in_out() as (in_file, out_file):
@Jeswang
Jeswang / B.py
Created August 19, 2014 12:09 — forked from robert-king/B.py
from gcj_context import in_out, test_in_out
def solve_test_case(data):
stuff = next(data)
return "my_answer_from_stuff"
def main():
#with test_in_out() as (in_file, out_file):
@Jeswang
Jeswang / generateSoftLinkForPath.py
Last active August 29, 2015 14:07
Fix soft links for the zip file downloaded from https://github.com/phracker/MacOSX-SDKs
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Jeswang<wangyi724@gmail.com>
# http://blog.jeswang.org
# Created on 2014-10-22 13:03:12
import os
def file_exists(filename):
try:
@Jeswang
Jeswang / halfPNG.sh
Last active August 29, 2015 14:11
Transform images
function halfPNGs(){
dir=$1
n=0
while read f
do
# Image name
i=$(basename "$f")
echo $i
if [[ $i == *\@2x\.png ]]; then
# Height of image
@Jeswang
Jeswang / same.cpp
Last active August 29, 2015 14:12
find same ints in two file
#include <iostream>
#include <fstream>
#include <bitset>
#include <queue>
#include <vector>
#include <functional>
using namespace std;
bitset<4294967296> bits;
priority_queue<int, vector<int>, greater<int> > res;
@Jeswang
Jeswang / typo.css
Created January 31, 2015 13:43
Refine sofish/typo.css for Marked.app
@charset "utf-8";
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */
html{
color:#333;
background:#fff;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%;
text-rendering:optimizelegibility;
-moz-osx-font-smoothing: grayscale;
@Jeswang
Jeswang / getMV.py
Created February 16, 2012 12:12
Download MV from 音悦台
# coding=utf-8
from BeautifulSoup import *
import sys, httplib
import re
import os
import urllib,urllib2
def getMVName(url):
c=urllib2.urlopen(url)