Comments (3)
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.
You are right about everything.
- you need to disable ASLR when using
--debug-shell
as you figured out we don't support resolvinglina
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 withnc 127.0.0.1 15002
If everything works for you, feel free to close the issue.
from asafw.
@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)
- something wrong when I enable gdb HOT 2
- lina : aaa_admin_authenticate HOT 2
- issue running unpack_repack_bin.sh HOT 4
- Could not find kernel command line. HOT 13
- How to repack file to bin
- How to unpack asa*.bin for using in GNS3? HOT 5
- Hardcoded Python location in bin.py and helper.py HOT 1
- Serial debugging failing to start HOT 4
- how to configure gdbserver port when enable gdb in GNS3 mode? HOT 3
- The repacked image cannot pass the checksum verification. HOT 3
- How to disable aslr for the newest images? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asafw.