Coder Social home page Coder Social logo

stack-overflow-demo's Introduction

Stack Overflow Demo

栈溢出漏洞的利用和缓解中所使用到的代码和exploit.

编译victim:

make

小tips:

通用

新建一个禁用ASLR的shell:

setarch `uname -m` -R /bin/bash

查看动态链接库准确的加载基址:

LD_TRACE_LOADED_OBJECTS=1 /bin/ls

查看ELF头:

readelf -h /bin/ls

查看符号:

readelf -s /lib/i386-linux-gnu/libc.so.6
rabin2 -s /lib/i386-linux-gnu/libc.so.6
nm -D /lib/i386-linux-gnu/libc.so.6

radare2

数学运算:

rax2 =16 0xf7752000+0x8888*2

字符串转十六进制:

rax2 -S helloworld

生成De Brujin序列:

ragg2 -P 40 -r

汇编:

rasm2 -a x86 -b 32 "jmp esp"

反汇编:

rasm2 -a x86 -b 32 -d "ffe4"

在二进制文件中查找字符串:

rafind2 -s "/bin/sh" /lib/i386-linux-gnu/libc.so.6

stack-overflow-demo's People

Contributors

evilpan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.