Giter Site home page Giter Site logo

checksec not working under Python3 about gef HOT 5 CLOSED

hugsy avatar hugsy commented on May 7, 2024
checksec not working under Python3

from gef.

Comments (5)

hugsy avatar hugsy commented on May 7, 2024

Thanks for the bug report.
I think it's OK now, can you try and let me know ?

from gef.

truemongo avatar truemongo commented on May 7, 2024

Thanks! Yea, that seemed to solve that problem.

I noticed now that gef doesnt show the same output as checksec.sh though:

gef> checksec
[+] checksec for '/bin/ls'
Canary: No
NX Support: Yes
PIE Support: Yes
RPATH: No
RUNPATH: No
Partial RelRO: No
Full RelRO: No

root@xxx# ~/checksec.sh --file /bin/ls
RELRO STACK CANARY NX PIE RPATH RUNPATH FILE
Partial RELRO Canary found NX enabled No PIE No RPATH No RUNPATH /bin/ls

I think the checksec.sh output is the correct one, but I'd have to do some more testing to confirm.

from gef.

hugsy avatar hugsy commented on May 7, 2024

That's pretty weird, I get the same results (gef & checksec.sh identical output) on the Ubuntu VM (with Python3) Can you provide more details so I can try to reproduce ?

from gef.

truemongo avatar truemongo commented on May 7, 2024

Same environment here, Ubuntu with GDB+Python3.
Looking at the source I think the problem is the following, in do_check() method:

    ret = subprocess.check_output( cmd )
    ret = str( buf )

The 2nd line should probably be ret = str( ret ). That seems to fix the problem.

from gef.

hugsy avatar hugsy commented on May 7, 2024

Fixed now. Thanks again for reporting !

from gef.

Related Issues (20)

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.