Skip to content

Instantly share code, notes, and snippets.

View Mech0n's full-sized avatar
🏠
Working from home

Mech0n

🏠
Working from home
View GitHub Profile
@Mech0n
Mech0n / cmd.sh
Created November 24, 2023 07:59
find all crash case after fuzzing
python3 test_crashes.py <result> -- <bin_with_asan> <args contains args>

[toc]

AsyncTask

/* loaded from: classes.dex */
public class MainActivity extends Activity {
    @Override // android.app.Activity
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
@Mech0n
Mech0n / fdu_ics.py
Last active February 14, 2023 07:05
FDU 研究生课程表 生成 ics 导入到手机
from datetime import datetime, timedelta
from json import load
from icalendar import Calendar, Event,Alarm
from pytz import UTC # timezone
"""
- pip3 install pytz icalendar
- 更改start_day的日期为开课的第一周
- 首先从选课系统中打开已选课程
- F12开发者模式, 选择网络窗口
.mlb.com
.mlb.tv
.mlbstatic.com
.conviva.com
.edge.bamgrid.com
.mlbinfra.com
.mobile.mlbinfra.com
.krxd.net

Leaning Rust

Record sth I come up with while learning rust. Just like a blog.

[Upadate] 2022.1.31 12:30

How to ...

Take part in the national post-graduate entrance examination

Time: 2021.7.18 - 2021.12.27

Content

  • Math 2
  • English 2
  • politics
  • Computer Science 408
@Mech0n
Mech0n / TSG6-kernel.c
Last active May 21, 2021 02:39
seq_operations
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <poll.h>
@Mech0n
Mech0n / MAR-DASCTF-fruitpie.py
Created April 22, 2021 08:15
mmap and libc_base
#! /usr/bin/python
#-*- coding: utf-8 -*-
from pwn import *
context.terminal = ['tmux', 'splitw', '-h']
context(arch = 'amd64' , os = 'linux', log_level='debug')
p = process('./fruitpie')
# gdb.attach(p, 'b *$rebase(0xCC9)\n')
@Mech0n
Mech0n / Securinets-pwn1.py
Created March 25, 2021 12:41
setcontext + 53
#! /usr/bin/python
#-*- coding: utf-8 -*-
from pwn import *
context.terminal = ['tmux', 'splitw', '-h']
context(arch = 'amd64' , os = 'linux', log_level='debug')
p = process('./kill_shot')
# gdb.attach(p, 'b *$rebase(0x1098)\n')
@Mech0n
Mech0n / UnionCTF-nutty.c
Last active April 9, 2021 02:22
SIGSEGV && tty_struct
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <poll.h>