rootadb | restart adbd with root privileges | DevOps library

 by   poliva C Version: Current License: No License

kandi X-RAY | rootadb Summary

kandi X-RAY | rootadb Summary

rootadb is a C library typically used in Devops applications. rootadb has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

restart adbd with root privileges.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rootadb has a low active ecosystem.
              It has 148 star(s) with 100 fork(s). There are 20 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 5 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of rootadb is current.

            kandi-Quality Quality

              rootadb has no bugs reported.

            kandi-Security Security

              rootadb has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              rootadb does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              rootadb releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rootadb
            Get all kandi verified functions for this library.

            rootadb Key Features

            No Key Features are available at this moment for rootadb.

            rootadb Examples and Code Snippets

            No Code Snippets are available at this moment for rootadb.

            Community Discussions

            QUESTION

            Understanding how rootadb finds method call in ELF binary
            Asked 2019-Oct-06 at 06:42

            The android debug bridge daemon adbd that runs on Android devices may be compiled without root support (ALLOW_ADBD_ROOT=0). There is a tool called rootadb which is able to patch an existing adbd binary by (as I understood it) replacing the calls to setuid() and setgid() with NOP instructions, effectively preventing it from dropping its privileges.

            I don't understand how the code finds the place of the syscalls inside the binary.

            As far as I see, it iterates over the all the bytes and checks if the bytes match something:

            ...

            ANSWER

            Answered 2019-Oct-01 at 12:31

            I'm not 100% sure, but I have a reasonable idea.

            The first line of code loads a pointer to the address of setgid, and treats it as a 32 bit pointer.

            The loop iterates over the binary, and looks for occurrences of 8 bytes that equal address of the setgid function. If it finds one, it applies the patch, starting at the first byte of that location.

            Source https://stackoverflow.com/questions/58153620

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rootadb

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/poliva/rootadb.git

          • CLI

            gh repo clone poliva/rootadb

          • sshUrl

            git@github.com:poliva/rootadb.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular DevOps Libraries

            ansible

            by ansible

            devops-exercises

            by bregman-arie

            core

            by dotnet

            semantic-release

            by semantic-release

            Carthage

            by Carthage

            Try Top Libraries by poliva

            random-scripts

            by polivaShell

            ldpreloadhook

            by polivaC

            ggposrv

            by polivaPython

            lightum

            by polivaC

            dexinfo

            by polivaC