Skip to content

ADB hosts plugin #74

Closed
Closed

Description

@ydkhatri

I'm not sure if this is correct. But this just reads the /system/etc/hosts file, which always seems to have the default content

127.0.0.1 localhost
::1       ip6-localhost

Has anyone seen anything else there?

On the other hand, there is an adb_keys file under /data/misc/adb, which has key and last connected system info like this:

<<KEY>> user@system
<<KEY>> user@system

Activity

  1. stark4n6 commented on Nov 18, 2020

    @stark4n6
    Collaborator

    It was generally created because of the Magnet CTF, which did have some different hosts configured

  2. ydkhatri commented on Nov 18, 2020

    @ydkhatri
    ContributorAuthor

    It was generally created because of the Magnet CTF, which did have some different hosts configured

    Perhaps we should rename it to something else more appropriate, as simply connecting to phone via adb would not alter this file.

  3. stark4n6 commented on Nov 18, 2020

    @stark4n6
    Collaborator

    Sure go for it!

  4. ydkhatri commented on Nov 18, 2020

    @ydkhatri
    ContributorAuthor

    Any suggestions? Since I haven't seen the altered file, I have no idea what it might have contained, or what it might have indicated. I'm guessing just IP addresses or host names hardcoded.

    The plan would be to rename this, then parse hostnames from adb_keys file under a plugin with same name 'adb_hosts'.

  5. ydkhatri commented on Nov 19, 2020

    @ydkhatri
    ContributorAuthor

    I renamed to Etc Hosts.

  6. stark4n6 commented on Nov 19, 2020

    @stark4n6
    Collaborator

    That works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions