swdunlop / andbug Goto Github PK
View Code? Open in Web Editor NEWAndroid Debugging Library
License: GNU General Public License v3.0
Android Debugging Library
License: GNU General Public License v3.0
I cannot trigger auto completion with 'break-l' perhaps the '-' symbol is the cause.
when break on method, Error as the title showed .
and below is the error stack:
-- File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 152, in perform
act(self, _args, *_kwargs)
-- File "/usr/local/lib/python2.7/dist-packages/andbug/cmd/break.py", line 69, in cmd_break
cpath, mname, mjni = andbug.options.parse_mquery(cpath, mquery)
-- File "/usr/local/lib/python2.7/dist-packages/andbug/options.py", line 43, in parse_mquery
cp = parse_cpath(cp)
-- File "/usr/local/lib/python2.7/dist-packages/andbug/options.py", line 27, in parse_cpath
raise ParseError('could not determine if path is a JNI or logical class path', path)
can't display the value of the string normal
in andbug.vm.Thread.suspend
...
conn.request(0x0B01, buf.data())
why it's not 0x0B02? mistake?
Does this tool only works on rooted device? I tried this on rooted device and it works fine ,but on one unrooted device, it reported errors like below:
! [Errno 32] Broken pipe
Traceback (most recent call last):
File "./andbug", line 34, in main
andbug.command.run_command(args)
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/usr/local/lib/python2.7/dist-packages/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 97, in connect
p.start()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 277, in start
self.writeHandshake()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 168, in writeHandshake
return self.write(HANDSHAKE_MSG)
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 94, in write
raise EOF(exc)
EOF: [Errno 32] Broken pipe
## AndBug (C) 2011 Scott W. Dunlop <[email protected]>
>> navi\
## ValueError: No escaped character
-- File "/home/scott/andbug/lib/andbug/command.py", line 152, in perform
act(self, *args, **kwargs)
-- File "/home/scott/andbug/lib/andbug/cmd/shell.py", line 50, in shell
cmd = shlex.split(input())
When I excute "./andbug shell -p 19680"
it hint the error:
File "./andbug", line 66, in
main(args)
File "./andbug", line 28, in main
import andbug, andbug.cmd, andbug.command
ImportError: No module named andbug
Q: I get this error:
Traceback (most recent call last):
File "./andbug", line 28, in main
andbug.command.run_command(args)
File "/home/felipe/AndBug/lib/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/home/felipe/AndBug/lib/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/home/felipe/AndBug/lib/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/home/felipe/AndBug/lib/andbug/vm.py", line 921, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/home/felipe/AndBug/lib/andbug/proto.py", line 97, in connect
p.start()
File "/home/felipe/AndBug/lib/andbug/proto.py", line 278, in start
self.readHandshake()
File "/home/felipe/AndBug/lib/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/home/felipe/AndBug/lib/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/home/felipe/AndBug/lib/andbug/proto.py", line 80, in read
if not pkt: raise EOF()
EOF: EOF
A: You can't run AndBug with DDMS running. Try shutting it down first.
friendly UE.
Hello ! When I first use Andbug , I get some error . The fellow is the description of the erros:
~$ andbug shell -p 2785
!! [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/home/tiankai/git-hub/AndBug/andbug", line 34, in main
andbug.command.run_command(args)
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/usr/local/lib/python2.7/dist-packages/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/usr/local/lib/python2.7/dist-packages/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 97, in connect
p.start()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 278, in start
self.readHandshake()
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/usr/local/lib/python2.7/dist-packages/andbug/proto.py", line 79, in read
pkt = conn.recv(req)
error: [Errno 104] Connection reset by peer
I don know how to fix it. So I want get your help ! thank!
andbug give error if adb connect to multiple devices.
$ ./andbug classes org.owasp.goatdroid.fourgoats -d 192.168.56.101:5555 -p 1648
!!
Traceback (most recent call last):
File "./andbug", line 34, in main
andbug.command.run_command(args)
File "/opt/tools/android/AndBug/lib/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/opt/tools/android/AndBug/lib/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/opt/tools/android/AndBug/lib/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/opt/tools/android/AndBug/lib/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/opt/tools/android/AndBug/lib/andbug/proto.py", line 57, in forward
pid = andbug.util.find_pid(pid)
File "/opt/tools/android/AndBug/lib/andbug/util.py", line 123, in find_pid
ps = adb(*ps)
File "/opt/tools/android/AndBug/lib/andbug/util.py", line 96, in adb
return sh(seq("adb", *args))
File "/opt/tools/android/AndBug/lib/andbug/util.py", line 61, in sh
if not no_fail: raise ShellException( command, output, status )
ShellException
the adb command is right, but i can't attach the devices.
abi@abi-desktop:~/AndBug$ PYTHONPATH=lib ./andbug shell –p 1484
!! process pid or name must be specified
navi
!! command not supported: "navi."
For example: andbug navi -p com.android.deskclock
ignores CTL-C
ریده ای بد ریدی این چیه اخه
Traceback (most recent call last):
File "setup.py", line 20, in
from os.path import splitext, basename, join as pjoin, walk
ImportError: cannot import name 'walk' from 'posixpath' (/usr/lib/python3.8/posixpath.py)
what can i do with this?
error value when try to change the value,
still not solved?
will not display anything when value is None
Error: 500 Internal Server Error
Sorry, the requested URL 'http://localhost:8080/' caused an error:
Template 'frontend' not found.
ریده ای بد ریدی این چیه اخه
Traceback (most recent call last):
File "setup.py", line 20, in
from os.path import splitext, basename, join as pjoin, walk
ImportError: cannot import name 'walk' from 'posixpath' (/usr/lib/python3.8/posixpath.py)
what can i do with this?
got this when trying to install using setup.py
Due to how Python handles unicode, vm.unpackString can fail with decoding errors when invalid codepoints are received from Dalvik. For forensic use, this is terrible behavior.
To support this, a wrapper class should be written that preserves this data as a bytestring and presents Python unicode strings with omitted invalid codepoints as a str to prevent dependent functions from throwing exceptions when operating on derived data.
See also how vm unpacks chr's:
./andbug shell -p 8861
!! [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "./andbug", line 34, in main
andbug.command.run_command(args)
File "/home/tonywu/andebug/AndBug/lib/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/home/tonywu/andebug/AndBug/lib/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/home/tonywu/andebug/AndBug/lib/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/home/tonywu/andebug/AndBug/lib/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/home/tonywu/andebug/AndBug/lib/andbug/proto.py", line 97, in connect
p.start()
File "/home/tonywu/andebug/AndBug/lib/andbug/proto.py", line 278, in start
self.readHandshake()
File "/home/tonywu/andebug/AndBug/lib/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/home/tonywu/andebug/AndBug/lib/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/home/tonywu/andebug/AndBug/lib/andbug/proto.py", line 79, in read
pkt = conn.recv(req)
error: [Errno 104] Connection reset by peer
It runs on MAC, no other known debuggers running, target is Android 4.3 tablet, adb shell works, debugging support in settings enabled.
./andbug shell -d C5OKCT042449 -p com.android.settings
!! EOF
Traceback (most recent call last):
File "./andbug", line 34, in main
andbug.command.run_command(args)
File "/Users/matlas/cvc/AndBug/lib/andbug/command.py", line 220, in run_command
return ctxt.perform(args[0], args[1:])
File "/Users/matlas/cvc/AndBug/lib/andbug/command.py", line 150, in perform
if act.proc: self.connect()
File "/Users/matlas/cvc/AndBug/lib/andbug/command.py", line 60, in connect
self.sess = andbug.vm.connect(self.pid, self.dev)
File "/Users/matlas/cvc/AndBug/lib/andbug/vm.py", line 1157, in connect
conn = andbug.proto.connect(andbug.proto.forward(pid, dev))
File "/Users/matlas/cvc/AndBug/lib/andbug/proto.py", line 97, in connect
p.start()
File "/Users/matlas/cvc/AndBug/lib/andbug/proto.py", line 278, in start
self.readHandshake()
File "/Users/matlas/cvc/AndBug/lib/andbug/proto.py", line 162, in readHandshake
data = self.read(len(HANDSHAKE_MSG))
File "/Users/matlas/cvc/AndBug/lib/andbug/proto.py", line 132, in read
pkt = self._read(sz)
File "/Users/matlas/cvc/AndBug/lib/andbug/proto.py", line 80, in read
if not pkt: raise EOF()
EOF: EOF
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.