Giter VIP home page Giter VIP logo

Comments (3)

cq674350529 avatar cq674350529 commented on May 31, 2024

I figured out the cause of device crash when enabling --debug-shell in my case. I looked the lina binary with shell injected, a hard-coded address (socks_proxy_server_start) was used. But I didn't add the --disable-aslr option when repacking the qcow2.
So when enabling debug-shell, one need to add both the --debug-shell and --disable-aslr option.

from asafw.

saidelike avatar saidelike commented on May 31, 2024

You are right about everything.

  • you need to disable ASLR when using --debug-shell as you figured out we don't support resolving lina adresses on the fly
  • for the serial shell, the option -serial telnet:127.0.0.1:15002 basically says to forward the serial port inside ASA (QEMU) to the outside world (the host machine) on TCP port 15002. So you can access it with nc 127.0.0.1 15002

If everything works for you, feel free to close the issue.

from asafw.

cq674350529 avatar cq674350529 commented on May 31, 2024

@saidelike Thanks.

Using nc 127.0.0.1 15002 works well for me.

As to enabling debugshell with --debug-shell option, I have made it work without needing to disable ASLR. That is, for some newer images such as asav9101.qcow2, which have trouble in disabling ASLR at the moment, the debugshell can work well.

I'll create a pull request later.

from asafw.

Related Issues (12)

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.