Skip to content

Instantly share code, notes, and snippets.

View dbwodlf3's full-sized avatar
🐒
I may be slow to respond.

Cogi dbwodlf3

🐒
I may be slow to respond.
  • SWLAB
  • Republic of Korea
View GitHub Profile
@dbwodlf3
dbwodlf3 / CMakeLists.txt
Last active March 11, 2020 08:20
llvm_cookbook_ch2
cmake_minimum_required(VERSION 3.4.3)
project(toy)
SET(LLVM_DIR /llvm/lib/cmake/llvm)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
include_directories(${LLVM_INCLUDE_DIRS})
@dbwodlf3
dbwodlf3 / 0_Error message.txt
Last active March 27, 2020 05:49
mcsema-dyninst-disass
$ mcsema-lift-4.0 --os linux --arch amd64 --cfg hello.cfg --output hello.bc
E0326 11:21:38.169576 45 Function.cpp:921] Function sub_4003d0_printf is empty!
E0326 11:21:38.174134 45 Function.cpp:353] Cannot find target of instruction at 400441; the static target 400443 is not associated with
a lifted subroutine, and it does not have a known call target.
E0326 11:21:38.174180 45 Function.cpp:376] Adding missing block 400443 in function sub_400420_deregister_tm_clones as a tail call to __
remill_error
E0326 11:21:38.176797 45 Function.cpp:353] Cannot find target of instruction at 400483; the static target 400485 is not associated with
a lifted subroutine, and it does not have a known call target.
E0326 11:21:38.176849 45 Function.cpp:376] Adding missing block 400485 in function sub_400450_register_tm_clones as a tail call to __re
@dbwodlf3
dbwodlf3 / 0.README.md
Last active April 10, 2020 04:34
DrRacket(Scheme, EOPL)

2020.04.10 μ΄ˆμ•ˆμž‘μ„±


EOPL 책을 ν•™μŠ΅ν•˜λ©΄μ„œ μ ‘ν•˜κ²Œ λ˜λŠ” Scheme 언어에 λŒ€ν•œ 기초적인 지식을 μ •λ¦¬ν•˜κ³ μž λ³Έ 글을 μ •λ¦¬ν•˜μ˜€μŠ΅λ‹ˆλ‹€. λ³Έ 글은 DrRacketκ³Ό EOPL을 κΈ°μ€€μœΌλ‘œ μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

@dbwodlf3
dbwodlf3 / con_start.sh
Created April 27, 2020 07:23
binary_analysis_default. init script
#!/bin/bash
#host OS μ—μ„œ Container μ‹€ν–‰ν•  λ•Œ.
@dbwodlf3
dbwodlf3 / CMakelists.txt
Last active May 7, 2020 06:13
double linked list
cmake_minimum_required(VERSION 3.1)
project(toy)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(toy
main.c
double.c
)
@dbwodlf3
dbwodlf3 / BrainF.md
Created May 11, 2020 05:45
BrainF.md

Overview

μ†ŒμŠ€μ½”λ“œμ— λŒ€ν•œ μžμ„Έν•œ λ‚΄μš©λ“€μ€ μ–΄λ–€ μ›Ήμ‚¬μ΄νŠΈμ— μž˜μ •λ¦¬λ˜μ–΄ 있기 λ³΄λ‹€λŠ”,

μ†ŒμŠ€μ½”λ“œ 내에 μ£Όμ„μœΌλ‘œ 잘 μ •λ¦¬λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

그리고 그런 주석듀을 λ°”νƒ•μœΌλ‘œ μ›Ήμ—μ„œ λ³Ό 수 μžˆλŠ” Doxygen 을 μ œκ³΅ν•©λ‹ˆλ‹€.

Doxygen μ‚¬μ΄νŠΈ

@dbwodlf3
dbwodlf3 / add-to-existing-namespaces.js
Created May 20, 2020 04:30 — forked from idettman/add-to-existing-namespaces.js
JavaScript: JSDoc Advanced Tips
/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/
Namespaces can still be documented when a more abstract mechanism is used. @lends allows members to be added to an existing namespace:
*/
/**
* Root namespace
* @namespace root
*/
$namespace('root', /** @lends root **/ {
/**
@dbwodlf3
dbwodlf3 / TODO.md
Last active June 27, 2020 23:37
todo list for smc analysis

Todo

LLVM

  • LLVM IR 문법 정리 λ³΄κ³ μ„œ μž‘μ„±ν•˜κΈ°
  • LLVM Tutorial μ €μž₯μ†Œμ˜ Example μ±„μš°κΈ°
  • Windows ν™˜κ²½μ—μ„œ μˆ˜ν–‰

Lifting

@dbwodlf3
dbwodlf3 / liftingErr1.md
Created June 11, 2020 04:56
Lifting Err

#step 1, c source file

//helloWorld.c
#include<stdio.h>

int main(){
	printf("Hello World!\n");
	return 0;
}

specification

  • arch
  • os
  • functions
    • name
    • address
    • parameters
    • return_address
  • return_values