照着鬼哥的教程来的,做了好久的Android逆向了,现在静态分析什么的都还算可以,就是动态分析这一块,各种问题,
试了7,8次jdb附加都是这个错误弄的我都快崩溃了,有做过的兄弟教一下我。
所使用的命令行
android_server
adb forward tcp:23946 tcp:23946
adb shell am start -D -n loading.androidmanual/loading.androidmanual.BeginningActivity
adb forward tcp:8899 jdwp:8700
jdb -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=8700
错误提示
[Java] 纯文本查看 复制代码 C:\Users\江>jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8700
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at com.sun.tools.jdi.SocketTransportService.attach(SocketTransportServic
e.java:222)
at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingCo
nnector.java:116)
at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConn
ector.java:90)
at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnectio
n.java:519)
at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:3
28)
at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1066)
致命错误:
无法附加到目标 VM。
|