Coder Social home page Coder Social logo

seal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seal's Issues

seal does not exit gracefully, when su is not available

$ python seal/seal.py files
Using device {redacted}
error: device not found
Traceback (most recent call last):
File "seal/seal.py", line 829, in
main()
File "seal/seal.py", line 826, in main
args.func(args)
File "seal/seal.py", line 489, in files
if not initialise_device(args):
File "seal/seal.py", line 612, in initialise_device
args.root_adb = check_root_adb(args.device)
File "seal/seal.py", line 275, in check_root_adb
[adb, "-s", device, "shell", "su", "-c", "id"]).strip('\r\n')
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['adb', '-s', '{redacted}', 'shell', 'su', '-c', 'id']' returned non-zero exit status 255
$ adb -s '{redacted}' shell su -c id
/system/bin/sh: su: not found

It would be nice if it would indicate that the device is not compatible, instead of the obscure python errors.

polinfo is broken on android marshmallow

Fails with the following stack trace , because it cant parse se-linux policy v30 which is used by android marshmallow .

Using device ZX1G42778K
/tmp/tmpttj7AN/sepolicy
1081 KB/s (160013 bytes in 0.144s)
Parsing policy "/sys/fs/selinux/policy" from device...
ERROR: policydb version 30 does not match my version range 15-29
ERROR: Unable to open policy /tmp/tmpttj7AN/sepolicy.
Traceback (most recent call last):
File "seal.py", line 838, in
main()
File "seal.py", line 835, in main
args.func(args)
File "seal.py", line 361, in polinfo
p = setup_policy(args.policy, args.device)
File "seal.py", line 352, in setup_policy
p = Policy(sepolicy)
File "/home/anto/seal/seal/policy.py", line 131, in init
raise IOError('Invalid policy file')
IOError: Invalid policy file

error on Ubuntu16.10

When i use seal ,i got a error.I installed setools V4 on ubuntu.Anyone can tell ne why ?

$ python seal.py processes --permissions
Traceback (most recent call last):
File "seal.py", line 598, in
main()
File "seal.py", line 595, in main
args.func(args)
File "seal.py", line 343, in processes
device = get_device(args.device, args.adb)
File "seal.py", line 151, in get_device
devices = sealib.device.Device.get_devices()
File "/home/simon/seal/sealib/device.py", line 41, in get_devices
[adb, "devices", "-l"]).split('\n')[1:]
File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

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.